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