gorilla

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 14 Imported by: 11

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, plug plugins.Plugin)

func (*Gorilla) Content

func (g *Gorilla) Content(ctx interface{}, getPanelFn types.GetPanelFn)

func (*Gorilla) GetCookie added in v1.0.9

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

func (*Gorilla) Method added in v1.0.9

func (g *Gorilla) Method() string

func (*Gorilla) Name added in v1.0.9

func (g *Gorilla) Name() string

func (*Gorilla) Path added in v1.0.9

func (g *Gorilla) Path() string

func (*Gorilla) PjaxHeader added in v1.0.9

func (g *Gorilla) PjaxHeader() string

func (*Gorilla) Redirect added in v1.0.9

func (g *Gorilla) Redirect()

func (*Gorilla) SetApp added in v1.0.9

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

func (*Gorilla) SetContentType added in v1.0.9

func (g *Gorilla) SetContentType()

func (*Gorilla) SetContext added in v1.0.9

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

func (*Gorilla) Use

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

func (*Gorilla) User added in v1.1.2

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

func (*Gorilla) Write added in v1.0.9

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

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