Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is a fake gRIBI implementation.
func New ¶
func New(s *grpc.Server, gClient gpb.GNMIClient, target string, root *oc.Root, sysribAddr string, opts ...server.ServerOpt) (*Server, error)
New returns a new fake gRIBI server.
- s is the gRPC server on which the reference gRIBI service will be installed. - root, if specified, will be used to populate connected routes into the RIB manager. Note this is intended to be used for unit/standalone device testing.
- opts, if specified, will be used to control the underlying gRIBI server's behaviours.
Click to show internal directories.
Click to hide internal directories.