agent

package
v0.7.27 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package agent implements a gnmi server to mock a device with YANG models.

Package agent implements a gnmi server to mock a device with YANG models.

Package agent implements a gnmi server to mock a device with YANG models.

Package agent implements a gnmi server to mock a device with YANG models.

Package agent implements a gnmi server

Package agent implements a gnmi server to mock a device with YANG models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GnmiService

type GnmiService interface {
	northbound.Service
}

GnmiService :

func NewService

func NewService(configurable configurable.Configurable) GnmiService

NewService creates a new gnmi service

type Server

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

Server implements the interface of gnmi server. It supports Capabilities, Get, and Set APIs.

func (*Server) Capabilities

func (s *Server) Capabilities(ctx context.Context, req *pb.CapabilityRequest) (*pb.CapabilityResponse, error)

Capabilities returns supported encodings and supported models.

func (*Server) Get

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

Get implements the Get RPC in gNMI spec.

func (*Server) Set

func (s *Server) Set(ctx context.Context, req *pb.SetRequest) (*pb.SetResponse, error)

Set implements the Set RPC in gNMI spec.

func (*Server) Subscribe

func (s *Server) Subscribe(stream pb.GNMI_SubscribeServer) error

Subscribe handle subscribe requests including POLL, STREAM, ONCE subscribe requests

type Service

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

Service is a Service implementation for gnmi service.

func (*Service) Register

func (s *Service) Register(r *grpc.Server)

Register registers the Service with the gRPC server.

Jump to

Keyboard shortcuts

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