event

package
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeActivated

type BridgeActivated struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	Timestamp       time.Time
}

func (*BridgeActivated) EvtBridgeInterface

func (e *BridgeActivated) EvtBridgeInterface() string

func (*BridgeActivated) EvtBridgePeerCIDRs added in v0.0.14

func (e *BridgeActivated) EvtBridgePeerCIDRs() []types.CIDR

func (*BridgeActivated) EvtKind

func (e *BridgeActivated) EvtKind() string

func (*BridgeActivated) EvtTimestamp

func (e *BridgeActivated) EvtTimestamp() time.Time

type BridgeDeactivated

type BridgeDeactivated struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	Timestamp       time.Time
}

func (*BridgeDeactivated) EvtBridgeInterface

func (e *BridgeDeactivated) EvtBridgeInterface() string

func (*BridgeDeactivated) EvtBridgePeerCIDRs added in v0.0.14

func (e *BridgeDeactivated) EvtBridgePeerCIDRs() []types.CIDR

func (*BridgeDeactivated) EvtKind

func (e *BridgeDeactivated) EvtKind() string

func (*BridgeDeactivated) EvtTimestamp

func (e *BridgeDeactivated) EvtTimestamp() time.Time

type BridgeEvent

type BridgeEvent interface {
	Event
	EvtBridgeInterface() string
	EvtBridgePeerCIDRs() []types.CIDR
}

type BridgeReactivated added in v0.0.5

type BridgeReactivated struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	Iteration       int
	Timestamp       time.Time
}

func (*BridgeReactivated) EvtBridgeInterface added in v0.0.5

func (e *BridgeReactivated) EvtBridgeInterface() string

func (*BridgeReactivated) EvtBridgePeerCIDRs added in v0.0.14

func (e *BridgeReactivated) EvtBridgePeerCIDRs() []types.CIDR

func (*BridgeReactivated) EvtKind added in v0.0.5

func (e *BridgeReactivated) EvtKind() string

func (*BridgeReactivated) EvtTimestamp added in v0.0.5

func (e *BridgeReactivated) EvtTimestamp() time.Time

type BridgeWentDown

type BridgeWentDown struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	Timestamp       time.Time
}

func (*BridgeWentDown) EvtBridgeInterface

func (e *BridgeWentDown) EvtBridgeInterface() string

func (*BridgeWentDown) EvtBridgePeerCIDRs added in v0.0.14

func (e *BridgeWentDown) EvtBridgePeerCIDRs() []types.CIDR

func (*BridgeWentDown) EvtKind

func (e *BridgeWentDown) EvtKind() string

func (*BridgeWentDown) EvtTimestamp

func (e *BridgeWentDown) EvtTimestamp() time.Time

type BridgeWentUp

type BridgeWentUp struct {
	BridgeInterface string
	BridgePerCIDR   types.CIDR
	Timestamp       time.Time
}

func (*BridgeWentUp) EvtBridgeInterface

func (e *BridgeWentUp) EvtBridgeInterface() string

func (*BridgeWentUp) EvtBridgePeerCIDR

func (e *BridgeWentUp) EvtBridgePeerCIDR() types.CIDR

func (*BridgeWentUp) EvtKind

func (e *BridgeWentUp) EvtKind() string

func (*BridgeWentUp) EvtTimestamp

func (e *BridgeWentUp) EvtTimestamp() time.Time

type ConnectivityLost

type ConnectivityLost struct {
	Timestamp time.Time
}

func (*ConnectivityLost) EvtKind

func (e *ConnectivityLost) EvtKind() string

func (*ConnectivityLost) EvtTimestamp

func (e *ConnectivityLost) EvtTimestamp() time.Time

type ConnectivityRestored

type ConnectivityRestored struct {
	Timestamp time.Time
}

func (*ConnectivityRestored) EvtKind

func (e *ConnectivityRestored) EvtKind() string

func (*ConnectivityRestored) EvtTimestamp

func (e *ConnectivityRestored) EvtTimestamp() time.Time

type Event

type Event interface {
	EvtKind() string
	EvtTimestamp() time.Time
}

type PartnerActivated

type PartnerActivated struct {
	Timestamp time.Time
}

func (*PartnerActivated) EvtKind

func (e *PartnerActivated) EvtKind() string

func (*PartnerActivated) EvtTimestamp

func (e *PartnerActivated) EvtTimestamp() time.Time

type PartnerChangedName

type PartnerChangedName struct {
	NewName   string
	OldName   string
	Timestamp time.Time
}

func (*PartnerChangedName) EvtKind

func (e *PartnerChangedName) EvtKind() string

func (*PartnerChangedName) EvtTimestamp

func (e *PartnerChangedName) EvtTimestamp() time.Time

