iris

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: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

func Content(handler HandlerFunc) iris.Handler

Types

type HandlerFunc

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

type Iris

type Iris struct {
	adapter.BaseAdapter
	// contains filtered or unexported fields
}

Iris structure value is an Iris GoAdmin adapter.

func (*Iris) AddHandler

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

AddHandler implements the method Adapter.AddHandler.

func (*Iris) Content

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

Content implements the method Adapter.Content.

func (*Iris) DisableLog

func (is *Iris) DisableLog()

func (*Iris) FormParam

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

FormParam implements the method Adapter.FormParam.

func (*Iris) GetCookie

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

GetCookie implements the method Adapter.GetCookie.

func (*Iris) IsPjax

func (is *Iris) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Iris) Method

func (is *Iris) Method() string

Method implements the method Adapter.Method.

func (*Iris) Name

func (is *Iris) Name() string

Name implements the method Adapter.Name.

func (*Iris) Path

func (is *Iris) Path() string

Path implements the method Adapter.Path.

func (*Iris) Redirect

func (is *Iris) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Iris) SetApp

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

SetApp implements the method Adapter.SetApp.

func (*Iris) SetContentType

func (is *Iris) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Iris) SetContext

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

SetContext implements the method Adapter.SetContext.

func (*Iris) Static

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

func (*Iris) Use

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

Use implements the method Adapter.Use.

func (*Iris) User

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

User implements the method Adapter.User.

func (*Iris) Write

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

Write implements the method Adapter.Write.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL