server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServer

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

GRPCServer is the wrapper of grpc.Server

func NewGRPCServer

func NewGRPCServer(address string, serverConfig *config.ServerConfig) (*GRPCServer, error)

NewGRPCServer creates a new implementation of a GRPCServer given a listen address

func NewGRPCServerFromListener

func NewGRPCServerFromListener(listener net.Listener, serverConfig *config.ServerConfig) (*GRPCServer, error)

NewGRPCServerFromListener creates a new instance of GRPCServer given on existing net.Listener

func (*GRPCServer) Server

func (srv *GRPCServer) Server() *grpc.Server

Server returns the grpc.Server for the GRPCServer instance

func (*GRPCServer) Start

func (srv *GRPCServer) Start() error

Start starts the underlying grpc.Server

func (*GRPCServer) Stop

func (srv *GRPCServer) Stop()

Stop stops the underlying grpc.Server

Jump to

Keyboard shortcuts

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