Documentation ¶
Index ¶
- Variables
- type Downloadhandler
- type Gamehandler
- func (handler *Gamehandler) GetGame(w http.ResponseWriter, req *http.Request)
- func (handler *Gamehandler) GetGameDownload(w http.ResponseWriter, req *http.Request)
- func (handler *Gamehandler) GetGameDownloadIcon(w http.ResponseWriter, req *http.Request)
- func (handler *Gamehandler) GetGames(w http.ResponseWriter, req *http.Request)
- type Handler
- type Userhandler
Constants ¶
This section is empty.
Variables ¶
View Source
var UserStaleDuration time.Duration = 15 * time.Second
Functions ¶
This section is empty.
Types ¶
type Downloadhandler ¶
type Downloadhandler struct{}
func NewDownloadHandler ¶
func NewDownloadHandler(parent *Handler) (handler *Downloadhandler)
func (*Downloadhandler) GetDownload ¶
func (handler *Downloadhandler) GetDownload(w http.ResponseWriter, req *http.Request)
type Gamehandler ¶
type Gamehandler struct {
// contains filtered or unexported fields
}
func NewGameHandler ¶
func NewGameHandler(parent *Handler, games game.Games) (handler *Gamehandler)
func (*Gamehandler) GetGame ¶
func (handler *Gamehandler) GetGame(w http.ResponseWriter, req *http.Request)
func (*Gamehandler) GetGameDownload ¶
func (handler *Gamehandler) GetGameDownload(w http.ResponseWriter, req *http.Request)
func (*Gamehandler) GetGameDownloadIcon ¶
func (handler *Gamehandler) GetGameDownloadIcon(w http.ResponseWriter, req *http.Request)
func (*Gamehandler) GetGames ¶
func (handler *Gamehandler) GetGames(w http.ResponseWriter, req *http.Request)
type Handler ¶
type Handler struct { Setting *setting.Settings Gamehandler *Gamehandler Userhandler *Userhandler Downloadhandler *Downloadhandler }
func NewHandler ¶
func (*Handler) WithDownloadHandler ¶
func (*Handler) WithGamehandler ¶
type Userhandler ¶
type Userhandler struct {
// contains filtered or unexported fields
}
func NewUserHandler ¶
func (*Userhandler) GetUser ¶
func (handler *Userhandler) GetUser(w http.ResponseWriter, req *http.Request)
func (*Userhandler) GetUsers ¶
func (handler *Userhandler) GetUsers(w http.ResponseWriter, req *http.Request)
func (*Userhandler) PostUser ¶
func (handler *Userhandler) PostUser(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.