gorilla

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

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

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

func (*Gorilla) Content

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

func (*Gorilla) FormParam

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

func (*Gorilla) GetCookie

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

func (*Gorilla) Method

func (g *Gorilla) Method() string

func (*Gorilla) Name

func (g *Gorilla) Name() string

func (*Gorilla) Path

func (g *Gorilla) Path() string

func (*Gorilla) PjaxHeader

func (g *Gorilla) PjaxHeader() string

func (*Gorilla) Redirect

func (g *Gorilla) Redirect()

func (*Gorilla) SetApp

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

func (*Gorilla) SetContentType

func (g *Gorilla) SetContentType()

func (*Gorilla) SetContext

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

func (*Gorilla) Use

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

func (*Gorilla) User

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

func (*Gorilla) Write

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

type HandlerFunc

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