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