Documentation ¶
Index ¶
- func Dial(addr string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func TestClient(desc *grpc.ServiceDesc, impl interface{}) *grpc.ClientConn
- type HandlerFunc
- type MHandler
- type MHandlerFunc
- type Server
- func (s *Server) Group(path string, hs ...MHandlerFunc) *httpRouterGroup
- func (s *Server) HandlePath(method, path string, h HandlerFunc)
- func (s *Server) RegisterService(desc *grpc.ServiceDesc, impl interface{})
- func (s *Server) RegisterServiceHandler(h ServiceHandler, opts ...grpc.DialOption)
- func (s *Server) SetHandlersFunc(hfs ...MHandlerFunc)
- func (s *Server) SetServeMuxOptions(opts ...runtime.ServeMuxOption)
- func (s *Server) SetServerOptions(opts ...grpc.ServerOption)
- func (s *Server) Start(addr string) error
- func (s *Server) Stop() error
- type ServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶ added in v0.0.14
func Dial(addr string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
func TestClient ¶
func TestClient(desc *grpc.ServiceDesc, impl interface{}) *grpc.ClientConn
Types ¶
type HandlerFunc ¶
type MHandler ¶
type MHandler interface {
ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
}
type MHandlerFunc ¶
type MHandlerFunc func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
func WrapHandlerFunc ¶
func WrapHandlerFunc(h HandlerFunc) MHandlerFunc
func (MHandlerFunc) ServeHTTP ¶
func (h MHandlerFunc) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Group ¶
func (s *Server) Group(path string, hs ...MHandlerFunc) *httpRouterGroup
func (*Server) HandlePath ¶
func (s *Server) HandlePath(method, path string, h HandlerFunc)
func (*Server) RegisterService ¶
func (s *Server) RegisterService(desc *grpc.ServiceDesc, impl interface{})
func (*Server) RegisterServiceHandler ¶
func (s *Server) RegisterServiceHandler(h ServiceHandler, opts ...grpc.DialOption)
func (*Server) SetHandlersFunc ¶
func (s *Server) SetHandlersFunc(hfs ...MHandlerFunc)
func (*Server) SetServeMuxOptions ¶
func (s *Server) SetServeMuxOptions(opts ...runtime.ServeMuxOption)
func (*Server) SetServerOptions ¶
func (s *Server) SetServerOptions(opts ...grpc.ServerOption)
type ServiceHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.