Documentation
¶
Index ¶
- func Defer(resolve z.Action) z.Result
- func Dud() z.Result
- func Http(code int, header string, values ...string) z.Result
- func Json(code int, object interface{}) z.Result
- func PermanentRedirect(url string, args ...interface{}) z.Result
- func Redirect(url string, args ...interface{}) z.Result
- func RenderFunc(render func(c *z.Context) error) z.Result
- func String(code int, str string, args ...interface{}) z.Result
- func View(view v.View, data interface{}) z.Result
- type Controller
- func (c *Controller) Defer(resolve z.Action) z.Result
- func (c *Controller) Dud() z.Result
- func (c *Controller) Http(code int, header string, values ...string) z.Result
- func (c *Controller) Json(code int, object interface{}) z.Result
- func (c *Controller) PermanentRedirect(url string, args ...interface{}) z.Result
- func (c *Controller) Redirect(url string, args ...interface{}) z.Result
- func (c *Controller) RenderFunc(render func(c *z.Context) error) z.Result
- func (c *Controller) Resource() *ResourceRepresentable
- func (c *Controller) String(code int, str string, args ...interface{}) z.Result
- func (c *Controller) View(view v.View, data interface{}) z.Result
- type ResourceRepresentable
- func (b *ResourceRepresentable) Html(html z.Result) *ResourceRepresentable
- func (b *ResourceRepresentable) Json(json z.Result) *ResourceRepresentable
- func (b *ResourceRepresentable) Mime(mime string, r z.Result) *ResourceRepresentable
- func (b *ResourceRepresentable) Render(c *z.Context) error
- func (b *ResourceRepresentable) Text(text z.Result) *ResourceRepresentable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PermanentRedirect ¶
Types ¶
type Controller ¶
type Controller struct{}
Vanilla mixin for convenience to add to your controller to get simpler access to result building methods.
func (*Controller) Dud ¶
func (c *Controller) Dud() z.Result
func (*Controller) PermanentRedirect ¶
func (c *Controller) PermanentRedirect(url string, args ...interface{}) z.Result
func (*Controller) Redirect ¶
func (c *Controller) Redirect(url string, args ...interface{}) z.Result
func (*Controller) RenderFunc ¶
func (*Controller) Resource ¶
func (c *Controller) Resource() *ResourceRepresentable
type ResourceRepresentable ¶
type ResourceRepresentable struct {
// contains filtered or unexported fields
}
func Resource ¶
func Resource() *ResourceRepresentable
func (*ResourceRepresentable) Html ¶
func (b *ResourceRepresentable) Html(html z.Result) *ResourceRepresentable
func (*ResourceRepresentable) Json ¶
func (b *ResourceRepresentable) Json(json z.Result) *ResourceRepresentable
func (*ResourceRepresentable) Mime ¶
func (b *ResourceRepresentable) Mime(mime string, r z.Result) *ResourceRepresentable
func (*ResourceRepresentable) Text ¶
func (b *ResourceRepresentable) Text(text z.Result) *ResourceRepresentable
Click to show internal directories.
Click to hide internal directories.