grpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	tcp.Listener
	// contains filtered or unexported fields
}

Server is a wrapper of a gRPC server.

func NewServer

func NewServer(name string, tlsConfig *tls.Config) *Server

NewServer returns a new server.

func (*Server) GetGRPCServer

func (s *Server) GetGRPCServer() *grpc.Server

GetGRPCServer returns the underlying gRPC server instance.

func (*Server) GracefulStop

func (s *Server) GracefulStop() error

GracefulStop does a graceful stop of the server.

func (*Server) Start

func (s *Server) Start() error

Serve starts the server.

func (*Server) Stop

func (s *Server) Stop() error

Stop the server.

Jump to

Keyboard shortcuts

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