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-lib-go.
func NewServer ¶
func NewServer(cfg *ServerConfig) *Server
NewServer initializes server using the supplied configuration.
func (*Server) AddService ¶
AddService adds a Service to the server to be registered on Serve.
type ServerConfig ¶
type ServerConfig struct { CaPath *string KeyPath *string CertPath *string Port int16 Insecure bool }
ServerConfig comprises a set of server configuration options.
func NewServerConfig ¶
func NewServerConfig(caPath string, keyPath string, certPath string) *ServerConfig
NewServerConfig creates a server config created with the specified end-point security details.
Click to show internal directories.
Click to hide internal directories.