Documentation ¶
Index ¶
- type APIController
- func (controller *APIController) DestroyPath(path string)
- func (controller *APIController) Handle404(handler func(ctx *fasthttp.RequestCtx))
- func (controller *APIController) HandleFastHTTP(ctx *fasthttp.RequestCtx)
- func (controller *APIController) HandlePath(path string, handler func(ctx *fasthttp.RequestCtx))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIController ¶
type APIController struct {
// contains filtered or unexported fields
}
APIController holds all the information about an API management controller
func NewController ¶
func NewController() *APIController
NewController creates a new API management controller
func (*APIController) DestroyPath ¶
func (controller *APIController) DestroyPath(path string)
DestroyPath destroys a registered path
func (*APIController) Handle404 ¶
func (controller *APIController) Handle404(handler func(ctx *fasthttp.RequestCtx))
Handle404 handles all 404 requests
func (*APIController) HandleFastHTTP ¶
func (controller *APIController) HandleFastHTTP(ctx *fasthttp.RequestCtx)
HandleFastHTTP is the request handler for the fasthttp package
func (*APIController) HandlePath ¶
func (controller *APIController) HandlePath(path string, handler func(ctx *fasthttp.RequestCtx))
HandlePath handles a new API path
Click to show internal directories.
Click to hide internal directories.