gf

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

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

func (gf *Gf) DisableLog()

func (*Gf) FormParam

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

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

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

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

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