gin

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 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, btns ...types.Button)

Content implements the method Adapter.Content.

func (*Gin) DisableLog

func (gins *Gin) DisableLog()

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

func (gins *Gin) Method() string

Method implements the method Adapter.Method.

func (*Gin) Name

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

func (gins *Gin) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gin) SetApp

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

SetApp implements the method Adapter.SetApp.

func (*Gin) SetContentType

func (gins *Gin) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gin) SetContext

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

SetContext implements the method Adapter.SetContext.

func (*Gin) Static

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

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