Documentation ¶
Index ¶
- Variables
- func DeleteSport(db *gorm.DB, id string) error
- func GetSport(db *gorm.DB, id string) (*models.Sport, error)
- func InitDB() *gorm.DB
- func InsertSport(db *gorm.DB, sport *models.Sport) error
- func ListSports(db *gorm.DB) (*models.SportList, error)
- func UpdateSport(db *gorm.DB, sport *models.Sport) (*models.Sport, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TeamsMem = map[string]*models.Team{} SportsMem = map[string]*models.Sport{} PlayersMem = map[string]*models.Player{} )
Temporary in-memory data store
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.