Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Calc = cli.Command{ Name: "calc", Usage: "calculates the user's scores for the day before execution time", Action: calc, Flags: []cli.Flag{ cli.IntFlag{ Name: "day, d", Usage: "calculates the scores for the given day (to compensate server-down-time)", }, }, }
Calc holds the cli command for calculating
View Source
var Reset = cli.Command{ Name: "reset", Usage: "resets database and session-storage", Action: reset, Flags: []cli.Flag{ cli.BoolFlag{ Name: "users, u", Usage: "deletes all users except admin", }, cli.BoolFlag{ Name: "docs, d", Usage: "deletes all documents of all types", }, cli.BoolFlag{ Name: "all, a", Usage: "deletes all documents of all types and all users except admin", }, cli.BoolFlag{ Name: "standard, s", Usage: "deletes all documents of type quest and all users except admin", }, cli.BoolFlag{ Name: "web, w", Usage: "starts the webserver after executing the reset", }, }, }
Reset holds the cli command for all available reset methods
View Source
var Web = cli.Command{
Name: "web",
Usage: "Start webserver",
Action: runWeb,
}
Web holds the cli command for starting the webserver
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.