grpc_srv

package
v0.0.0-...-c99c9b3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 11 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 used for implementing proto service

func NewGrpcServer

func NewGrpcServer(service userspb.UsersServiceServer, port string) (GrpcServer, error)

func (GrpcServer) Error

func (g GrpcServer) Error() chan error

Error returns the error in the channel instead of error.Error()

func (GrpcServer) Start

func (g GrpcServer) Start()

Start starts the grpc server and listens for error, if err we send the error via the channel

func (GrpcServer) Stop

func (g GrpcServer) Stop()

Stop gracefully stops the grpc server

Jump to

Keyboard shortcuts

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