Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPNBusWatcherFactory ¶
type IPNBusWatcherFactory func(ctx context.Context, client *local.Client, mask ipn.NotifyWatchOpt) (IPNBusWatcher, error)
type Netmap ¶
type Peer ¶
type Peer struct {
ID string `json:"id"`
Name string `json:"name"`
Online bool `json:"online"`
Tags []string `json:"tags,omitempty"`
Owners []string `json:"owners,omitempty"`
IPs []string `json:"ips,omitempty"`
Routes []string `json:"routes,omitempty"`
MachineAuthorized bool `json:"machine_authorized,omitempty"`
Expired bool `json:"expired,omitempty"`
KeyExpiry string `json:"key_expiry,omitempty"`
HostinfoHash string `json:"hostinfo_hash,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
}
type RealtimeConfig ¶
type RealtimeConfig struct {
WatchMask ipn.NotifyWatchOpt
ReconnectMin time.Duration
ReconnectMax time.Duration
Logger *zap.Logger
NewWatcher IPNBusWatcherFactory
NewLocalClient LocalClientFactory
}
type SequenceSource ¶
type SequenceSource struct {
// contains filtered or unexported fields
}
func NewSequenceSource ¶
func NewSequenceSource(netmaps []Netmap) *SequenceSource
type StaticSource ¶
type StaticSource struct {
// contains filtered or unexported fields
}
func NewStaticSource ¶
func NewStaticSource(netmap Netmap) *StaticSource
type TSNetFetchFunc ¶
type TSNetRealtimeSource ¶
type TSNetRealtimeSource struct {
// contains filtered or unexported fields
}
func NewTSNetRealtimeSource ¶
func NewTSNetRealtimeSource(server *tsnet.Server, cfg RealtimeConfig) *TSNetRealtimeSource
type TSNetSource ¶
type TSNetSource struct {
// contains filtered or unexported fields
}
func NewTSNetSource ¶
func NewTSNetSource(server *tsnet.Server, fetch TSNetFetchFunc) *TSNetSource
Click to show internal directories.
Click to hide internal directories.