Documentation ¶
Index ¶
- func Content(handler HandlerFunc) http.HandlerFunc
- type Context
- type Gorilla
- func (g *Gorilla) AddHandler(method, path string, handlers context.Handlers)
- func (g *Gorilla) Content(ctx interface{}, getPanelFn types.GetPanelFn, fn context.NodeProcessor, ...)
- func (g *Gorilla) FormParam() url.Values
- func (g *Gorilla) GetCookie() (string, error)
- func (g *Gorilla) IsPjax() bool
- func (g *Gorilla) Lang() string
- func (g *Gorilla) Method() string
- func (*Gorilla) Name() string
- func (g *Gorilla) Path() string
- func (g *Gorilla) Query() url.Values
- func (g *Gorilla) Redirect()
- func (g *Gorilla) Request() *http.Request
- func (g *Gorilla) SetApp(app interface{}) error
- func (g *Gorilla) SetContentType()
- func (*Gorilla) SetContext(contextInterface interface{}) adapter.WebFrameWork
- func (g *Gorilla) Use(app interface{}, plugs []plugins.Plugin) error
- func (g *Gorilla) User(ctx interface{}) (models.UserModel, bool)
- func (g *Gorilla) Write(body []byte)
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Content ¶ added in v1.1.2
func Content(handler HandlerFunc) http.HandlerFunc
Types ¶
type Context ¶
type Context struct { Request *http.Request Response http.ResponseWriter }
Context wraps the Request and Response object of Gorilla.
type Gorilla ¶
type Gorilla struct { adapter.BaseAdapter // contains filtered or unexported fields }
Gorilla structure value is a Gorilla GoAdmin adapter.
func (*Gorilla) AddHandler ¶ added in v1.0.9
AddHandler implements the method Adapter.AddHandler.
func (*Gorilla) Content ¶
func (g *Gorilla) Content(ctx interface{}, getPanelFn types.GetPanelFn, fn context.NodeProcessor, btns ...types.Button)
Content implements the method Adapter.Content.
func (*Gorilla) Redirect ¶ added in v1.0.9
func (g *Gorilla) Redirect()
Redirect implements the method Adapter.Redirect.
func (*Gorilla) SetContentType ¶ added in v1.0.9
func (g *Gorilla) SetContentType()
SetContentType implements the method Adapter.SetContentType.
func (*Gorilla) SetContext ¶ added in v1.0.9
func (*Gorilla) SetContext(contextInterface interface{}) adapter.WebFrameWork
SetContext implements the method Adapter.SetContext.
Click to show internal directories.
Click to hide internal directories.