Documentation
¶
Index ¶
- func SetAfter(after ...after)
- func SetBefore(before ...before)
- type Middle
- type RouteHandler
- func (handler *RouteHandler) Delete(path string) *route
- func (handler *RouteHandler) Get(path string) *route
- func (handler *RouteHandler) Option(path string) *route
- func (handler *RouteHandler) Patch(path string) *route
- func (handler *RouteHandler) Post(path string) *route
- func (handler *RouteHandler) Put(path string) *route
- func (handler *RouteHandler) Route(method string, path string) *route
- type Router
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RouteHandler ¶
type RouteHandler struct {
// contains filtered or unexported fields
}
func (*RouteHandler) Delete ¶
func (handler *RouteHandler) Delete(path string) *route
func (*RouteHandler) Get ¶
func (handler *RouteHandler) Get(path string) *route
func (*RouteHandler) Option ¶
func (handler *RouteHandler) Option(path string) *route
func (*RouteHandler) Patch ¶
func (handler *RouteHandler) Patch(path string) *route
func (*RouteHandler) Post ¶
func (handler *RouteHandler) Post(path string) *route
func (*RouteHandler) Put ¶
func (handler *RouteHandler) Put(path string) *route
func (*RouteHandler) Route ¶
func (handler *RouteHandler) Route(method string, path string) *route
type Router ¶
type Router struct {
IgnoreCase bool
// contains filtered or unexported fields
}
func (*Router) GetAllRouters ¶
func (router *Router) GetAllRouters() []*node
func (*Router) SetDefaultIndex ¶
func (*Router) SetStaticPath ¶
type Server ¶
type Server struct {
// Host 服务Host
Host string
// Port 服务端口
Port int
// Protocol 协议
Protocol string
// TLS FILE
CertFile string
// TLS KEY
KeyFile string
// AutoBind
AutoBind bool
OnOpen func(stream *http2.Stream)
OnMessage func(stream *http2.Stream)
OnClose func(stream *http2.Stream)
OnError func(stream *http2.Stream, err exception.Error)
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.