Documentation
¶
Index ¶
- func ComputeSessions(ctx context.Context, stats []domain.PlayerPIT, start, end time.Time) []domain.Session
- type FindMilestoneAchievements
- type GetAccountByUUID
- type GetAccountByUsername
- type GetAndPersistPlayerWithCache
- type GetHistory
- type GetPlayerPITs
- type GetPrismNotices
- type GetTags
- type PrismNotice
- type RegisterUserVisit
- type Severity
- type UpdatePlayerInInterval
- type UpdateSelection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FindMilestoneAchievements ¶
type FindMilestoneAchievements func(ctx context.Context, playerUUID string, gamemode domain.Gamemode, stat domain.Stat, milestones []int64) ([]domain.MilestoneAchievement, error)
func BuildFindMilestoneAchievements ¶
func BuildFindMilestoneAchievements( repo milestonePlayerRepository, getAndPersistPlayerWithCache GetAndPersistPlayerWithCache, ) FindMilestoneAchievements
type GetAccountByUUID ¶
type GetAndPersistPlayerWithCache ¶
func BuildGetAndPersistPlayerWithCache ¶
func BuildGetAndPersistPlayerWithCache( playerCache cache.Cache[*domain.PlayerPIT], provider playerprovider.PlayerProvider, repo playerrepository.PlayerRepository, ) (GetAndPersistPlayerWithCache, error)
type GetHistory ¶
type GetHistory = func( ctx context.Context, uuid string, start, end time.Time, limit int, ) ([]domain.PlayerPIT, error)
func BuildGetHistory ¶
func BuildGetHistory( repo playerrepository.PlayerRepository, updatePlayerInInterval UpdatePlayerInInterval, ) GetHistory
type GetPlayerPITs ¶
type GetPlayerPITs = func( ctx context.Context, uuid string, start, end time.Time, ) ([]domain.PlayerPIT, error)
func BuildGetPlayerPITs ¶
func BuildGetPlayerPITs( repo playerPITsPlayerRepository, updatePlayerInInterval UpdatePlayerInInterval, ) GetPlayerPITs
type GetPrismNotices ¶
type GetPrismNotices = func( ctx context.Context, userID string, prismVersion string, updateSelection UpdateSelection, ) []PrismNotice
func BuildGetPrismNotices ¶
func BuildGetPrismNotices(nowFunc func() time.Time) GetPrismNotices
type PrismNotice ¶
type RegisterUserVisit ¶
type RegisterUserVisit func(ctx context.Context, userID string, ipHash string, userAgent string) (domain.User, error)
func BuildRegisterUserVisit ¶
func BuildRegisterUserVisit(repo userRepository) RegisterUserVisit
type UpdatePlayerInInterval ¶
Ensure that the player data is up to date in the repository in the given interval.
func BuildUpdatePlayerInInterval ¶
func BuildUpdatePlayerInInterval( getAndPersistPlayerWithCache GetAndPersistPlayerWithCache, nowFunc func() time.Time, ) UpdatePlayerInInterval
type UpdateSelection ¶
type UpdateSelection int
const ( UpdateSelectionNone UpdateSelection = iota UpdateSelectionMinor UpdateSelectionAll )
Click to show internal directories.
Click to hide internal directories.