Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExpireAt ¶
GetExpireAt returns a timestamp when the key should expire or -1 if the key doesn't match any valid auto expire regexes
func MonthlyExpiration ¶
MonthlyExpiration calculates the expireAt date for leaderboards with quarterly format
func QuarterlyExpiration ¶
QuarterlyExpiration calculates the expireAt date for leaderboards with quarterly format
func WeeklyExpiration ¶
WeeklyExpiration calculates the expireAt date for leaderboards with weekly format
Types ¶
type InvalidDurationError ¶
InvalidDurationError identifies that a given key generates an invalid duration
func (*InvalidDurationError) Error ¶
func (e *InvalidDurationError) Error() string
type LeaderboardExpiredError ¶
type LeaderboardExpiredError struct {
LeaderboardPublicID string
}
LeaderboardExpiredError identifies that a given key generates an already expired leaderboard
func (*LeaderboardExpiredError) Error ¶
func (e *LeaderboardExpiredError) Error() string
Click to show internal directories.
Click to hide internal directories.