Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormDB ¶ added in v0.1.0
type GormDB struct {
// contains filtered or unexported fields
}
func NewPostgresDB ¶ added in v0.1.0
func NewPostgresDB(pgdb PostgresDB) (*GormDB, error)
func (*GormDB) AddSamples ¶ added in v0.1.0
func (*GormDB) SetupDefaults ¶ added in v0.1.0
func (gdb *GormDB) SetupDefaults()
type PostgresDB ¶
type Samples ¶
type Samples struct { Timestamp time.Time EventID string `gorm:"primarykey"` ChannelID string ChannelName string CreatedAt time.Time EndedAt time.Time LockedAt time.Time CreatedBy string EndedBy string LockedBy string BlueID string BlueTitle string BlueTotalPoints int BlueTotalUsers int BlueWon bool PinkID string PinkTitle string PinkTotalPoints int PinkTotalUsers int PinkWon bool Predictors []Predictor `gorm:"foreignKey:EventID"` PredictionWindowSeconds int Status string // ACTIVE or LOCKED or RESOLVE_PENDING or RESOLVED Title string }
type TestDB ¶ added in v0.1.0
type TestDB struct {
TestFunc func(...Samples)
}
func (*TestDB) AddSamples ¶ added in v0.1.0
func (*TestDB) SetupDefaults ¶ added in v0.1.0
func (tdb *TestDB) SetupDefaults()
Click to show internal directories.
Click to hide internal directories.