buffalo

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 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)

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) DisableLog

func (bu *Buffalo) DisableLog()

func (*Buffalo) FormParam

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

FormParam implements the method Adapter.FormParam.

func (*Buffalo) GetCookie

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

GetCookie implements the method Adapter.GetCookie.

func (*Buffalo) IsPjax

func (bu *Buffalo) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Buffalo) Lang

func (bu *Buffalo) Lang() string

Lang implements the method Adapter.Lang.

func (*Buffalo) Method

func (bu *Buffalo) Method() string

Method implements the method Adapter.Method.

func (*Buffalo) Name

func (bu *Buffalo) Name() string

Name implements the method Adapter.Name.

func (*Buffalo) Path

func (bu *Buffalo) Path() string

Path implements the method Adapter.Path.

func (*Buffalo) Query

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

Query implements the method Adapter.Query.

func (*Buffalo) Redirect

func (bu *Buffalo) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Buffalo) Run

func (bu *Buffalo) Run() error

func (*Buffalo) SetApp

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

SetApp implements the method Adapter.SetApp.

func (*Buffalo) SetContentType

func (bu *Buffalo) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Buffalo) SetContext

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

SetContext implements the method Adapter.SetContext.

func (*Buffalo) Static

func (bu *Buffalo) Static(prefix, path string)

func (*Buffalo) Use

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

Use implements the method Adapter.Use.

func (*Buffalo) User

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

User implements the method Adapter.User.

func (*Buffalo) Write

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

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