anycast

package
v0.0.0-...-fb72fe2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouteStatusUnknown = iota
	RouteStatusPending
	RouteStatusAnnounced
	RouteStatusCriticalFailure
)

Variables

This section is empty.

Functions

func AdvertiseRoutes

func AdvertiseRoutes(b BGPConfig, peers map[string]Peer, netblocks map[string]common.Netblock, interfaces []common.Interface) (chan RouteUpdate, chan bool, *sync.WaitGroup)

Types

type BGPConfig

type BGPConfig struct {
	AS                uint32
	IPv4              string
	IPv6              string
	EnableCommunities bool
	EnableRPC         bool
	RPCPort           uint32
}

func (BGPConfig) Enabled

func (b BGPConfig) Enabled() bool

func (BGPConfig) Equals

func (b BGPConfig) Equals(o BGPConfig) bool

type Peer

type Peer struct {
	IP          string
	AS          uint32
	Password    string
	Description string
}

func (Peer) Equals

func (p Peer) Equals(o Peer) bool

type RouteStatus

type RouteStatus int

func (RouteStatus) String

func (s RouteStatus) String() string

type RouteUpdate

type RouteUpdate struct {
	IP     string
	Status RouteStatus
}

func (RouteUpdate) String

func (r RouteUpdate) String() string

Jump to

Keyboard shortcuts

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