Documentation ¶
Index ¶
- func AddBlog(w http.ResponseWriter, r *http.Request, uid int)
- func AddNote(w http.ResponseWriter, r *http.Request, uid int)
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func DataUpload(w http.ResponseWriter, r *http.Request)
- func Events(w http.ResponseWriter, r *http.Request, uid int)
- func ExportList(w http.ResponseWriter, r *http.Request, uid int)
- func Index(w http.ResponseWriter, r *http.Request, uid int)
- func KeyEvents(w http.ResponseWriter, r *http.Request, uid int)
- func MustAsset(name string) []byte
- func RecentWindows(w http.ResponseWriter, r *http.Request, uid int)
- func RegisterRoutes(router *mux.Router) *mux.Router
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func ServeFromGolog(g *gologme.Golog, url string)
- func ServeFromPath(dbType string, dbPath string, url string)
- func WinEvents(w http.ResponseWriter, r *http.Request, uid int)
- type Route
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func DataUpload ¶
func DataUpload(w http.ResponseWriter, r *http.Request)
func Events ¶
func Events(w http.ResponseWriter, r *http.Request, uid int)
Events lists events for a given day
func ExportList ¶
func ExportList(w http.ResponseWriter, r *http.Request, uid int)
ExportList produces custom json struct required by ulogme UI
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RecentWindows ¶
func RecentWindows(w http.ResponseWriter, r *http.Request, uid int)
Events lists the last N recorded events
func RegisterRoutes ¶
RegisterRoutes operates over `Routes` and registers all of them
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively