server

package
v0.0.0-...-88920c5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wait

func Wait()

waiting os signals.

Types

type Server

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

Server initialized and wraps a gRPC server.

func New

func New() (s *Server, err error)

New initiates a new gRPC instance with listener.

func (*Server) Close

func (s *Server) Close() (err error)

Stop the server gracefully.

func (*Server) GRPC

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

GRPC server instance. Use this method to register a service implementation.

func (*Server) RunAsync

func (s *Server) RunAsync()

Run an gRPC server in a goroutine asynchronously.

Jump to

Keyboard shortcuts

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