buffalo

package
v1.2.24 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 15 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content added in v1.1.2

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 added in v1.0.9

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

AddHandler implements the method Adapter.AddHandler.

func (*Buffalo) Content

func (bu *Buffalo) Content(ctx interface{}, getPanelFn types.GetPanelFn, fn context.NodeProcessor, btns ...types.Button)

Content implements the method Adapter.Content.

func (*Buffalo) FormParam added in v1.2.0

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

FormParam implements the method Adapter.FormParam.

func (*Buffalo) GetCookie added in v1.0.9

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

GetCookie implements the method Adapter.GetCookie.

func (*Buffalo) IsPjax added in v1.2.7

func (bu *Buffalo) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Buffalo) Lang added in v1.2.18

func (bu *Buffalo) Lang() string

Lang implements the method Adapter.Lang.

func (*Buffalo) Method added in v1.0.9

func (bu *Buffalo) Method() string

Method implements the method Adapter.Method.

func (*Buffalo) Name added in v1.0.9

func (*Buffalo) Name() string

Name implements the method Adapter.Name.

func (*Buffalo) Path added in v1.0.9

func (bu *Buffalo) Path() string

Path implements the method Adapter.Path.

func (*Buffalo) Query added in v1.2.23

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

Query implements the method Adapter.Query.

func (*Buffalo) Redirect added in v1.0.9

func (bu *Buffalo) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Buffalo) SetApp added in v1.0.9

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

SetApp implements the method Adapter.SetApp.

func (*Buffalo) SetContentType added in v1.0.9

func (bu *Buffalo) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Buffalo) SetContext added in v1.0.9

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

SetContext implements the method Adapter.SetContext.

func (*Buffalo) Use

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

Use implements the method Adapter.Use.

func (*Buffalo) User added in v1.1.2

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

User implements the method Adapter.User.

func (*Buffalo) Write added in v1.0.9

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

Write implements the method Adapter.Write.

type HandleFun

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

HandleFun is type of route methods of buffalo.

type HandlerFunc added in v1.1.2

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