beego

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: May 22, 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) beego.FilterFunc

Types

type Beego

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

Beego structure value is a Beego GoAdmin adapter.

func (*Beego) AddHandler

func (bee *Beego) AddHandler(method, path string, handlers gctx.Handlers)

AddHandler implements the method Adapter.AddHandler.

func (*Beego) Content

func (bee *Beego) Content(ctx interface{}, getPanelFn types.GetPanelFn, navButtons ...types.Button)

Content implements the method Adapter.Content.

func (*Beego) DisableLog

func (bee *Beego) DisableLog()

func (*Beego) FormParam

func (bee *Beego) FormParam() url.Values

FormParam implements the method Adapter.FormParam.

func (*Beego) GetCookie

func (bee *Beego) GetCookie() (string, error)

GetCookie implements the method Adapter.GetCookie.

func (*Beego) IsPjax

func (bee *Beego) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Beego) Method

func (bee *Beego) Method() string

Method implements the method Adapter.Method.

func (*Beego) Name

func (bee *Beego) Name() string

Name implements the method Adapter.Name.

func (*Beego) Path

func (bee *Beego) Path() string

Path implements the method Adapter.Path.

func (*Beego) Redirect

func (bee *Beego) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Beego) SetApp

func (bee *Beego) SetApp(app interface{}) error

SetApp implements the method Adapter.SetApp.

func (*Beego) SetContentType

func (bee *Beego) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Beego) SetContext

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

SetContext implements the method Adapter.SetContext.

func (*Beego) Static

func (bee *Beego) Static(prefix, path string)

func (*Beego) Use

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

Use implements the method Adapter.Use.

func (*Beego) User

func (bee *Beego) User(ctx interface{}) (models.UserModel, bool)

User implements the method Adapter.User.

func (*Beego) Write

func (bee *Beego) Write(body []byte)

Write implements the method Adapter.Write.

type HandlerFunc

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

Jump to

Keyboard shortcuts

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