controller

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiDelete = Router.GET("/api/delete/%s")
View Source
var ApiList = Router.GET("/api/list/")
View Source
var ApiPatch = Router.PATCH("/api/patch/%s")
View Source
var ApiPut = Router.PUT("/api/put/")
View Source
var CookieArgs = struct {
	ATest wc.CookieArg
}{
	wc.NewCookieArg("atest"),
}
View Source
var HeaderArgs = struct {
	MyTest wc.HeaderArg
}{
	wc.NewHeaderArg("X-Mytest"),
}
View Source
var HtmlEdit = Router.GET("/html/edit/%s")
View Source
var HtmlList = Router.GET("/html/list/")
View Source
var PathArgs = struct {
	ID wc.PathArg
}{
	wc.NewPathArg("id"),
}
View Source
var QueryArgs = struct {
	Limit   wc.QueryArgOpt
	OrderBy wc.QueryArgOpt
	Page    wc.QueryArgOpt
}{
	wc.NewQueryArgOpt("limit").Int(),
	wc.NewQueryArgOpt("orderby").String(),
	wc.NewQueryArgOpt("page").Int(),
}
View Source
var Router = wc.New("Category", StartContext).SetVerbose()

Functions

This section is empty.

Types

type Context added in v0.11.0

type Context struct {
	*wc.CoreContext
	Store *model.Store
}

func StartContext added in v0.11.0

func StartContext(route wc.Route, rw http.ResponseWriter, req *http.Request) *Context

Jump to

Keyboard shortcuts

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