beego

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 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, fn gctx.NodeProcessor, navButtons ...types.Button)

Content implements the method Adapter.Content.

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

func (bee *Beego) Lang() string

Lang implements the method Adapter.Lang.

func (*Beego) Method

func (bee *Beego) Method() string

Method implements the method Adapter.Method.

func (*Beego) Name

func (*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) Query

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

Query implements the method Adapter.Query.

func (*Beego) Redirect

func (bee *Beego) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Beego) Request

func (bee *Beego) Request() *http.Request

Request implements the method Adapter.Request.

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 (*Beego) SetContext(contextInterface interface{}) adapter.WebFrameWork

SetContext implements the method Adapter.SetContext.

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