gorilla

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content added in v1.1.2

func Content(handler HandlerFunc) http.HandlerFunc

Types

type Context

type Context struct {
	Request  *http.Request
	Response http.ResponseWriter
}

Context wraps the Request and Response object of Gorilla.

type Gorilla

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

Gorilla structure value is a Gorilla GoAdmin adapter.

func (*Gorilla) AddHandler added in v1.0.9

func (g *Gorilla) AddHandler(method, path string, handlers context.Handlers)

AddHandler implements the method Adapter.AddHandler.

func (*Gorilla) Content

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

Content implements the method Adapter.Content.

func (*Gorilla) DisableLog added in v1.2.9

func (g *Gorilla) DisableLog()

func (*Gorilla) FormParam added in v1.2.0

func (g *Gorilla) FormParam() url.Values

FormParam implements the method Adapter.FormParam.

func (*Gorilla) GetCookie added in v1.0.9

func (g *Gorilla) GetCookie() (string, error)

GetCookie implements the method Adapter.GetCookie.

func (*Gorilla) IsPjax added in v1.2.7

func (g *Gorilla) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gorilla) Lang added in v1.2.18

func (g *Gorilla) Lang() string

Lang implements the method Adapter.Lang.

func (*Gorilla) Method added in v1.0.9

func (g *Gorilla) Method() string

Method implements the method Adapter.Method.

func (*Gorilla) Name added in v1.0.9

func (g *Gorilla) Name() string

Name implements the method Adapter.Name.

func (*Gorilla) Path added in v1.0.9

func (g *Gorilla) Path() string

Path implements the method Adapter.Path.

func (*Gorilla) Redirect added in v1.0.9

func (g *Gorilla) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gorilla) Run added in v1.2.14

func (g *Gorilla) Run() error

func (*Gorilla) SetApp added in v1.0.9

func (g *Gorilla) SetApp(app interface{}) error

SetApp implements the method Adapter.SetApp.

func (*Gorilla) SetContentType added in v1.0.9

func (g *Gorilla) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gorilla) SetContext added in v1.0.9

func (g *Gorilla) SetContext(contextInterface interface{}) adapter.WebFrameWork

SetContext implements the method Adapter.SetContext.

func (*Gorilla) Static added in v1.2.9

func (g *Gorilla) Static(prefix, path string)

func (*Gorilla) Use

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

Use implements the method Adapter.Use.

func (*Gorilla) User added in v1.1.2

func (g *Gorilla) User(ctx interface{}) (models.UserModel, bool)

User implements the method Adapter.User.

func (*Gorilla) Write added in v1.0.9

func (g *Gorilla) Write(body []byte)

Write implements the method Adapter.Write.

type HandlerFunc added in v1.1.2

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

Jump to

Keyboard shortcuts

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