Documentation ¶
Index ¶
- Constants
- type Account
- type DemoEvent
- type LineType
- type MoneylineType
- type SpecialContestantType
- type SpecialEventType
- type SpecialLineType
- type SpecialType
- type Spread
- type SpreadType
- type Stat
- type Store
- func (s *Store) Close()
- func (s *Store) CreateSport(ctx context.Context, sport api.Sport) error
- func (s *Store) DeleteOldLines(ctx context.Context) error
- func (s *Store) DeleteOldMoneylines(ctx context.Context) error
- func (s *Store) FindEvent(ctx context.Context, line *pb.SurebetSide) error
- func (s *Store) FindLeagueIdByName(ctx context.Context, line *pb.SurebetSide) error
- func (s *Store) FindSportIdByName(ctx context.Context, line *pb.SurebetSide) error
- func (s *Store) GetAccount(ctx context.Context) (Account, error)
- func (s *Store) GetEvent(eventId string) (event api.Fixture, err error)
- func (s *Store) GetResults(ctx context.Context) ([]pb.BetResult, error)
- func (s *Store) GetStat(side *pb.SurebetSide) error
- func (s *Store) IsInCache(ctx context.Context, sport api.Sport) bool
- func (s *Store) LoadToken(ctx context.Context) (Token, error)
- func (s *Store) SaveBalance(ctx context.Context, b api.ClientBalanceResponse, accountId int) error
- func (s *Store) SaveBet(sb *pb.Surebet) error
- func (s *Store) SaveBetList(bets []api.StraightBetV3) error
- func (s *Store) SaveCheck(sb *pb.Surebet) error
- func (s *Store) SaveEvents(ctx context.Context, leagueId int, events []api.Fixture) error
- func (s *Store) SaveLeagues(ctx context.Context, sportId int, leagues []api.League) error
- func (s *Store) SaveLines(ctx context.Context, eventId int64, periods []api.OddsPeriod) error
- func (s *Store) SavePeriods(ctx context.Context, sportId int, got []api.Period) error
- func (s *Store) SaveSpecialLines(ctx context.Context, leagueId int, specials []api.SpecialOddsSpecial) error
- func (s *Store) SaveSpecials(ctx context.Context, leagueId int, specials []api.SpecialFixture) error
- func (s *Store) SaveSports(ctx context.Context, sports []api.Sport) error
- func (s *Store) SaveToken(ctx context.Context, token Token) error
- func (s *Store) SelectCurrentEvents(ctx context.Context, sportId int64, count int64, eventType string) (events []DemoEvent, err error)
- func (s *Store) SelectSpreads(ctx context.Context, eventId string, period int) (spreads []Spread, err error)
- func (s *Store) SelectTotals(ctx context.Context, eventId string, period int) (totals []Total, err error)
- func (s *Store) SetVerifyWithTTL(key string, value interface{}, ttl time.Duration) bool
- type Token
- type Total
- type TotalType
Constants ¶
View Source
const CurrentEventsQ = `` /* 652-byte string literal not displayed */
View Source
const DeleteOldLinesSQL = `
delete l
from Line l
join Event e on l.EventId = e.Id
where DATEDIFF(day, Starts, sysdatetimeoffset()) > 7
`
View Source
const DeleteOldMoneylinesSQL = `
delete m
from Moneyline m
where DATEDIFF(day, UpdatedAt, sysdatetimeoffset()) > 14
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MoneylineType ¶
type SpecialContestantType ¶
type SpecialEventType ¶
type SpecialLineType ¶
type SpecialType ¶
type SpreadType ¶
type Store ¶
func (*Store) FindLeagueIdByName ¶
func (*Store) FindSportIdByName ¶
func (*Store) SaveBalance ¶
func (*Store) SaveBetList ¶
func (s *Store) SaveBetList(bets []api.StraightBetV3) error
func (*Store) SaveEvents ¶
func (*Store) SaveLeagues ¶
func (*Store) SavePeriods ¶
func (*Store) SaveSpecialLines ¶
func (*Store) SaveSpecials ¶
func (*Store) SaveSports ¶
func (*Store) SelectCurrentEvents ¶
func (*Store) SelectSpreads ¶
func (*Store) SelectTotals ¶
Click to show internal directories.
Click to hide internal directories.