northbound

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(address *string, opts ...grpc.DialOption) *grpc.ClientConn

Connect establishes a client-side connection to the gRPC end-point.

Types

type Server

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

Server provides NB gNMI server for onos-config

func NewServer

func NewServer(cfg *ServerConfig) *Server

NewServer initializes gNMI server using the supplied configuration

func (*Server) AddService

func (s *Server) AddService(r Service)

AddService adds a Service to the server to be registered on Serve

func (*Server) Serve

func (s *Server) Serve() error

Serve starts the NB gNMI server

type ServerConfig

type ServerConfig struct {
	CaPath   *string
	KeyPath  *string
	CertPath *string
	Port     int16
	Insecure bool
}

ServerConfig comprises a set of server configuration options

type Service

type Service interface {
	Register(s *grpc.Server)
}

Service provides service-specific registration for grpc services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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