Documentation ¶
Index ¶
- type CallHandler
- type Context
- func (ctx *Context) Get(name string) (string, bool)
- func (ctx *Context) Next() error
- func (ctx *Context) Params() httprouter.Params
- func (ctx *Context) Request() *http.Request
- func (ctx *Context) Response() http.ResponseWriter
- func (ctx *Context) Set(name string, value string)
- func (ctx *Context) SetResponse(r http.ResponseWriter)
- type HandleFunc
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallHandler ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) Params ¶
func (ctx *Context) Params() httprouter.Params
func (*Context) Response ¶
func (ctx *Context) Response() http.ResponseWriter
func (*Context) SetResponse ¶
func (ctx *Context) SetResponse(r http.ResponseWriter)
type HandleFunc ¶
type Server ¶
type Server struct { Dial func(string) (*grpc.ClientConn, error) NotFound http.Handler // contains filtered or unexported fields }
func (*Server) RegisterHandler ¶
func (s *Server) RegisterHandler(name string, h CallHandler)
func (*Server) RegisterMiddleware ¶
func (s *Server) RegisterMiddleware(name string, h HandleFunc)
func (*Server) Use ¶
func (s *Server) Use(handle HandleFunc)
Click to show internal directories.
Click to hide internal directories.