Documentation ¶
Index ¶
- func About(env *Env, w http.ResponseWriter, r *http.Request) error
- func AccessDenied(env *Env, w http.ResponseWriter, r *http.Request) error
- func Blog(env *Env, w http.ResponseWriter, r *http.Request) error
- func BlogPost(env *Env, w http.ResponseWriter, r *http.Request) error
- func Error404(env *Env, w http.ResponseWriter, r *http.Request) error
- func Index(env *Env, w http.ResponseWriter, r *http.Request) error
- func Leaderboard(env *Env, w http.ResponseWriter, r *http.Request) error
- func Login(env *Env, w http.ResponseWriter, r *http.Request) error
- func Logout(env *Env, w http.ResponseWriter, r *http.Request) error
- func Map(env *Env, w http.ResponseWriter, r *http.Request) error
- func NotFound(w http.ResponseWriter, r *http.Request)
- func Privacy(env *Env, w http.ResponseWriter, r *http.Request) error
- func Register(env *Env, w http.ResponseWriter, r *http.Request) error
- func RenderAdmin(w http.ResponseWriter, data map[string]interface{}, patterns ...string) error
- func SuggestName(env *Env, w http.ResponseWriter, r *http.Request) error
- type Env
- type Error
- type HandleAdmin
- type HandlePublic
- type StatusError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessDenied ¶
AccessDenied is the page visitors see when they try to access they shouldn't
func Index ¶
Index is the homepage of the game. Prints a very simple page asking only for a team code.
func Leaderboard ¶
Leaderboard shows players who is currently in the lead. The leaderboard is with respect to the first game and the ARG. Alternatively, this could be a list of completed quests.
func RenderAdmin ¶
func RenderAdmin(w http.ResponseWriter, data map[string]interface{}, patterns ...string) error
TODO: Abstract this out so it is automatic
func SuggestName ¶
Suggestname suggests a new name
Types ¶
type Error ¶
Error represents a handler error. It provides methods for a HTTP status code and embeds the built-in error interface.
type HandleAdmin ¶
HandleAdmin takes both a game manager and http function.
func (HandleAdmin) ServeHTTP ¶
func (h HandleAdmin) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HandlePublic ¶
HandlePublic takes both a game manager and http function.
func (HandlePublic) ServeHTTP ¶
func (h HandlePublic) ServeHTTP(w http.ResponseWriter, r *http.Request)
type StatusError ¶
StatusError represents an error with an associated HTTP status code.
func (StatusError) Error ¶
func (se StatusError) Error() string
Allows StatusError to satisfy the error interface.