buffalo

package
v1.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

func Content(handler HandlerFunc) buffalo.Handler

Types

type Buffalo

type Buffalo struct {
	adapter.BaseAdapter
	// contains filtered or unexported fields
}

Buffalo structure value is a Buffalo GoAdmin adapter.

func (*Buffalo) AddHandler

func (bu *Buffalo) AddHandler(method, path string, handlers context.Handlers)

func (*Buffalo) Content

func (bu *Buffalo) Content(ctx interface{}, getPanelFn types.GetPanelFn)

func (*Buffalo) FormParam

func (bu *Buffalo) FormParam() neturl.Values

func (*Buffalo) GetCookie

func (bu *Buffalo) GetCookie() (string, error)

func (*Buffalo) Method

func (bu *Buffalo) Method() string

func (*Buffalo) Name

func (bu *Buffalo) Name() string

func (*Buffalo) Path

func (bu *Buffalo) Path() string

func (*Buffalo) PjaxHeader

func (bu *Buffalo) PjaxHeader() string

func (*Buffalo) Redirect

func (bu *Buffalo) Redirect()

func (*Buffalo) SetApp

func (bu *Buffalo) SetApp(app interface{}) error

func (*Buffalo) SetContentType

func (bu *Buffalo) SetContentType()

func (*Buffalo) SetContext

func (bu *Buffalo) SetContext(contextInterface interface{}) adapter.WebFrameWork

func (*Buffalo) Use

func (bu *Buffalo) Use(router interface{}, plugs []plugins.Plugin) error

func (*Buffalo) User

func (bu *Buffalo) User(ci interface{}) (models.UserModel, bool)

func (*Buffalo) Write

func (bu *Buffalo) Write(body []byte)

type HandleFun

type HandleFun func(p string, h buffalo.Handler) *buffalo.RouteInfo

HandleFun is type of route methods of buffalo.

type HandlerFunc

type HandlerFunc func(ctx buffalo.Context) (types.Panel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL