Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingAnycast = errors.New("you must specify at least one anycast address to advertise") ErrMissingPeers = errors.New("you must specify at least one peer to advertise routes to") ErrMissingRouterID = errors.New("you must specify the routerID of this host, i.e. a non anycast address") ErrNoRoutesAdded = errors.New("no routes were successfully added") ErrNoRoutesDeleted = errors.New("no routes were successfully deleted") ErrNoPeersAdded = errors.New("no peers were successfully added") )
Functions ¶
func ValidateConfig ¶
Types ¶
type BGPHandler ¶
type BGPHandler struct {
// contains filtered or unexported fields
}
func NewBGPHandler ¶
func NewBGPHandler(config *config.BGP) (*BGPHandler, error)
func (*BGPHandler) AddRoutes ¶
func (bgph *BGPHandler) AddRoutes(ctx context.Context, routes []string) error
func (*BGPHandler) DeleteRoutes ¶
func (bgph *BGPHandler) DeleteRoutes(ctx context.Context, routes []string) error
func (*BGPHandler) Start ¶
func (bgph *BGPHandler) Start() error
Click to show internal directories.
Click to hide internal directories.