Documentation
¶
Overview ¶
Package db creates DB tables, call resource manager interfaces and populates the DB with compute units
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationsFS embed.FS
Functions ¶
func NewStatsDB ¶
NewStatsDB returns a new instance of statsDB struct
Types ¶
type Config ¶
type Config struct { Logger log.Logger DataPath string DataBackupPath string RetentionPeriod time.Duration SkipDeleteOldUnits bool LastUpdateTimeString string ResourceManager func(log.Logger) (*resource.Manager, error) Updater func(log.Logger) (*updater.UnitUpdater, error) TSDB *tsdb.TSDB }
Config makes a DB config from CLI args
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator implements DB migrations
func NewMigrator ¶
NewMigrator returns new instance of Migrator
Click to show internal directories.
Click to hide internal directories.