Versions in this module Expand all Collapse all v1 v1.0.7 Oct 3, 2020 v1.0.6 Sep 13, 2020 Changes in this version + const CAPACITY + const DAILY + const DBTIMEOUT + const MONTHLY + const RECOVERY + const REFRESH + const TRACK + func AddNewApp(ctx context.Context, element *App, col *mongo.Collection) error + func Flush(ctx context.Context, col *mongo.Collection) error + func GetJobParams(cfg *config.Config, jobType int) (int, *mongo.Cursor, error) + func SetTrackFlag(ctx context.Context, id primitive.ObjectID, val bool, col *mongo.Collection) error + func UpdateApp(ctx context.Context, app *App, col *mongo.Collection) error + type App struct + DailyMetrics []DailyMetric + ID primitive.ObjectID + LastMetric DailyMetric + Metrics []Metric + StaticData StaticAppData + Tracked bool + type DailyMetric struct + Date time.Time + PlayerCount int + type Metric struct + AvgPlayers int + Date time.Time + Gain string + GainPercent string + Peak int + type StaticAppData struct + AppID int + Domain string + Name string + func GetFullStaticData(ctx context.Context, col *mongo.Collection) ([]StaticAppData, error)