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

package chi

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


Package Files


func Content Uses

func Content(handler HandlerFunc) http.HandlerFunc

type Chi Uses

type Chi struct {
    // contains filtered or unexported fields

Chi structure value is a Chi GoAdmin adapter.

func (*Chi) AddHandler Uses

func (ch *Chi) AddHandler(method, path string, handlers context.Handlers)

AddHandler implements the method Adapter.AddHandler.

func (*Chi) Content Uses

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

Content implements the method Adapter.Content.

func (*Chi) DisableLog Uses

func (ch *Chi) DisableLog()

func (*Chi) FormParam Uses

func (ch *Chi) FormParam() url.Values

FormParam implements the method Adapter.FormParam.

func (*Chi) GetCookie Uses

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

GetCookie implements the method Adapter.GetCookie.

func (*Chi) IsPjax Uses

func (ch *Chi) IsPjax() bool

IsPjax implements the method Adapter.IsPjax.

func (*Chi) Method Uses

func (ch *Chi) Method() string

Method implements the method Adapter.Method.

func (*Chi) Name Uses

func (ch *Chi) Name() string

Name implements the method Adapter.Name.

func (*Chi) Path Uses

func (ch *Chi) Path() string

Path implements the method Adapter.Path.

func (*Chi) Redirect Uses

func (ch *Chi) Redirect()

Redirect implements the method Adapter.Redirect.

func (*Chi) Run Uses

func (ch *Chi) Run() error

func (*Chi) SetApp Uses

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

SetApp implements the method Adapter.SetApp.

func (*Chi) SetContentType Uses

func (ch *Chi) SetContentType()

SetContentType implements the method Adapter.SetContentType.

func (*Chi) SetContext Uses

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

SetContext implements the method Adapter.SetContext.

func (*Chi) Static Uses

func (ch *Chi) Static(prefix, path string)

func (*Chi) Use Uses

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

Use implements the method Adapter.Use.

func (*Chi) User Uses

func (ch *Chi) User(ctx interface{}) (models.UserModel, bool)

User implements the method Adapter.User.

func (*Chi) Write Uses

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

Write implements the method Adapter.Write.

type Context Uses

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

Context wraps the Request and Response object of Chi.

type HandleFun Uses

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

HandleFun is type of route methods of chi.

type HandlerFunc Uses

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

Package chi imports 15 packages (graph) and is imported by 3 packages. Updated 2020-07-09. Refresh now. Tools for package owners.