players

package
v0.0.0-...-2b0ec13 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate()

func CreatePlayer

func CreatePlayer(c *gin.Context)

func GetPlayer

func GetPlayer(c *gin.Context)

func ListPlayers

func ListPlayers(c *gin.Context)

func RegisterRoutes

func RegisterRoutes(router *gin.RouterGroup)

Types

type PlayerModel

type PlayerModel struct {
	gorm.Model
	Name string `json:"name"`
	Elo  uint   `json:"elo"`
}

Jump to

Keyboard shortcuts

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