Documentation ¶
Index ¶
- type Neighbor
- type Server
- func (s *Server) DeleteIPv4Net(ipnet net.IPNet) error
- func (s *Server) DeleteIPv6Net(ipnet net.IPNet) error
- func (s *Server) ListenAndServe() error
- func (s *Server) Shutdown(ctx context.Context) error
- func (s *Server) UpsertIPv4Net(ipnet net.IPNet) error
- func (s *Server) UpsertIPv6Net(ipnet net.IPNet) error
- type ServerConfig
- func (c *ServerConfig) Build() *ServerConfig
- func (c *ServerConfig) Validate() error
- func (c *ServerConfig) WithListenAddr(addrs ...string) *ServerConfig
- func (c *ServerConfig) WithListenPort(port int32) *ServerConfig
- func (c *ServerConfig) WithNextHopIPv4(hop string) *ServerConfig
- func (c *ServerConfig) WithNextHopIPv6(hop string) *ServerConfig
- func (c *ServerConfig) WithPeerASN(asn uint32) *ServerConfig
- func (c *ServerConfig) WithPeerAuthPassword(password string) *ServerConfig
- func (c *ServerConfig) WithPeerNet(nets ...string) *ServerConfig
- func (c *ServerConfig) WithRouterASN(asn uint32) *ServerConfig
- func (c *ServerConfig) WithRouterID(routeID string) *ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg *ServerConfig) (*Server, error)
func (*Server) ListenAndServe ¶
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
Click to show internal directories.
Click to hide internal directories.