bgpsrv

package
v0.0.0-...-d0d2c37 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Neighbor

type Neighbor struct {
	Address string
	ASN     uint32
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *ServerConfig) (*Server, error)

func (*Server) DeleteIPv4Net

func (s *Server) DeleteIPv4Net(ipnet net.IPNet) error

func (*Server) DeleteIPv6Net

func (s *Server) DeleteIPv6Net(ipnet net.IPNet) error

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) UpsertIPv4Net

func (s *Server) UpsertIPv4Net(ipnet net.IPNet) error

func (*Server) UpsertIPv6Net

func (s *Server) UpsertIPv6Net(ipnet net.IPNet) error

type ServerConfig

type ServerConfig struct {
	// contains filtered or unexported fields
}

func NewServerConfig

func NewServerConfig() *ServerConfig

func (*ServerConfig) Build

func (c *ServerConfig) Build() *ServerConfig

func (*ServerConfig) Validate

func (c *ServerConfig) Validate() error

func (*ServerConfig) WithListenAddr

func (c *ServerConfig) WithListenAddr(addrs ...string) *ServerConfig

func (*ServerConfig) WithListenPort

func (c *ServerConfig) WithListenPort(port int32) *ServerConfig

func (*ServerConfig) WithNextHopIPv4

func (c *ServerConfig) WithNextHopIPv4(hop string) *ServerConfig

func (*ServerConfig) WithNextHopIPv6

func (c *ServerConfig) WithNextHopIPv6(hop string) *ServerConfig

func (*ServerConfig) WithPeerASN

func (c *ServerConfig) WithPeerASN(asn uint32) *ServerConfig

func (*ServerConfig) WithPeerAuthPassword

func (c *ServerConfig) WithPeerAuthPassword(password string) *ServerConfig

func (*ServerConfig) WithPeerNet

func (c *ServerConfig) WithPeerNet(nets ...string) *ServerConfig

func (*ServerConfig) WithRouterASN

func (c *ServerConfig) WithRouterASN(asn uint32) *ServerConfig

func (*ServerConfig) WithRouterID

func (c *ServerConfig) WithRouterID(routeID string) *ServerConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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