gin

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content added in v1.2.19

func Content(handler HandlerFunc) gin.HandlerFunc

Types

type Gin

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

Gin structure value is a Gin GoAdmin adapter.

func (*Gin) AddHandler added in v1.2.19

func (gins *Gin) AddHandler(method, path string, handlers context.Handlers)

AddHandler implements the method Adapter.AddHandler.

func (*Gin) Content

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

Content implements the method Adapter.Content.

func (*Gin) DisableLog added in v1.2.19

func (gins *Gin) DisableLog()

func (*Gin) FormParam added in v1.2.19

func (gins *Gin) FormParam() url.Values

FormParam implements the method Adapter.FormParam.

func (*Gin) GetCookie added in v1.2.19

func (gins *Gin) GetCookie() (string, error)

GetCookie implements the method Adapter.GetCookie.

func (*Gin) IsPjax added in v1.2.19

func (gins *Gin) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gin) Lang added in v1.2.19

func (gins *Gin) Lang() string

Lang implements the method Adapter.Lang.

func (*Gin) Method added in v1.2.19

func (gins *Gin) Method() string

Method implements the method Adapter.Method.

func (*Gin) Name added in v1.2.19

func (gins *Gin) Name() string

Name implements the method Adapter.Name.

func (*Gin) Path added in v1.2.19

func (gins *Gin) Path() string

Path implements the method Adapter.Path.

func (*Gin) Redirect added in v1.2.19

func (gins *Gin) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gin) Run added in v1.2.19

func (gins *Gin) Run() error

func (*Gin) SetApp added in v1.2.19

func (gins *Gin) SetApp(app interface{}) error

SetApp implements the method Adapter.SetApp.

func (*Gin) SetContentType added in v1.2.19

func (gins *Gin) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gin) SetContext added in v1.2.19

func (gins *Gin) SetContext(contextInterface interface{}) adapter.WebFrameWork

SetContext implements the method Adapter.SetContext.

func (*Gin) Static added in v1.2.19

func (gins *Gin) Static(prefix, path string)

func (*Gin) Use

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

Use implements the method Adapter.Use.

func (*Gin) User added in v1.2.19

func (gins *Gin) User(ctx interface{}) (models.UserModel, bool)

User implements the method Adapter.User.

func (*Gin) Write added in v1.2.19

func (gins *Gin) Write(body []byte)

Write implements the method Adapter.Write.

type HandlerFunc added in v1.2.19

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

Jump to

Keyboard shortcuts

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