gf

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

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)

func (*Gf) Content

func (gf *Gf) Content(ctx interface{}, getPanelFn types.GetPanelFn)

func (*Gf) FormParam

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

func (*Gf) GetCookie

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

func (*Gf) Method

func (gf *Gf) Method() string

func (*Gf) Name

func (gf *Gf) Name() string

func (*Gf) Path

func (gf *Gf) Path() string

func (*Gf) PjaxHeader

func (gf *Gf) PjaxHeader() string

func (*Gf) Redirect

func (gf *Gf) Redirect()

func (*Gf) SetApp

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

func (*Gf) SetContentType

func (gf *Gf) SetContentType()

func (*Gf) SetContext

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

func (*Gf) Use

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

func (*Gf) User

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

func (*Gf) Write

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

type HandlerFunc

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