Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct {
Manager game.Manager
Session sessions.Store
DB gorm.DB
Data map[string]interface{}
}
Env is the shared game manager for each request.
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.
Click to show internal directories.
Click to hide internal directories.