server

package
v0.0.0-...-bfc3bc0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config comprises a set of server configuration options.

func NewServerConfig

func NewServerConfig(caPath string, keyPath string, certPath string, port int16, secure bool) *Config

NewServerConfig creates a server config created with the specified end-point security details.

type Server

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

Server provides redis proxy server

func NewServer

func NewServer(cfg *Config) *Server

NewServer initializes 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(started func(string)) error

Serve starts the NB gNMI server.

type Service

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

Service provides service-specific registration for grpc services.

Jump to

Keyboard shortcuts

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