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

package iris

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


Package Files


func Content Uses

func Content(handler HandlerFunc) iris.Handler

type HandlerFunc Uses

type HandlerFunc func(ctx iris.Context) (types.Panel, error)

type Iris Uses

type Iris struct {
    // contains filtered or unexported fields

Iris structure value is an Iris GoAdmin adapter.

func (*Iris) AddHandler Uses

func (is *Iris) AddHandler(method, path string, handlers context.Handlers)

AddHandler implements the method Adapter.AddHandler.

func (*Iris) Content Uses

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

Content implements the method Adapter.Content.

func (*Iris) DisableLog Uses

func (is *Iris) DisableLog()

func (*Iris) FormParam Uses

func (is *Iris) FormParam() url.Values

FormParam implements the method Adapter.FormParam.

func (*Iris) GetCookie Uses

func (is *Iris) GetCookie() (string, error)

GetCookie implements the method Adapter.GetCookie.

func (*Iris) IsPjax Uses

func (is *Iris) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Iris) Method Uses

func (is *Iris) Method() string

Method implements the method Adapter.Method.

func (*Iris) Name Uses

func (is *Iris) Name() string

Name implements the method Adapter.Name.

func (*Iris) Path Uses

func (is *Iris) Path() string

Path implements the method Adapter.Path.

func (*Iris) Redirect Uses

func (is *Iris) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Iris) Run Uses

func (is *Iris) Run() error

func (*Iris) SetApp Uses

func (is *Iris) SetApp(app interface{}) error

SetApp implements the method Adapter.SetApp.

func (*Iris) SetContentType Uses

func (is *Iris) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Iris) SetContext Uses

func (is *Iris) SetContext(contextInterface interface{}) adapter.WebFrameWork

SetContext implements the method Adapter.SetContext.

func (*Iris) Static Uses

func (is *Iris) Static(prefix, path string)

func (*Iris) Use Uses

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

Use implements the method Adapter.Use.

func (*Iris) User Uses

func (is *Iris) User(ctx interface{}) (models.UserModel, bool)

User implements the method Adapter.User.

func (*Iris) Write Uses

func (is *Iris) Write(body []byte)

Write implements the method Adapter.Write.

Package iris imports 14 packages (graph) and is imported by 3 packages. Updated 2020-08-01. Refresh now. Tools for package owners.