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) DisableLog()
- 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 (g *Gorilla) Name() string
- func (g *Gorilla) Path() string
- func (g *Gorilla) Query() url.Values
- func (g *Gorilla) Redirect()
- func (g *Gorilla) Run() error
- func (g *Gorilla) SetApp(app interface{}) error
- func (g *Gorilla) SetContentType()
- func (g *Gorilla) SetContext(contextInterface interface{}) adapter.WebFrameWork
- func (g *Gorilla) Static(prefix, path string)
- 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 ¶
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 ¶
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) DisableLog ¶
func (g *Gorilla) DisableLog()
func (*Gorilla) Redirect ¶
func (g *Gorilla) Redirect()
Redirect implements the method Adapter.Redirect.
func (*Gorilla) SetContentType ¶
func (g *Gorilla) SetContentType()
SetContentType implements the method Adapter.SetContentType.
func (*Gorilla) SetContext ¶
func (g *Gorilla) SetContext(contextInterface interface{}) adapter.WebFrameWork
SetContext implements the method Adapter.SetContext.
Click to show internal directories.
Click to hide internal directories.