Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodPost = iota MethodGet )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) WriteString ¶
type DefaultRouter ¶
type DefaultRouter struct {
// contains filtered or unexported fields
}
func (*DefaultRouter) Bind ¶
func (z *DefaultRouter) Bind(url string, method Method, handler Handler)
func (*DefaultRouter) Handler ¶
func (z *DefaultRouter) Handler(ctx *fasthttp.RequestCtx)
type FasthttpRouter ¶
type FasthttpRouter struct {
// contains filtered or unexported fields
}
推荐使用这个
func NewFasthttpRouter ¶
func NewFasthttpRouter() FasthttpRouter
func (*FasthttpRouter) Bind ¶
func (z *FasthttpRouter) Bind(address string, method Method, handler Handler)
func (*FasthttpRouter) Handler ¶
func (z *FasthttpRouter) Handler(ctx *fasthttp.RequestCtx)
type Router ¶
type Router interface { Bind(url string, method Method, handler Handler) Handler(ctx *fasthttp.RequestCtx) }
func NewDefaultRouter ¶
func NewDefaultRouter() Router
type XWeb ¶
type XWeb struct {
// contains filtered or unexported fields
}
func (*XWeb) RunAndServe ¶
func (*XWeb) RunAndServerTLS ¶
Click to show internal directories.
Click to hide internal directories.