gear

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

func Content(handler HandlerFunc) gear.Middleware

Types

type Gear

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

Gear structure value is a Gin GoAdmin adapter.

func (*Gear) AddHandler

func (gears *Gear) AddHandler(method, path string, handlers context.Handlers)

AddHandler implements the method Adapter.AddHandler.

func (*Gear) Content

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

Content implements the method Adapter.Content.

func (*Gear) DisableLog

func (gears *Gear) DisableLog()

func (*Gear) FormParam

func (gears *Gear) FormParam() url.Values

FormParam implements the method Adapter.FormParam.

func (*Gear) GetCookie

func (gears *Gear) GetCookie() (string, error)

GetCookie implements the method Adapter.GetCookie.

func (*Gear) IsPjax

func (gears *Gear) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gear) Lang

func (gears *Gear) Lang() string

Lang implements the method Adapter.Lang.

func (*Gear) Method

func (gears *Gear) Method() string

Method implements the method Adapter.Method.

func (*Gear) Name

func (gears *Gear) Name() string

Name implements the method Adapter.Name.

func (*Gear) Path

func (gears *Gear) Path() string

Path implements the method Adapter.Path.

func (*Gear) Query

func (gears *Gear) Query() url.Values

Query implements the method Adapter.Query.

func (*Gear) Redirect

func (gears *Gear) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gear) Run

func (gears *Gear) Run() error

func (*Gear) SetApp

func (gears *Gear) SetApp(app interface{}) error

SetApp implements the method Adapter.SetApp.

func (*Gear) SetContentType

func (gears *Gear) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gear) SetContext

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

SetContext implements the method Adapter.SetContext.

func (*Gear) Static

func (gears *Gear) Static(prefix, path string)

func (*Gear) Use

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

Use implements the method Adapter.Use.

func (*Gear) User

func (gears *Gear) User(ctx interface{}) (models.UserModel, bool)

User implements the method Adapter.User.

func (*Gear) Write

func (gears *Gear) Write(body []byte)

Write implements the method Adapter.Write.

type HandlerFunc

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

Jump to

Keyboard shortcuts

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