Documentation ¶
Index ¶
- Variables
- type Context
- func (c *Context) Bind(o interface{}) (err error)
- func (c *Context) BindJson(o interface{}) (err error)
- func (c *Context) BindProtoBuf(o proto.Message) (err error)
- func (c *Context) Deadline() (deadline time.Time, ok bool)
- func (c *Context) Done() <-chan struct{}
- func (c *Context) Err() error
- func (c *Context) GetEnv() interface{}
- func (c *Context) GetResult() []byte
- func (c *Context) GetUri() (data string)
- func (c *Context) Next() (err error)
- func (c *Context) ProtoBuf(o proto.Message) (err error)
- func (c *Context) RawData() []byte
- func (c *Context) SetResult(raw []byte)
- func (c *Context) String() (data string)
- func (c *Context) Value(key interface{}) interface{}
- type Engine
- type HandlerFunc
- type HandlersChain
- type ILayer
- type Layer
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultErrorWriter io.Writer = os.Stderr
View Source
var DefaultWriter io.Writer = os.Stdout
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶
HandlerFunc defines the handler used by gin middleware as return value.
func Logger ¶
func Logger() HandlerFunc
func Recovery ¶
func Recovery() HandlerFunc
type HandlersChain ¶
type HandlersChain []HandlerFunc
HandlersChain defines a HandlerFunc array.
func (HandlersChain) Last ¶
func (c HandlersChain) Last() HandlerFunc
Last returns the last handler in the chain. ie. the last handler is the main own.
type ILayer ¶
type ILayer interface { Use(...HandlerFunc) ILayer NewLayer(string) *Layer Hit(string, HandlerFunc) *Layer }
ILayer defines all router handle interface includes single and group router.
Click to show internal directories.
Click to hide internal directories.