Documentation ¶
Index ¶
- type Builder
- type Config
- type MySQL
- func (mysql *MySQL) CreateCompetition(name, competitionType string, externalEntityId *string) (*models.Competition, error)
- func (mysql *MySQL) CreateTeam(teamName string, externalEntityId, imageUrl *string) (*models.Team, error)
- func (mysql *MySQL) ListCompetitions(limit, offset int) ([]*models.Competition, error)
- func (mysql *MySQL) ListTeams(limit, offset int) ([]*models.Team, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `envconfig:"MYSQL_HOST" default:"localhost"` Port string `envconfig:"MYSQL_PORT" default:"3306"` Username string `envconfig:"MYSQL_USERNAME" default:"root"` Password string `envconfig:"MYSQL_PASSWORD" default:"password"` Database string `envconfig:"MYSQL_DATABASE" default:"meizamDB"` }
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (*MySQL) CreateCompetition ¶
func (*MySQL) CreateTeam ¶
func (*MySQL) ListCompetitions ¶
func (mysql *MySQL) ListCompetitions(limit, offset int) ([]*models.Competition, error)
Click to show internal directories.
Click to hide internal directories.