gf

package
v1.2.32 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 16 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, fn context.NodeProcessor, 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) Lang

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 *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) Run

func (gf *Gf) Run() error

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