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, handlers context.Handlers)

AddHandler implements the method Adapter.AddHandler.

func (*Gorilla) Content Uses

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

Content implements the method Adapter.Content.

func (*Gorilla) DisableLog Uses

func (g *Gorilla) DisableLog()

func (*Gorilla) FormParam Uses

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

FormParam implements the method Adapter.FormParam.

func (*Gorilla) GetCookie Uses

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

GetCookie implements the method Adapter.GetCookie.

func (*Gorilla) IsPjax Uses

func (g *Gorilla) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gorilla) Method Uses

func (g *Gorilla) Method() string

Method implements the method Adapter.Method.

func (*Gorilla) Name Uses

func (g *Gorilla) Name() string

Name implements the method Adapter.Name.

func (*Gorilla) Path Uses

func (g *Gorilla) Path() string

Path implements the method Adapter.Path.

func (*Gorilla) Redirect Uses

func (g *Gorilla) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gorilla) Run Uses

func (g *Gorilla) Run() error

func (*Gorilla) SetApp Uses

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

SetApp implements the method Adapter.SetApp.

func (*Gorilla) SetContentType Uses

func (g *Gorilla) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gorilla) SetContext Uses

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

SetContext implements the method Adapter.SetContext.

func (*Gorilla) Static Uses

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

func (*Gorilla) Use Uses

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

Use implements the method Adapter.Use.

func (*Gorilla) User Uses

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

User implements the method Adapter.User.

func (*Gorilla) Write Uses

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

Write implements the method Adapter.Write.

type HandlerFunc Uses

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

Package gorilla imports 15 packages (graph) and is imported by 3 packages. Updated 2020-08-05. Refresh now. Tools for package owners.