Documentation ¶
Index ¶
- type Builder
- type CallHandler
- type Context
- func (c *Context) CacheBody(data []byte)
- func (c *Context) Get(name string) (string, bool)
- func (c *Context) GetBody() []byte
- func (c *Context) Next() error
- func (c *Context) Params() Params
- func (c *Context) Query() url.Values
- func (c *Context) ReadBody() ([]byte, error)
- func (c *Context) Request() *http.Request
- func (c *Context) Response() http.ResponseWriter
- func (c *Context) Set(name string, value string)
- func (c *Context) SetResponse(w http.ResponseWriter)
- type Dialer
- type Engine
- func (e *Engine) ClearRouter()
- func (e *Engine) Execute(w http.ResponseWriter, req *http.Request, params Params, chain []HandleFunc, ...)
- func (e *Engine) NotFound(w http.ResponseWriter, req *http.Request)
- func (e *Engine) RebuildRouter(routes []*metadata.Route, ignoreError bool) error
- func (e *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request)
- type GrpcDialer
- type HandleFunc
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) NotFound ¶
func (b *Builder) NotFound(notFound HandleFunc)
func (*Builder) RegisterHandler ¶
func (b *Builder) RegisterHandler(name string, handler CallHandler)
func (*Builder) RegisterMiddleware ¶
func (b *Builder) RegisterMiddleware(name string, handle HandleFunc)
func (*Builder) Use ¶
func (b *Builder) Use(use HandleFunc)
type CallHandler ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) Response ¶
func (c *Context) Response() http.ResponseWriter
func (*Context) SetResponse ¶ added in v0.3.0
func (c *Context) SetResponse(w http.ResponseWriter)
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) ClearRouter ¶ added in v0.3.0
func (e *Engine) ClearRouter()
func (*Engine) Execute ¶
func (e *Engine) Execute(w http.ResponseWriter, req *http.Request, params Params, chain []HandleFunc, handle HandleFunc)
func (*Engine) NotFound ¶ added in v0.3.0
func (e *Engine) NotFound(w http.ResponseWriter, req *http.Request)
func (*Engine) RebuildRouter ¶
type GrpcDialer ¶
type GrpcDialer struct {
Opts []grpc.DialOption
}
func (*GrpcDialer) Dial ¶
func (d *GrpcDialer) Dial(server string) (*grpc.ClientConn, error)
type HandleFunc ¶
Click to show internal directories.
Click to hide internal directories.