risserver

package
Version: v0.0.3-pre7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestWithVRF

type RequestWithVRF interface {
	GetVrfId() uint64
	GetVrf() string
}

type Server

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

Server represents an RoutingInformationService server

func NewServer

func NewServer(b server.BMPServerInterface) *Server

NewServer creates a new server

func (*Server) DumpRIB

DumpRIB implements the DumpRIB RPC

func (*Server) Get

func (s *Server) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)

Get gets a prefix (exact match)

func (*Server) GetLonger

func (s *Server) GetLonger(ctx context.Context, req *pb.GetLongerRequest) (*pb.GetLongerResponse, error)

GetLonger gets all more specifics of a prefix

func (*Server) GetRouters

func (s *Server) GetRouters(c context.Context, request *pb.GetRoutersRequest) (*pb.GetRoutersResponse, error)

GetRouters implements the GetRouters RPC

func (*Server) LPM

func (s *Server) LPM(ctx context.Context, req *pb.LPMRequest) (*pb.LPMResponse, error)

LPM provides a longest prefix match service

func (*Server) ObserveRIB

ObserveRIB implements the ObserveRIB RPC

Jump to

Keyboard shortcuts

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