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
Click to show internal directories.
Click to hide internal directories.