Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
Function creates gRPC server proxy to process REST HTTP requests on the [port] and proxy them onto gRPC server on [grpcServer] port.
Requests from the [port] will be redirected to the [grpcServer] port.
func (*Server) GetHttpHandler ¶ added in v0.5.0
func (s *Server) GetHttpHandler() gin.HandlerFunc
func (*Server) RegisterServices ¶ added in v0.5.0
func (s *Server) RegisterServices(services []service.IServiceServer) error
Method dials connection to the grpc Server and registers user services.
NOTE. Before this function call, gRPC server should be served.
Click to show internal directories.
Click to hide internal directories.