Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
GRPCServer is a simple wrapper around grpc.Server.
func NewGRPCServer ¶
func NewGRPCServer( host string, port int, logger *logger.Logger, customUnaryInterceptors ...grpc.UnaryServerInterceptor, ) (*GRPCServer, error)
NewGRPCServer creates a new grpc server.
type HTTPServer ¶
HTTPServer is the main HTTP server.
func NewHTTPServer ¶
func NewHTTPServer( prod bool, service string, host string, port int, logger *logger.Logger, ) (*HTTPServer, error)
NewHTTPServer creates a new Server.
func (*HTTPServer) Start ¶
func (s *HTTPServer) Start() error
Start starts the server. It blocks until the server stops.
Click to show internal directories.
Click to hide internal directories.