Versions in this module Expand all Collapse all v0 v0.0.1 Apr 4, 2023 Changes in this version + const NAME + const StatusAccepted + const StatusAlreadyReported + const StatusBadGateway + const StatusBadRequest + const StatusConflict + const StatusContinue + const StatusCreated + const StatusEarlyHints + const StatusExpectationFailed + const StatusFailedDependency + const StatusForbidden + const StatusFound + const StatusGatewayTimeout + const StatusGone + const StatusHTTPVersionNotSupported + const StatusIMUsed + const StatusInsufficientStorage + const StatusInternalServerError + const StatusLengthRequired + const StatusLocked + const StatusLoopDetected + const StatusMethodNotAllowed + const StatusMisdirectedRequest + const StatusMovedPermanently + const StatusMultiStatus + const StatusMultipleChoices + const StatusNetworkAuthenticationRequired + const StatusNoContent + const StatusNonAuthoritativeInfo + const StatusNotAcceptable + const StatusNotExtended + const StatusNotFound + const StatusNotImplemented + const StatusNotModified + const StatusOK + const StatusPartialContent + const StatusPaymentRequired + const StatusPermanentRedirect + const StatusPreconditionFailed + const StatusPreconditionRequired + const StatusProcessing + const StatusProxyAuthRequired + const StatusRequestEntityTooLarge + const StatusRequestHeaderFieldsTooLarge + const StatusRequestTimeout + const StatusRequestURITooLong + const StatusRequestedRangeNotSatisfiable + const StatusResetContent + const StatusSeeOther + const StatusServiceUnavailable + const StatusSwitchingProtocols + const StatusTeapot + const StatusTemporaryRedirect + const StatusTooEarly + const StatusTooManyRequests + const StatusUnauthorized + const StatusUnavailableForLegalReasons + const StatusUnprocessableEntity + const StatusUnsupportedMediaType + const StatusUpgradeRequired + const StatusUseProxy + const StatusVariantAlsoNegotiates + const WWW + func RouteUrl(name string, args ...Map) string + func Routers(sites ...string) map[string]Router + func SiteHosts(site string) []string + func SiteUrl(name string, path string, options ...Map) string + func StatusText(code int) string + type Config struct + CertFile string + Charset string + Confuse string + Cookie string + Crypto bool + Defaults []string + Domain string + Driver string + Expiry time.Duration + Format string + Host string + HttpOnly bool + KeyFile string + MaxAge time.Duration + Port int + Setting Map + Shared string + Static string + Timeout time.Duration + Token bool + Upload string + Validate string + type Connect interface + Close func() error + Health func() (Health, error) + Open func() error + Register func(name string, info Info) error + Start func() error + StartTLS func(certFile, keyFile string) error + type Context struct + Ajax bool + Args Map + Body Any + Code int + Config Router + Data Map + Domain string + Form Map + Host string + Locals Map + Method string + Name string + Params Map + Path string + Query Map + Setting Map + Site string + Subdomain string + Type string + Upload Map + Uri string + Url httpUrl + Value Map + func (ctx *Context) Agent() string + func (ctx *Context) Alert(res Res, urls ...string) + func (ctx *Context) Answer(res Res, args ...Any) + func (ctx *Context) Binary(bytes []byte, args ...string) + func (ctx *Context) Buffer(rd io.ReadCloser, args ...string) + func (ctx *Context) Charset(charsets ...string) string + func (ctx *Context) Cookie(key string, vals ...Any) string + func (ctx *Context) Denied(res Res) + func (ctx *Context) Echo(res Res, args ...Any) + func (ctx *Context) Error(res Res) + func (ctx *Context) Failed(res Res) + func (ctx *Context) File(file string, args ...string) + func (ctx *Context) Found() + func (ctx *Context) Goto(url string) + func (ctx *Context) HTML(html Any, args ...Any) + func (ctx *Context) Header(key string, vals ...string) string + func (ctx *Context) Html(html Any, args ...Any) + func (ctx *Context) IP() string + func (ctx *Context) Ip() string + func (ctx *Context) JSON(json Any, args ...Any) + func (ctx *Context) JSONP(callback string, json Any, args ...Any) + func (ctx *Context) Json(json Any, args ...Any) + func (ctx *Context) Jsonp(callback string, json Any, args ...Any) + func (ctx *Context) NewSign(auth bool, payload Map, expires time.Duration, kinds ...string) string + func (ctx *Context) Next() + func (ctx *Context) Proxy(url string) + func (ctx *Context) Redirect(url string) + func (ctx *Context) Route(name string, values ...Map) + func (ctx *Context) Script(script string, args ...Any) + func (ctx *Context) Show(res Res, urls ...string) + func (ctx *Context) Sign(auth bool, payload Map, expires time.Duration, kinds ...string) string + func (ctx *Context) Status(code int, texts ...string) + func (ctx *Context) Text(text Any, args ...Any) + func (ctx *Context) UserAgent() string + func (ctx *Context) View(view string, args ...Any) + func (ctx *Context) Xml(xml Any, args ...Any) + type Cookie = http.Cookie + type Cross struct + Allow bool + Header string + Headers []string + Method string + Methods []string + Origin string + Origins []string + type Delegate interface + Serve func(name string, params Map, res http.ResponseWriter, req *http.Request) + type Driver interface + Connect func(*Instance) (Connect, error) + type File struct + Checksum string + Extension string + Filename string + Length int64 + Mimetype string + Tempfile string + type Filter struct + Execute ctxFunc + Name string + Request ctxFunc + Response ctxFunc + Serve ctxFunc + Text string + type Find map[string]Item + type Handler struct + Denied ctxFunc + Error ctxFunc + Failed ctxFunc + Found ctxFunc + Name string + Text string + type Health struct + Workload int64 + type Helper struct + Action Any + Alias []string + Desc string + Name string + type Info struct + Hosts []string + Method string + Router string + Site string + Uri string + type Instance struct + Config Config + Setting Map + func (this *Instance) Serve(name string, params Map, res http.ResponseWriter, req *http.Request) + type Item struct + Args string + Empty Res + Error Res + Method string + Name string + Required bool + Text string + Value string + type Module struct + func (module *Module) Driver(name string, driver Driver) + func (module *Module) Routers(sites ...string) map[string]Router + func (this *Module) Config(name string, config Config) + func (this *Module) Configure(global Map) + func (this *Module) Connect() + func (this *Module) Filter(name string, config Filter) + func (this *Module) Handler(name string, config Handler) + func (this *Module) Helper(name string, config Helper) + func (this *Module) Initialize() + func (this *Module) Launch() + func (this *Module) Register(name string, value Any) + func (this *Module) Router(name string, config Router) + func (this *Module) Site(name string, site Site) + func (this *Module) Sites(name string, site Sites) + func (this *Module) Terminate() + type RawBody string + type Router struct + Action ctxFunc + Actions []ctxFunc + Args Vars + Auth bool + Coding bool + Data Vars + Denied ctxFunc + Error ctxFunc + Failed ctxFunc + Find Find + Found ctxFunc + Kind string + Method string + Name string + Nullable bool + Routing Routing + Setting Map + Sign bool + Socket bool + Text string + Uri string + Uris []string + type Routing map[string]Router + type Site struct + Charset string + Confuse string + Cookie string + Crypto bool + Domain string + Expiry time.Duration + Format string + Hosts []string + HttpOnly bool + MaxAge time.Duration + Name string + Setting Map + Ssl bool + Timeout time.Duration + Token bool + Validate string + type Sites map[string]Site + type TOMLBuffer struct + func (buf *TOMLBuffer) Close() error + func (buf *TOMLBuffer) Read(p []byte) (n int, err error) + func (buf *TOMLBuffer) Seek(offset int64, whence int) (int64, error) + type TOMLBuilder struct + func NewTOMLBuilder() *TOMLBuilder + func (this *TOMLBuilder) Append(key string, vals ...string) + func (this *TOMLBuilder) Build() string + func (this *TOMLBuilder) Files() map[string][]TOMLFile + func (this *TOMLBuilder) Forms() map[string][]string + func (this *TOMLBuilder) Store(key, name, mime string, buf io.ReadSeekCloser) + type TOMLFile struct + Buffer io.ReadSeekCloser + MIME string + Name string