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