Documentation ¶ Index ¶ type Server func New(s *grpc.Server, gClient gpb.GNMIClient, target string, root *oc.Root) (*Server, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { *server.Server // contains filtered or unexported fields } Server is a fake gRIBI implementation. func New ¶ func New(s *grpc.Server, gClient gpb.GNMIClient, target string, root *oc.Root) (*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. Source Files ¶ View all Source files gribi.go Click to show internal directories. Click to hide internal directories.