service

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BGPNeighbor added in v1.4.0

type BGPNeighbor struct {
	Address          net.IP
	Version          int
	RemoteAS         int
	MessagesReceived int64
	MessagesSent     int64
	TableVersion     int
	InQueue          int64
	OutQueue         int64
	Uptime           *time.Duration
	State            string
	PrefixesReceived int64
}

type BGPStatus added in v1.4.0

type BGPStatus struct {
	RouterID     string
	LocalAS      int
	TableVersion int
	ASPaths      int
	Communities  int
	Neighbors    []BGPNeighbor
}

type DdnsStatus added in v1.1.0

type DdnsStatus struct {
	Interface    string
	IPAddress    string
	HostName     string
	LastUpdate   *time.Time
	UpdateStatus string
}

type IPProtocol added in v1.4.0

type IPProtocol int
const (
	IPv4 IPProtocol
	IPv6
)

type LoadBalanceGroup

type LoadBalanceGroup struct {
	Name     string
	Statuses []LoadBalanceStatus
}

type LoadBalancePing

type LoadBalancePing struct {
	Gateway string
	Status  string
}

type LoadBalanceStatus

type LoadBalanceStatus struct {
	Interface        string
	Status           string
	FailoverOnlyMode bool
	Pings            int
	Fails            int
	RunFails         int
	RouteDrops       int
	Ping             LoadBalancePing
	LastRouteDrop    *time.Time
	LastRouteRecover *time.Time
}

type PPPoEClientSession added in v1.2.0

type PPPoEClientSession struct {
	User            string
	Time            *time.Duration
	Protocol        string
	Interface       string
	RemoteIP        string
	TransmitPackets int64
	TransmitBytes   int64
	ReceivePackets  int64
	ReceiveBytes    int64
}

type Runner

type Runner interface {
	Version(ctx context.Context) (Version, error)
	BGPStatus(ctx context.Context, protocol IPProtocol) (BGPStatus, error)
	DdnsStatus(ctx context.Context) ([]DdnsStatus, error)
	LoadBalanceWatchdog(ctx context.Context) ([]LoadBalanceGroup, error)
	PPPoEClientSessions(ctx context.Context) ([]PPPoEClientSession, error)
}

type Version added in v1.3.0

type Version struct {
	Version        string
	BuildID        string
	BuildOn        *time.Time
	Copyright      string
	HWModel        string
	HWSerialNumber string
	Uptime         string
}

Jump to

Keyboard shortcuts

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