Documentation ¶
Index ¶
- func Scrape() <-chan lotto.Result
- type AppDB
- func (db *AppDB) DataRange() (time.Time, time.Time, error)
- func (db *AppDB) Exists(t time.Time) bool
- func (db *AppDB) LastDraw() (lotto.Result, error)
- func (db *AppDB) MachineSetFreq(begin time.Time, end time.Time) ([]MacSetFreq, error)
- func (db *AppDB) Machines(begin time.Time, end time.Time, sets []int) ([]string, error)
- func (db *AppDB) Result(t time.Time) (lotto.Result, error)
- func (db *AppDB) Results(begin, end time.Time, machines []string, sets []int, orderDesc bool) <-chan lotto.Result
- func (db *AppDB) Sets(begin time.Time, end time.Time, machines []string) ([]int, error)
- func (db *AppDB) Update() error
- type MacSetFreq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppDB ¶
AppDB is a wrapper for *sql.DB so I can extend it by adding my own methods
func (*AppDB) MachineSetFreq ¶ added in v0.0.6
MachineSetFreq returns date constrained set displaying which combinations of machine/set have been drawn and how many times
func (*AppDB) Results ¶
func (db *AppDB) Results(begin, end time.Time, machines []string, sets []int, orderDesc bool) <-chan lotto.Result
Results returns a channel of records
type MacSetFreq ¶ added in v0.0.6
MacSetFreq provides a struct for recording the frequency of a machine/set combination in draws
Click to show internal directories.
Click to hide internal directories.