Documentation ¶
Index ¶
- func Content(handler HandlerFunc) fasthttp.RequestHandler
- type Fasthttp
- func (fast *Fasthttp) AddHandler(method, path string, handlers context.Handlers)
- func (fast *Fasthttp) Content(ctx interface{}, getPanelFn types.GetPanelFn, fn context.NodeProcessor, ...)
- func (fast *Fasthttp) DisableLog()
- func (fast *Fasthttp) FormParam() url.Values
- func (fast *Fasthttp) GetCookie() (string, error)
- func (fast *Fasthttp) IsPjax() bool
- func (fast *Fasthttp) Method() string
- func (fast *Fasthttp) Name() string
- func (fast *Fasthttp) Path() string
- func (fast *Fasthttp) Redirect()
- func (fast *Fasthttp) Run() error
- func (fast *Fasthttp) SetApp(app interface{}) error
- func (fast *Fasthttp) SetContentType()
- func (fast *Fasthttp) SetContext(contextInterface interface{}) adapter.WebFrameWork
- func (fast *Fasthttp) Static(prefix, path string)
- func (fast *Fasthttp) Use(app interface{}, plugs []plugins.Plugin) error
- func (fast *Fasthttp) User(ctx interface{}) (models.UserModel, bool)
- func (fast *Fasthttp) Write(body []byte)
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Content ¶ added in v1.3.0
func Content(handler HandlerFunc) fasthttp.RequestHandler
Types ¶
type Fasthttp ¶
type Fasthttp struct { adapter.BaseAdapter // contains filtered or unexported fields }
Fasthttp structure value is a Fasthttp GoAdmin adapter.
func (*Fasthttp) AddHandler ¶ added in v1.3.0
AddHandler implements the method Adapter.AddHandler.
func (*Fasthttp) Content ¶
func (fast *Fasthttp) Content(ctx interface{}, getPanelFn types.GetPanelFn, fn context.NodeProcessor, btns ...types.Button)
Content implements the method Adapter.Content.
func (*Fasthttp) DisableLog ¶ added in v1.3.0
func (fast *Fasthttp) DisableLog()
func (*Fasthttp) Redirect ¶ added in v1.3.0
func (fast *Fasthttp) Redirect()
Redirect implements the method Adapter.Redirect.
func (*Fasthttp) SetContentType ¶ added in v1.3.0
func (fast *Fasthttp) SetContentType()
SetContentType implements the method Adapter.SetContentType.
func (*Fasthttp) SetContext ¶ added in v1.3.0
func (fast *Fasthttp) SetContext(contextInterface interface{}) adapter.WebFrameWork
SetContext implements the method Adapter.SetContext.
type HandlerFunc ¶ added in v1.3.0
type HandlerFunc func(ctx *fasthttp.RequestCtx) (types.Panel, error)
Click to show internal directories.
Click to hide internal directories.