gin

package
v1.2.24 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content added in v1.1.2

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.0.9

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) FormParam added in v1.2.0

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

FormParam implements the method Adapter.FormParam.

func (*Gin) GetCookie added in v1.0.9

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

GetCookie implements the method Adapter.GetCookie.

func (*Gin) IsPjax added in v1.2.7

func (gins *Gin) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gin) Lang added in v1.2.18

func (gins *Gin) Lang() string

Lang implements the method Adapter.Lang.

func (*Gin) Method added in v1.0.9

func (gins *Gin) Method() string

Method implements the method Adapter.Method.

func (*Gin) Name added in v1.0.9

func (*Gin) Name() string

Name implements the method Adapter.Name.

func (*Gin) Path added in v1.0.9

func (gins *Gin) Path() string

Path implements the method Adapter.Path.

func (*Gin) Query added in v1.2.23

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

Query implements the method Adapter.Query.

func (*Gin) Redirect added in v1.0.9

func (gins *Gin) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gin) SetApp added in v1.0.9

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

SetApp implements the method Adapter.SetApp.

func (*Gin) SetContentType added in v1.0.9

func (*Gin) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gin) SetContext added in v1.0.9

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

SetContext implements the method Adapter.SetContext.

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.1.2

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

User implements the method Adapter.User.

func (*Gin) Write added in v1.0.9

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

Write implements the method Adapter.Write.

type HandlerFunc added in v1.1.2

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