go-admin: github.com/GoAdminGroup/go-admin/adapter/buffalo Index | Files

package buffalo

import "github.com/GoAdminGroup/go-admin/adapter/buffalo"

Index

Package Files

buffalo.go

func Content Uses

func Content(handler HandlerFunc) buffalo.Handler

type Buffalo Uses

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

Buffalo structure value is a Buffalo GoAdmin adapter.

func (*Buffalo) AddHandler Uses

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

AddHandler implements the method Adapter.AddHandler.

func (*Buffalo) Content Uses

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

Content implements the method Adapter.Content.

func (*Buffalo) DisableLog Uses

func (bu *Buffalo) DisableLog()

func (*Buffalo) FormParam Uses

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

FormParam implements the method Adapter.FormParam.

func (*Buffalo) GetCookie Uses

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

GetCookie implements the method Adapter.GetCookie.

func (*Buffalo) IsPjax Uses

func (bu *Buffalo) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Buffalo) Method Uses

func (bu *Buffalo) Method() string

Method implements the method Adapter.Method.

func (*Buffalo) Name Uses

func (bu *Buffalo) Name() string

Name implements the method Adapter.Name.

func (*Buffalo) Path Uses

func (bu *Buffalo) Path() string

Path implements the method Adapter.Path.

func (*Buffalo) Redirect Uses

func (bu *Buffalo) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Buffalo) Run Uses

func (bu *Buffalo) Run() error

func (*Buffalo) SetApp Uses

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

SetApp implements the method Adapter.SetApp.

func (*Buffalo) SetContentType Uses

func (bu *Buffalo) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Buffalo) SetContext Uses

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

SetContext implements the method Adapter.SetContext.

func (*Buffalo) Static Uses

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

func (*Buffalo) Use Uses

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

Use implements the method Adapter.Use.

func (*Buffalo) User Uses

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

User implements the method Adapter.User.

func (*Buffalo) Write Uses

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

Write implements the method Adapter.Write.

type HandleFun Uses

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

HandleFun is type of route methods of buffalo.

type HandlerFunc Uses

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

Package buffalo imports 15 packages (graph) and is imported by 3 packages. Updated 2020-08-05. Refresh now. Tools for package owners.