controllers

package
v0.0.0-...-c10c52e Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGame

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

Add a new game to the db

func AddGameSystem

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

Add a new game system to the db

func DeleteGame

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

Fetch a single game from the db and call the edit game template

func EditGame

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

Update a single game in the db TODO: Implement me

func ListGames

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

Receive all games from the db and call the game list template

func ShowEditGame

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

Fetch a single game from the db and call the edit game template

func ShowGame

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

Fetch a single game from the db and call the show game template

Types

This section is empty.

Jump to

Keyboard shortcuts

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