chi

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 15 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func User added in v1.0.9

func User(ci interface{}) models.UserModel

Types

type Chi

type Chi struct {
	adapter.BaseAdapter
	// contains filtered or unexported fields
}

Chi structure value is a Chi GoAdmin adapter.

func (*Chi) AddHandler added in v1.0.9

func (ch *Chi) AddHandler(method, path string, plug plugins.Plugin)

func (*Chi) Content

func (ch *Chi) Content(ctx interface{}, getPanelFn types.GetPanelFn)

func (*Chi) GetCookie added in v1.0.9

func (ch *Chi) GetCookie() (string, error)

func (*Chi) Method added in v1.0.9

func (ch *Chi) Method() string

func (*Chi) Name added in v1.0.9

func (ch *Chi) Name() string

func (*Chi) Path added in v1.0.9

func (ch *Chi) Path() string

func (*Chi) PjaxHeader added in v1.0.9

func (ch *Chi) PjaxHeader() string

func (*Chi) Redirect added in v1.0.9

func (ch *Chi) Redirect()

func (*Chi) SetApp added in v1.0.9

func (ch *Chi) SetApp(app interface{}) error

func (*Chi) SetContentType added in v1.0.9

func (ch *Chi) SetContentType()

func (*Chi) SetContext added in v1.0.9

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

func (*Chi) Use

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

func (*Chi) Write added in v1.0.9

func (ch *Chi) Write(body []byte)

type Context

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

Context wraps the Request and Response object of Chi.

type HandleFun

type HandleFun func(pattern string, handlerFn http.HandlerFunc)

HandleFun is type of route methods of chi.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL