gf

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: 16 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content added in v1.1.2

func Content(handler HandlerFunc) ghttp.HandlerFunc

Types

type Gf

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

Gf structure value is a Gf GoAdmin adapter.

func (*Gf) AddHandler

func (gf *Gf) AddHandler(method, path string, handlers context.Handlers)

AddHandler implements the method Adapter.AddHandler.

func (*Gf) Content

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

Content implements the method Adapter.Content.

func (*Gf) FormParam added in v1.2.0

func (gf *Gf) FormParam() url.Values

FormParam implements the method Adapter.FormParam.

func (*Gf) GetCookie

func (gf *Gf) GetCookie() (string, error)

GetCookie implements the method Adapter.GetCookie.

func (*Gf) IsPjax added in v1.2.7

func (gf *Gf) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gf) Lang added in v1.2.18

func (gf *Gf) Lang() string

Lang implements the method Adapter.Lang.

func (*Gf) Method

func (gf *Gf) Method() string

Method implements the method Adapter.Method.

func (*Gf) Name

func (*Gf) Name() string

Name implements the method Adapter.Name.

func (*Gf) Path

func (gf *Gf) Path() string

Path implements the method Adapter.Path.

func (*Gf) Query added in v1.2.23

func (gf *Gf) Query() url.Values

Query implements the method Adapter.Query.

func (*Gf) Redirect

func (gf *Gf) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gf) SetApp

func (gf *Gf) SetApp(app interface{}) error

SetApp implements the method Adapter.SetApp.

func (*Gf) SetContentType

func (gf *Gf) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gf) SetContext

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

SetContext implements the method Adapter.SetContext.

func (*Gf) Use

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

Use implements the method Adapter.Use.

func (*Gf) User added in v1.1.2

func (gf *Gf) User(ctx interface{}) (models.UserModel, bool)

User implements the method Adapter.User.

func (*Gf) Write

func (gf *Gf) Write(body []byte)

Write implements the method Adapter.Write.

type HandlerFunc added in v1.1.2

type HandlerFunc func(ctx *ghttp.Request) (types.Panel, error)

Jump to

Keyboard shortcuts

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