controllers

package
v0.0.0-...-f83a9ed Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGame

func CreateGame(w http.ResponseWriter, req *http.Request)

POST /games

func CreatePlayer

func CreatePlayer(w http.ResponseWriter, req *http.Request)

POST /players

func CreateShot

func CreateShot(w http.ResponseWriter, req *http.Request)

POST /shots

func CreateTeam

func CreateTeam(w http.ResponseWriter, req *http.Request)

POST /teams

func GetGameByID

func GetGameByID(w http.ResponseWriter, req *http.Request)

GET /games/:id

func GetTeamByID

func GetTeamByID(w http.ResponseWriter, req *http.Request)

GET /teams/:id

func UpdatePlayer

func UpdatePlayer(w http.ResponseWriter, req *http.Request)

PATCH /players/:id TO DO add generic decodeReq method that takes and returns interface{}

func UpdateShot

func UpdateShot(w http.ResponseWriter, req *http.Request)

PATCH /shots/:id

func UpdateTeam

func UpdateTeam(w http.ResponseWriter, req *http.Request)

PATCH /teams/:id

Types

This section is empty.

Jump to

Keyboard shortcuts

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