gf

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 8 modules, 13 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, btns ...types.Button)

Content implements the method Adapter.Content.

func (*Gf) DisableLog added in v1.2.9

func (gf *Gf) DisableLog()

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

func (gf *Gf) Method() string

Method implements the method Adapter.Method.

func (*Gf) Name

func (gf *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) 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 *Gf) SetContext(contextInterface interface{}) adapter.WebFrameWork

SetContext implements the method Adapter.SetContext.

func (*Gf) Static added in v1.2.9

func (gf *Gf) Static(prefix, path string)

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