data

package
v0.0.0-...-47d8757 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	Score int    `json:"score"`
	IsCut bool   `json:"is_cut"`
	TsnID int    `json:"tsn_id"`
}

func GetPlayers

func GetPlayers(db *sql.DB, start, count int) ([]Player, error)

func (*Player) CreatePlayer

func (p *Player) CreatePlayer(db *sql.DB) error

func (*Player) DeletePlayer

func (p *Player) DeletePlayer(db *sql.DB) error

func (*Player) GetPlayer

func (p *Player) GetPlayer(db *sql.DB) error

func (*Player) UpdatePlayer

func (p *Player) UpdatePlayer(db *sql.DB) error

Jump to

Keyboard shortcuts

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