Documentation ¶
Index ¶
- type Error
- type FlashMessage
- type Redirect
- func (redirect *Redirect) Inject(responder *web.Responder)
- func (redirect *Redirect) Redirect(ctx context.Context, request *web.Request) web.Result
- func (redirect *Redirect) RedirectPermanent(ctx context.Context, request *web.Request) web.Result
- func (redirect *Redirect) RedirectPermanentURL(ctx context.Context, request *web.Request) web.Result
- func (redirect *Redirect) RedirectURL(ctx context.Context, request *web.Request) web.Result
- type Render
- type SessionFlashController
- type Static
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error controller
type FlashMessage ¶
type FlashMessage struct { Type string Message interface{} }
FlashMessage contains a type and a printable message
type Redirect ¶
type Redirect struct {
// contains filtered or unexported fields
}
Redirect Default controller
func (*Redirect) RedirectPermanent ¶
RedirectPermanent is the same as Redirect but with a HTTP permanent redirect
type Render ¶
type Render struct {
// contains filtered or unexported fields
}
Render controller
type SessionFlashController ¶
type SessionFlashController struct{}
SessionFlashController takes care of supported flash messages
func (*SessionFlashController) Data ¶
func (sfc *SessionFlashController) Data(c context.Context, r *web.Request, _ web.RequestParams) interface{}
Data Controller for sessionflashcontroller
Click to show internal directories.
Click to hide internal directories.