go-admin: github.com/GoAdminGroup/go-admin/adapter/gin Index | Files

package gin

import "github.com/GoAdminGroup/go-admin/adapter/gin"

Index

Package Files

gin.go

func Content Uses

func Content(handler HandlerFunc) gin.HandlerFunc

type Gin Uses

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

Gin structure value is a Gin GoAdmin adapter.

func (*Gin) AddHandler Uses

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

AddHandler implements the method Adapter.AddHandler.

func (*Gin) Content Uses

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

Content implements the method Adapter.Content.

func (*Gin) DisableLog Uses

func (gins *Gin) DisableLog()

func (*Gin) FormParam Uses

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

FormParam implements the method Adapter.FormParam.

func (*Gin) GetCookie Uses

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

GetCookie implements the method Adapter.GetCookie.

func (*Gin) IsPjax Uses

func (gins *Gin) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gin) Method Uses

func (gins *Gin) Method() string

Method implements the method Adapter.Method.

func (*Gin) Name Uses

func (gins *Gin) Name() string

Name implements the method Adapter.Name.

func (*Gin) Path Uses

func (gins *Gin) Path() string

Path implements the method Adapter.Path.

func (*Gin) Redirect Uses

func (gins *Gin) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gin) Run Uses

func (gins *Gin) Run() error

func (*Gin) SetApp Uses

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

SetApp implements the method Adapter.SetApp.

func (*Gin) SetContentType Uses

func (gins *Gin) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gin) SetContext Uses

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

SetContext implements the method Adapter.SetContext.

func (*Gin) Static Uses

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

func (*Gin) Use Uses

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

Use implements the method Adapter.Use.

func (*Gin) User Uses

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

User implements the method Adapter.User.

func (*Gin) Write Uses

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

Write implements the method Adapter.Write.

type HandlerFunc Uses

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

Package gin imports 14 packages (graph) and is imported by 6 packages. Updated 2020-08-05. Refresh now. Tools for package owners.