gnmi

package
v0.0.0-...-24c7f32 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigNameSuffix = "Running"

ConfigNameSuffix is appended to the Configuration name when it is created

Variables

View Source
var (
	PathToChannels = make(map[*gnmi.Path]chan *gnmi.Update)
)

per each subscribe request we receive the map is updated with a channel corresponding to the path.

Functions

func GetUpdate

func GetUpdate(path *gnmi.Path) (*gnmi.Update, error)

GetUpdate utility method for getting an Update for a given path

Types

type Server

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

Server implements the grpc GNMI service

func (*Server) Capabilities

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

Capabilities implements gNMI Capabilities

func (*Server) Get

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

Get implements gNMI Get

func (*Server) Set

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

Set implements gNMI Set

func (*Server) Subscribe

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

Subscribe implements gNMI Subscribe

type Service

type Service struct {
	northbound.Service
}

Service implements Service for GNMI

func (Service) Register

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

Register registers the GNMI server with grpc

Jump to

Keyboard shortcuts

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