go-admin: github.com/GoAdminGroup/go-admin/adapter/gf Index | Files

package gf

import "github.com/GoAdminGroup/go-admin/adapter/gf"


Package Files


func Content Uses

func Content(handler HandlerFunc) ghttp.HandlerFunc

type Gf Uses

type Gf struct {
    // contains filtered or unexported fields

Gf structure value is a Gf GoAdmin adapter.

func (*Gf) AddHandler Uses

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

AddHandler implements the method Adapter.AddHandler.

func (*Gf) Content Uses

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

Content implements the method Adapter.Content.

func (*Gf) DisableLog Uses

func (gf *Gf) DisableLog()

func (*Gf) FormParam Uses

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

FormParam implements the method Adapter.FormParam.

func (*Gf) GetCookie Uses

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

GetCookie implements the method Adapter.GetCookie.

func (*Gf) IsPjax Uses

func (gf *Gf) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gf) Method Uses

func (gf *Gf) Method() string

Method implements the method Adapter.Method.

func (*Gf) Name Uses

func (gf *Gf) Name() string

Name implements the method Adapter.Name.

func (*Gf) Path Uses

func (gf *Gf) Path() string

Path implements the method Adapter.Path.

func (*Gf) Redirect Uses

func (gf *Gf) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gf) Run Uses

func (gf *Gf) Run() error

func (*Gf) SetApp Uses

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

SetApp implements the method Adapter.SetApp.

func (*Gf) SetContentType Uses

func (gf *Gf) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gf) SetContext Uses

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

SetContext implements the method Adapter.SetContext.

func (*Gf) Static Uses

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

func (*Gf) Use Uses

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

Use implements the method Adapter.Use.

func (*Gf) User Uses

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

User implements the method Adapter.User.

func (*Gf) Write Uses

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

Write implements the method Adapter.Write.

type HandlerFunc Uses

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

Package gf imports 15 packages (graph) and is imported by 2 packages. Updated 2020-07-25. Refresh now. Tools for package owners.