pool-stats/constants/constants.go
2025-06-24 09:41:24 +03:00

27 lines
745 B
Go

package constants
import "time"
// time.Duration constants
const (
// RecalculateTimeWindowHighSharesJob interval
RecalculateTimeWindowHighSharesJobInterval = 1 * time.Minute
// RecalculateTopSharesJob interval
RecalculateTopSharesJobInterval = 30 * time.Second
// IngestSharesJob interval
IngestSharesJobInterval = 30 * time.Second
// RecalculateCurrentDayStatsJob interval
RecalculateCurrentDayStatsJobInterval = 30 * time.Minute
)
// counts and stuff
const (
// TopSharesAmount is the number of top shares to keep
TopSharesAmount = 15
// DailyStatsPerPage is the number of daily stats per page
DailyStatsPerPage = 15
)
// EpochTime is the start time for daily stats
var EpochTime = time.Date(2025, 5, 1, 0, 0, 0, 0, time.UTC)