19 lines
434 B
Go
19 lines
434 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// ServerLink represents a federation peer server configuration.
|
|
type ServerLink struct {
|
|
Base
|
|
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
URL string `json:"url"`
|
|
SharedKeyHash string `json:"-"`
|
|
IsActive bool `json:"isActive"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
LastSeenAt *time.Time `json:"lastSeenAt,omitempty"`
|
|
}
|