Documentation
¶
Index ¶
- type Action
- type AddPlayerToMyTeamParams
- type AddScoreToTeamParams
- type CreateActionParams
- type CreateMatchParams
- type CreateMyTeamParams
- type CreatePlayerParams
- type DBTX
- type Match
- type MyTeam
- type MyTeamPlayer
- type Player
- type Queries
- func (q *Queries) AddPlayerToMyTeam(ctx context.Context, arg AddPlayerToMyTeamParams) error
- func (q *Queries) AddScoreToTeam(ctx context.Context, arg AddScoreToTeamParams) error
- func (q *Queries) CreateAction(ctx context.Context, arg CreateActionParams) error
- func (q *Queries) CreateMatch(ctx context.Context, arg CreateMatchParams) error
- func (q *Queries) CreateMyTeam(ctx context.Context, arg CreateMyTeamParams) error
- func (q *Queries) CreatePlayer(ctx context.Context, arg CreatePlayerParams) error
- func (q *Queries) DeleteAllPlayersFromMyTeam(ctx context.Context, myTeamID string) error
- func (q *Queries) FindAllMatches(ctx context.Context) ([]Match, error)
- func (q *Queries) FindAllPlayers(ctx context.Context) ([]Player, error)
- func (q *Queries) FindAllPlayersByIDs(ctx context.Context, id string) ([]Player, error)
- func (q *Queries) FindMatchById(ctx context.Context, id string) (Match, error)
- func (q *Queries) FindMyTeamById(ctx context.Context, id string) (MyTeam, error)
- func (q *Queries) FindMyTeamByIdForUpdate(ctx context.Context, id string) (MyTeam, error)
- func (q *Queries) FindPlayerById(ctx context.Context, id string) (Player, error)
- func (q *Queries) FindPlayerByIdForUpdate(ctx context.Context, id string) (Player, error)
- func (q *Queries) FindTeamById(ctx context.Context, id string) (Team, error)
- func (q *Queries) GetMatchActions(ctx context.Context, matchID string) ([]Action, error)
- func (q *Queries) GetMatchActionsForUpdate(ctx context.Context, matchID string) ([]Action, error)
- func (q *Queries) GetMyTeamBalance(ctx context.Context, id string) (float64, error)
- func (q *Queries) GetPlayersByMyTeamID(ctx context.Context, myTeamID string) ([]Player, error)
- func (q *Queries) RemoveActionFromMatch(ctx context.Context, matchID string) error
- func (q *Queries) UpdateMatch(ctx context.Context, arg UpdateMatchParams) error
- func (q *Queries) UpdateMyTeamScore(ctx context.Context, arg UpdateMyTeamScoreParams) error
- func (q *Queries) UpdateMyTeamsScore(ctx context.Context, arg UpdateMyTeamsScoreParams) error
- func (q *Queries) UpdatePlayer(ctx context.Context, arg UpdatePlayerParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Team
- type TeamPlayer
- type UpdateMatchParams
- type UpdateMyTeamScoreParams
- type UpdateMyTeamsScoreParams
- type UpdatePlayerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPlayerToMyTeamParams ¶
type AddScoreToTeamParams ¶
type CreateActionParams ¶
type CreateMatchParams ¶
type CreateMatchParams struct { ID string `json:"id"` MatchDate sql.NullTime `json:"match_date"` TeamAID sql.NullString `json:"team_a_id"` TeamAName sql.NullString `json:"team_a_name"` TeamBID sql.NullString `json:"team_b_id"` TeamBName sql.NullString `json:"team_b_name"` Result sql.NullString `json:"result"` }
type CreateMyTeamParams ¶
type CreatePlayerParams ¶
type Match ¶
type Match struct { ID string `json:"id"` MatchDate sql.NullTime `json:"match_date"` TeamAID sql.NullString `json:"team_a_id"` TeamAName sql.NullString `json:"team_a_name"` TeamBID sql.NullString `json:"team_b_id"` TeamBName sql.NullString `json:"team_b_name"` Result sql.NullString `json:"result"` }
type MyTeamPlayer ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddPlayerToMyTeam ¶
func (q *Queries) AddPlayerToMyTeam(ctx context.Context, arg AddPlayerToMyTeamParams) error
func (*Queries) AddScoreToTeam ¶
func (q *Queries) AddScoreToTeam(ctx context.Context, arg AddScoreToTeamParams) error
func (*Queries) CreateAction ¶
func (q *Queries) CreateAction(ctx context.Context, arg CreateActionParams) error
func (*Queries) CreateMatch ¶
func (q *Queries) CreateMatch(ctx context.Context, arg CreateMatchParams) error
func (*Queries) CreateMyTeam ¶
func (q *Queries) CreateMyTeam(ctx context.Context, arg CreateMyTeamParams) error
func (*Queries) CreatePlayer ¶
func (q *Queries) CreatePlayer(ctx context.Context, arg CreatePlayerParams) error
func (*Queries) DeleteAllPlayersFromMyTeam ¶
func (*Queries) FindAllMatches ¶
func (*Queries) FindAllPlayers ¶
func (*Queries) FindAllPlayersByIDs ¶
func (*Queries) FindMatchById ¶
func (*Queries) FindMyTeamById ¶
func (*Queries) FindMyTeamByIdForUpdate ¶
func (*Queries) FindPlayerById ¶
func (*Queries) FindPlayerByIdForUpdate ¶
func (*Queries) FindTeamById ¶
func (*Queries) GetMatchActions ¶
func (*Queries) GetMatchActionsForUpdate ¶
func (*Queries) GetMyTeamBalance ¶
func (*Queries) GetPlayersByMyTeamID ¶
func (*Queries) RemoveActionFromMatch ¶
func (*Queries) UpdateMatch ¶
func (q *Queries) UpdateMatch(ctx context.Context, arg UpdateMatchParams) error
func (*Queries) UpdateMyTeamScore ¶
func (q *Queries) UpdateMyTeamScore(ctx context.Context, arg UpdateMyTeamScoreParams) error
func (*Queries) UpdateMyTeamsScore ¶
func (q *Queries) UpdateMyTeamsScore(ctx context.Context, arg UpdateMyTeamsScoreParams) error
func (*Queries) UpdatePlayer ¶
func (q *Queries) UpdatePlayer(ctx context.Context, arg UpdatePlayerParams) error
type TeamPlayer ¶
type UpdateMatchParams ¶
type UpdateMatchParams struct { MatchDate sql.NullTime `json:"match_date"` TeamAID sql.NullString `json:"team_a_id"` TeamAName sql.NullString `json:"team_a_name"` TeamBID sql.NullString `json:"team_b_id"` TeamBName sql.NullString `json:"team_b_name"` Result sql.NullString `json:"result"` ID string `json:"id"` }
type UpdateMyTeamScoreParams ¶
type UpdatePlayerParams ¶
Click to show internal directories.
Click to hide internal directories.