gorilla

package
v1.2.25 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 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)

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) FormParam

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

FormParam implements the method Adapter.FormParam.

func (*Gorilla) GetCookie

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

GetCookie implements the method Adapter.GetCookie.

func (*Gorilla) IsPjax

func (g *Gorilla) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Gorilla) Lang

func (g *Gorilla) Lang() string

Lang implements the method Adapter.Lang.

func (*Gorilla) Method

func (g *Gorilla) Method() string

Method implements the method Adapter.Method.

func (*Gorilla) Name

func (*Gorilla) Name() string

Name implements the method Adapter.Name.

func (*Gorilla) Path

func (g *Gorilla) Path() string

Path implements the method Adapter.Path.

func (*Gorilla) Query

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

Query implements the method Adapter.Query.

func (*Gorilla) Redirect

func (g *Gorilla) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Gorilla) SetApp

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

SetApp implements the method Adapter.SetApp.

func (*Gorilla) SetContentType

func (g *Gorilla) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Gorilla) SetContext

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

SetContext implements the method Adapter.SetContext.

func (*Gorilla) Use

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

Use implements the method Adapter.Use.

func (*Gorilla) User

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

User implements the method Adapter.User.

func (*Gorilla) Write

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

Write implements the method Adapter.Write.

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