Documentation ¶
Index ¶
- Constants
- func GetExclusionList(db *gorm.DB) []int
- func GetPicksForDay(db *gorm.DB, day time.Time) []int
- func InitPostgres(cfg *config.AppConfig) *gorm.DB
- func ParsePicksToIntArr(pickStr string) []int
- func PersistPicks(db *gorm.DB, today time.Time, picks []int) error
- func SimpleDay(t time.Time) time.Time
- type History
- type HistoryList
- type Pick
Constants ¶
View Source
const ( SimpleDateFormat = "2006-01-02" DBconnectAttempt = 3 DBconnectBackoffSeconds = 10 )
Variables ¶
This section is empty.
Functions ¶
func GetExclusionList ¶
func ParsePicksToIntArr ¶
Types ¶
type HistoryList ¶
type HistoryList []*History
func GetHistoryDB ¶
func GetHistoryDB(db *gorm.DB) HistoryList
Click to show internal directories.
Click to hide internal directories.