Versions in this module Expand all Collapse all v0 v0.1.6 Aug 22, 2022 Changes in this version + func Route(name string, args ...Map) string + func SiteHosts(site string) []string + func SiteUrl(name string, path string, options ...Map) string v0.1.5 Aug 16, 2022 v0.1.4 Aug 11, 2022 v0.1.3 Aug 11, 2022 v0.1.2 Aug 10, 2022 v0.1.1 Aug 10, 2022 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 Configure(cfg Map) + func Go() + func Ready() + func Register(name string, value Any, overrides ...bool) + func Routers(sites ...string) map[string]Router + func StatusText(code int) string + type Config struct + CertFile string + Charset string + Cookie string + Crypto bool + Defaults []string + Domain string + Driver string + Expiry time.Duration + HttpOnly bool + KeyFile string + MaxAge time.Duration + Port int + Setting Map + Shared string + Static string + Token bool + Upload string + type Connect interface + Accept func(Delegate) error + 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 + 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 + 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 ...Map) + 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) 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) 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, ends ...time.Duration) 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(config Config) (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 + 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, override bool) + func (module *Module) Routers(sites ...string) map[string]Router + func (this *Module) Config(name string, config Config, override bool) + func (this *Module) Configure(global Map) + func (this *Module) Connect() + func (this *Module) Filter(name string, config Filter, override bool) + func (this *Module) Handler(name string, config Handler, override bool) + func (this *Module) Helper(name string, config Helper, override bool) + func (this *Module) Initialize() + func (this *Module) Launch() + func (this *Module) Register(name string, value Any, override bool) + func (this *Module) Router(name string, config Router, override bool) + func (this *Module) Site(name string, site Site, override bool) + func (this *Module) Sites(name string, site Sites, override bool) + 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 + 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 + Cookie string + Crypto bool + Domain string + Expiry time.Duration + Hosts []string + HttpOnly bool + MaxAge time.Duration + Name string + Setting Map + Ssl bool + Token bool + 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