Documentation
¶
Index ¶
- func Content(handler HandlerFunc) http.HandlerFunc
- type Context
- type HandleFun
- type HandlerFunc
- type NetHTTP
- func (nh *NetHTTP) AddHandler(method, path string, handlers context.Handlers)
- func (nh *NetHTTP) Content(ctx interface{}, getPanelFn types.GetPanelFn, fn context.NodeProcessor, ...)
- func (nh *NetHTTP) FormParam() url.Values
- func (nh *NetHTTP) GetCookie() (string, error)
- func (nh *NetHTTP) IsPjax() bool
- func (nh *NetHTTP) Lang() string
- func (nh *NetHTTP) Method() string
- func (*NetHTTP) Name() string
- func (nh *NetHTTP) Path() string
- func (nh *NetHTTP) Query() url.Values
- func (nh *NetHTTP) Redirect()
- func (nh *NetHTTP) Request() *http.Request
- func (nh *NetHTTP) SetApp(app interface{}) error
- func (nh *NetHTTP) SetContentType()
- func (*NetHTTP) SetContext(contextInterface interface{}) adapter.WebFrameWork
- func (nh *NetHTTP) Use(app interface{}, plugs []plugins.Plugin) error
- func (nh *NetHTTP) User(ctx interface{}) (models.UserModel, bool)
- func (nh *NetHTTP) Write(body []byte)
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 Chi.
type HandleFun ¶
type HandleFun func(pattern string, handlerFn http.HandlerFunc)
HandleFun is type of route methods of chi.
type NetHTTP ¶
type NetHTTP struct {
adapter.BaseAdapter
// contains filtered or unexported fields
}
func (*NetHTTP) AddHandler ¶
AddHandler implements the method Adapter.AddHandler.
func (*NetHTTP) Content ¶
func (nh *NetHTTP) Content(ctx interface{}, getPanelFn types.GetPanelFn, fn context.NodeProcessor, btns ...types.Button)
Content implements the method Adapter.Content.
func (*NetHTTP) Redirect ¶
func (nh *NetHTTP) Redirect()
Redirect implements the method Adapter.Redirect.
func (*NetHTTP) SetContentType ¶
func (nh *NetHTTP) SetContentType()
SetContentType implements the method Adapter.SetContentType.
func (*NetHTTP) SetContext ¶
func (*NetHTTP) SetContext(contextInterface interface{}) adapter.WebFrameWork
SetContext implements the method Adapter.SetContext.
Click to show internal directories.
Click to hide internal directories.