Versions in this module Expand all Collapse all v0 v0.0.1 Mar 1, 2020 Changes in this version + var Root = "." + func Register(impl AppEngine) + type AppEngine interface + CacheRead func(ctxt interface{}, name, path string) (key interface{}, data []byte, found bool) + CacheWrite func(ctxt, key interface{}, data []byte) + Criticalf func(ctxt interface{}, format string, args ...interface{}) + Mkdir func(ctxt interface{}, path string) error + NewContext func(req *http.Request) interface{} + Read func(ctxt interface{}, path string) ([]byte, *proto.FileInfo, error) + ReadDir func(ctxt interface{}, path string) ([]proto.FileInfo, error) + Remove func(ctxt interface{}, path string) error + User func(ctxt interface{}) string + Write func(ctxt interface{}, path string, data []byte) error + type CacheKey struct + type Context struct + func NewContext(req *http.Request) *Context + func (c *Context) CacheLoad(name, path string, value interface{}) (ckey CacheKey, found bool) + func (c *Context) CacheRead(name, path string) (ckey CacheKey, data []byte, found bool) + func (c *Context) CacheStore(ckey CacheKey, value interface{}) + func (c *Context) CacheWrite(ckey CacheKey, data []byte) + func (c *Context) Criticalf(format string, args ...interface{}) + func (c *Context) Mkdir(path string) error + func (c *Context) Read(path string) ([]byte, *proto.FileInfo, error) + func (c *Context) ReadDir(path string) ([]proto.FileInfo, error) + func (c *Context) Remove(path string) error + func (c *Context) ServeFile(w http.ResponseWriter, req *http.Request, name string) + func (c *Context) User() string + func (c *Context) Write(path string, data []byte) error