type PartnerDeactivated

type PartnerDeactivated struct {
	Timestamp time.Time
}

func (*PartnerDeactivated) EvtKind

func (e *PartnerDeactivated) EvtKind() string

func (*PartnerDeactivated) EvtTimestamp

func (e *PartnerDeactivated) EvtTimestamp() time.Time

type PartnerPollEvent

type PartnerPollEvent interface {
	Event
	PartnerStatus() *types.BridgeStatus
}

type PartnerPollFailure

type PartnerPollFailure struct {
	Sequence  uint64
	Timestamp time.Time
}

func (*PartnerPollFailure) EvtKind

func (e *PartnerPollFailure) EvtKind() string

func (*PartnerPollFailure) EvtTimestamp

func (e *PartnerPollFailure) EvtTimestamp() time.Time

func (*PartnerPollFailure) PartnerStatus

func (e *PartnerPollFailure) PartnerStatus() *types.BridgeStatus

type PartnerPollSuccess

type PartnerPollSuccess struct {
	Status    *types.BridgeStatus
	Sequence  uint64
	Timestamp time.Time
}

func (*PartnerPollSuccess) EvtKind

func (e *PartnerPollSuccess) EvtKind() string

func (*PartnerPollSuccess) EvtTimestamp

func (e *PartnerPollSuccess) EvtTimestamp() time.Time

func (*PartnerPollSuccess) PartnerStatus

func (e *PartnerPollSuccess) PartnerStatus() *types.BridgeStatus

type PartnerWentDown

type PartnerWentDown struct {
	Timestamp time.Time
}

func (*PartnerWentDown) EvtKind

func (e *PartnerWentDown) EvtKind() string

func (*PartnerWentDown) EvtTimestamp

func (e *PartnerWentDown) EvtTimestamp() time.Time

type PartnerWentUp

type PartnerWentUp struct {
	Timestamp time.Time
}

func (*PartnerWentUp) EvtKind

func (e *PartnerWentUp) EvtKind() string

func (*PartnerWentUp) EvtTimestamp

func (e *PartnerWentUp) EvtTimestamp() time.Time

type TunnelInterfaceActivated

type TunnelInterfaceActivated struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	TunnelInterface string
	Timestamp       time.Time
}

func (*TunnelInterfaceActivated) EvtBridgeInterface

func (e *TunnelInterfaceActivated) EvtBridgeInterface() string

func (*TunnelInterfaceActivated) EvtBridgePeerCIDRs added in v0.0.14

func (e *TunnelInterfaceActivated) EvtBridgePeerCIDRs() []types.CIDR

func (*TunnelInterfaceActivated) EvtKind

func (e *TunnelInterfaceActivated) EvtKind() string

func (*TunnelInterfaceActivated) EvtTimestamp

func (e *TunnelInterfaceActivated) EvtTimestamp() time.Time

func (*TunnelInterfaceActivated) EvtTunnelInterface

func (e *TunnelInterfaceActivated) EvtTunnelInterface() string

type TunnelInterfaceDeactivated

type TunnelInterfaceDeactivated struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	TunnelInterface string
	Timestamp       time.Time
}

func (*TunnelInterfaceDeactivated) EvtBridgeInterface

func (e *TunnelInterfaceDeactivated) EvtBridgeInterface() string

func (*TunnelInterfaceDeactivated) EvtBridgePeerCIDRs added in v0.0.14

func (e *TunnelInterfaceDeactivated) EvtBridgePeerCIDRs() []types.CIDR

func (*TunnelInterfaceDeactivated) EvtKind

func (e *TunnelInterfaceDeactivated) EvtKind() string

func (*TunnelInterfaceDeactivated) EvtTimestamp

func (e *TunnelInterfaceDeactivated) EvtTimestamp() time.Time

func (*TunnelInterfaceDeactivated) EvtTunnelInterface

func (e *TunnelInterfaceDeactivated) EvtTunnelInterface() string

type TunnelInterfaceEvent

type TunnelInterfaceEvent interface {
	Event
	EvtTunnelInterface() string
}

type TunnelInterfaceReactivated added in v0.0.5

type TunnelInterfaceReactivated struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	Iteration       int
	TunnelInterface string
	Timestamp       time.Time
}

func (*TunnelInterfaceReactivated) EvtBridgeInterface added in v0.0.5

func (e *TunnelInterfaceReactivated) EvtBridgeInterface() string

func (*TunnelInterfaceReactivated) EvtBridgePeerCIDRs added in v0.0.14

func (e *TunnelInterfaceReactivated) EvtBridgePeerCIDRs() []types.CIDR

func (*TunnelInterfaceReactivated) EvtKind added in v0.0.5

