controllers

package
v0.0.0-...-d7b114a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CheckUserStatus

func CheckUserStatus(w http.ResponseWriter, r *http.Request)

func CollectHeader

func CollectHeader()

func CronGameView

func CronGameView()

func DeleteCatalog

func DeleteCatalog()

func DeleteGame

func DeleteGame()

func DeleteUser

func DeleteUser(w http.ResponseWriter, r *http.Request)

DELETE -- 200 (OK). 404 (Not Found), if ID not found or invalid.

func ExecuteGameTemplate

func ExecuteGameTemplate(w http.ResponseWriter, templates []string, page GameDetailTemplate)

Execute template

func GetCatalog

func GetCatalog(w http.ResponseWriter, r *http.Request)

GET -- 200 (OK), single game. 404 (Not Found), if ID not found or invalid.

func GetGame

func GetGame(w http.ResponseWriter, r *http.Request)

func GetHeader

func GetHeader() models.Header

func GetUser

func GetUser(w http.ResponseWriter, r *http.Request)

GET -- 200 (OK), single user. 404 (Not Found), if ID not found or invalid.

func IGetGame

func IGetGame(w http.ResponseWriter, r *http.Request)

GET -- 200 (OK), single game. 404 (Not Found), if ID not found or invalid.

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

func PatchCatalog

func PatchCatalog()

func PatchGame

func PatchGame()

func PatchUser

func PatchUser(w http.ResponseWriter, r *http.Request)

PATCH -- 200 (OK) or 204 (No Content). 404 (Not Found), if ID not found or invalid.

func PostCatalog

func PostCatalog()

func PostGame

func PostGame()

func PostUser

func PostUser(w http.ResponseWriter, r *http.Request)

POST -- 404 (Not Found), 409 (Conflict) if resource already exists.

Types

type Game

type Game models.Game

type GameDetailTemplate

type GameDetailTemplate struct {
	Header  models.Header
	Title   string
	Content Game
	Footer  []string
	Status  models.Status
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL