Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotFound ¶ added in v0.3.0
func NotFound(ctx *fasthttp.RequestCtx)
Types ¶
type HttpService ¶
type HttpService struct {
// contains filtered or unexported fields
}
func NewHttpService ¶
func NewHttpService(listener net.Listener) *HttpService
func (*HttpService) Set ¶ added in v0.3.0
func (h *HttpService) Set(handler fasthttp.RequestHandler)
func (*HttpService) ShutDown ¶
func (h *HttpService) ShutDown()
type HttpTraffic ¶
type HttpTraffic struct {
// contains filtered or unexported fields
}
func NewHttpTraffic ¶
func NewHttpTraffic() *HttpTraffic
func (*HttpTraffic) All ¶ added in v0.3.0
func (h *HttpTraffic) All() map[int]IService
func (*HttpTraffic) Close ¶
func (h *HttpTraffic) Close()
func (*HttpTraffic) Set ¶ added in v0.3.0
func (h *HttpTraffic) Set(port int, srv *HttpService)
func (*HttpTraffic) ShutDown ¶
func (h *HttpTraffic) ShutDown(port int)
type IHttpTraffic ¶
type IService ¶
type IService interface { Set(handler fasthttp.RequestHandler) ShutDown() }
Click to show internal directories.
Click to hide internal directories.