func (e *TunnelInterfaceReactivated) EvtKind() string

func (*TunnelInterfaceReactivated) EvtTimestamp added in v0.0.5

func (e *TunnelInterfaceReactivated) EvtTimestamp() time.Time

func (*TunnelInterfaceReactivated) EvtTunnelInterface added in v0.0.5

func (e *TunnelInterfaceReactivated) EvtTunnelInterface() string

type TunnelInterfaceWentDown

type TunnelInterfaceWentDown struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	TunnelInterface string
	Timestamp       time.Time
}

func (*TunnelInterfaceWentDown) EvtBridgeInterface

func (e *TunnelInterfaceWentDown) EvtBridgeInterface() string

func (*TunnelInterfaceWentDown) EvtBridgePeerCIDRs added in v0.0.14

func (e *TunnelInterfaceWentDown) EvtBridgePeerCIDRs() []types.CIDR

func (*TunnelInterfaceWentDown) EvtKind

func (e *TunnelInterfaceWentDown) EvtKind() string

func (*TunnelInterfaceWentDown) EvtTimestamp

func (e *TunnelInterfaceWentDown) EvtTimestamp() time.Time

func (*TunnelInterfaceWentDown) EvtTunnelInterface

func (e *TunnelInterfaceWentDown) EvtTunnelInterface() string

type TunnelInterfaceWentUp

type TunnelInterfaceWentUp struct {
	BridgeInterface string
	BridgePeerCIDRs []types.CIDR
	TunnelInterface string
	Timestamp       time.Time
}

func (*TunnelInterfaceWentUp) EvtBridgeInterface

func (e *TunnelInterfaceWentUp) EvtBridgeInterface() string

func (*TunnelInterfaceWentUp) EvtBridgePeerCIDR

func (e *TunnelInterfaceWentUp) EvtBridgePeerCIDR() []types.CIDR

func (*TunnelInterfaceWentUp) EvtKind

func (e *TunnelInterfaceWentUp) EvtKind() string

func (*TunnelInterfaceWentUp) EvtTimestamp

func (e *TunnelInterfaceWentUp) EvtTimestamp() time.Time

func (*TunnelInterfaceWentUp) EvtTunnelInterface

func (e *TunnelInterfaceWentUp) EvtTunnelInterface() string

type TunnelProbeReturnFailure

type TunnelProbeReturnFailure struct {
	ProbeSequence   uint64
	TunnelInterface string
	Timestamp       time.Time
}

func (*TunnelProbeReturnFailure) EvtKind

func (e *TunnelProbeReturnFailure) EvtKind() string

func (*TunnelProbeReturnFailure) EvtTimestamp

func (e *TunnelProbeReturnFailure) EvtTimestamp() time.Time

func (*TunnelProbeReturnFailure) EvtTunnelInterface

func (e *TunnelProbeReturnFailure) EvtTunnelInterface() string

type TunnelProbeReturnSuccess

type TunnelProbeReturnSuccess struct {
	ProbeSequence   uint64
	TunnelInterface string
	Timestamp       time.Time

	LatencyForward time.Duration
	LatencyReturn  time.Duration
	Location       string
}

func (*TunnelProbeReturnSuccess) EvtKind

func (e *TunnelProbeReturnSuccess) EvtKind() string

func (*TunnelProbeReturnSuccess) EvtTimestamp

func (e *TunnelProbeReturnSuccess) EvtTimestamp() time.Time

func (*TunnelProbeReturnSuccess) EvtTunnelInterface

func (e *TunnelProbeReturnSuccess) EvtTunnelInterface() string

type TunnelProbeSendFailure

type TunnelProbeSendFailure struct {
	ProbeSequence   uint64
	TunnelInterface string
	Timestamp       time.Time
}

func (*TunnelProbeSendFailure) EvtKind

func (e *TunnelProbeSendFailure) EvtKind() string

func (*TunnelProbeSendFailure) EvtTimestamp

func (e *TunnelProbeSendFailure) EvtTimestamp() time.Time

func (*TunnelProbeSendFailure) EvtTunnelInterface

func (e *TunnelProbeSendFailure) EvtTunnelInterface() string

type TunnelProbeSendSuccess

type TunnelProbeSendSuccess struct {
	ProbeSequence   uint64
	TunnelInterface string
	Timestamp       time.Time
}

func (*TunnelProbeSendSuccess) EvtKind

func (e *TunnelProbeSendSuccess) EvtKind() string

func (*TunnelProbeSendSuccess) EvtTimestamp

func (e *TunnelProbeSendSuccess) EvtTimestamp() time.Time

func (*TunnelProbeSendSuccess) EvtTunnelInterface

func (e *TunnelProbeSendSuccess) EvtTunnelInterface() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL