gin

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

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

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

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

FormParam implements the method Adapter.FormParam.

func (*Gin) GetCookie

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

GetCookie implements the method Adapter.GetCookie.

func (*Gin) IsPjax

func (gins *Gin) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gin) Lang

func (gins *Gin) Lang() string

Lang implements the method Adapter.Lang.

func (*Gin) Method

func (gins *Gin) Method() string

Method implements the method Adapter.Method.

func (*Gin) Name

func (*Gin) Name() string

Name implements the method Adapter.Name.

func (*Gin) Path

func (gins *Gin) Path() string

Path implements the method Adapter.Path.

func (*Gin) Query

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

Query implements the method Adapter.Query.

func (*Gin) Redirect

func (gins *Gin) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gin) Request

func (gins *Gin) Request() *http.Request

Request implements the method Adapter.Request.

func (*Gin) SetApp

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

SetApp implements the method Adapter.SetApp.

func (*Gin) SetContentType

func (*Gin) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gin) SetContext

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

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

User implements the method Adapter.User.

func (*Gin) Write

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

Write implements the method Adapter.Write.

type HandlerFunc

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