Documentation ¶
Index ¶
- func InitializationDone()
- func Listen(ctx context.Context, registerServices func(Server)) error
- func ListenPort() int
- type Registrar
- type Server
- type ServerImpl
- func (s *ServerImpl) Handle(path string, p http.Handler) *mux.Route
- func (s *ServerImpl) HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route
- func (s *ServerImpl) InternalRegisterGrpcGateway(reg func(context.Context, *runtime.ServeMux, *grpc.ClientConn) error)
- func (s *ServerImpl) PathPrefix(path string) *mux.Route
- func (g *ServerImpl) RegisterGrpcGateway(reg func(context.Context, *runtime.ServeMux, *grpc.ClientConn) error)
- func (s *ServerImpl) RegisterService(desc *grpc.ServiceDesc, impl interface{})
- func (s *ServerImpl) Scope(pkg *core.Package) Registrar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializationDone ¶
func InitializationDone()
func ListenPort ¶
func ListenPort() int
Types ¶
type ServerImpl ¶
type ServerImpl struct {
// contains filtered or unexported fields
}
Implements the grpc.ServiceRegistrar interface.
func (*ServerImpl) HandleFunc ¶
func (s *ServerImpl) HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route
func (*ServerImpl) InternalRegisterGrpcGateway ¶
func (s *ServerImpl) InternalRegisterGrpcGateway(reg func(context.Context, *runtime.ServeMux, *grpc.ClientConn) error)
func (*ServerImpl) PathPrefix ¶
func (s *ServerImpl) PathPrefix(path string) *mux.Route
func (*ServerImpl) RegisterGrpcGateway ¶
func (g *ServerImpl) RegisterGrpcGateway(reg func(context.Context, *runtime.ServeMux, *grpc.ClientConn) error)
Deprecated; should use InternalRegisterGrpcGateway.
func (*ServerImpl) RegisterService ¶
func (s *ServerImpl) RegisterService(desc *grpc.ServiceDesc, impl interface{})
Click to show internal directories.
Click to hide internal directories.