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

package gorilla

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


Package Files


func Content Uses

func Content(handler HandlerFunc) http.HandlerFunc

type Context Uses

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

Context wraps the Request and Response object of Gorilla.

type Gorilla Uses

type Gorilla struct {
    // contains filtered or unexported fields

Gorilla structure value is a Gorilla GoAdmin adapter.

func (*Gorilla) AddHandler Uses

func (g *Gorilla) AddHandler(method, path string, plug plugins.Plugin)

func (*Gorilla) Content Uses

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

func (*Gorilla) GetCookie Uses

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

func (*Gorilla) Method Uses

func (g *Gorilla) Method() string

func (*Gorilla) Name Uses

func (g *Gorilla) Name() string

func (*Gorilla) Path Uses

func (g *Gorilla) Path() string

func (*Gorilla) PjaxHeader Uses

func (g *Gorilla) PjaxHeader() string

func (*Gorilla) Redirect Uses

func (g *Gorilla) Redirect()

func (*Gorilla) SetApp Uses

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

func (*Gorilla) SetContentType Uses

func (g *Gorilla) SetContentType()

func (*Gorilla) SetContext Uses

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

func (*Gorilla) Use Uses

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

func (*Gorilla) User Uses

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

func (*Gorilla) Write Uses

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

type HandlerFunc Uses

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

Package gorilla imports 14 packages (graph) and is imported by 2 packages. Updated 2019-12-26. Refresh now. Tools for package owners.