Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NilLocation = Location{}
Functions ¶
Types ¶
type BridgeStatus ¶
type BridgeStatus struct {
// Name is the name of the bridge. Must match the name of the partner's
// bridge.
Name string `json:"name"`
// Role is the configured role of the bridge.
Role Role `json:"role"`
// Active indicates whether the bridge is currently in active state.
Active bool `json:"active"`
// ActiveSince is the timestamp of most recent update to the Active state
// (regardless whether true or false).
ActiveSince time.Time `json:"active_since"`
// Up indicates whether the bridge is currently in up (online) state.
Up bool `json:"up"`
// UpSince is the timestamp of most recent update to the Up state
// (regardless whether true or false).
UpSince time.Time `json:"up_since"`
// Interfaces is the dictionary with bridge interface statuses.
Interfaces map[string]*TunnelInterfaceStatus `json:"interfaces"`
}
func (*BridgeStatus) ActiveInterface ¶ added in v0.0.5
func (b *BridgeStatus) ActiveInterface() string
type Location ¶
type Location [36]byte
func NewLocation ¶
func (*Location) UnmarshalJSON ¶
func (*Location) UnmarshalYAML ¶
type Partner ¶
type Partner struct {
// contains filtered or unexported fields
}
func NewPartner ¶
func (*Partner) NextSequence ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
func (*Peer) Acknowledgement ¶
func (*Peer) InterfaceName ¶
func (*Peer) NextSequence ¶
func (*Peer) SetAcknowledgement ¶
type Probe ¶
type Probe struct {
Sequence uint64
SrcUUID uuid.UUID
SrcTimestamp time.Time
SrcLocation Location
DstUUID uuid.UUID
DstTimestamp time.Time
DstLocation Location
}
func (Probe) MarshalBinary ¶
func (*Probe) UnmarshalBinary ¶
type ReapplyStatus ¶ added in v0.0.5
type TunnelInterfaceStatus ¶
type TunnelInterfaceStatus struct {
// Active indicates whether the tunnel is currently in active state.
Active bool `json:"active"`
// ActiveSince is the timestamp of most recent update to the Active state
// (regardless whether true or false).
ActiveSince time.Time `json:"active_since"`
// Up indicates whether the tunnel is currently in up (online) state.
Up bool `json:"up"`
// UpSince is the timestamp of most recent update to the Up state
// (regardless whether true or false).
UpSince time.Time `json:"up_since"`
}
Click to show internal directories.
Click to hide internal directories.