package engine import "time" const NowPlayingExpire = time.Duration(60) * time.Minute type NowPlayingInfo struct { TrackId string Start time.Time Username string PlayerId int PlayerName string } type NowPlayingRepository interface { Set(trackId, username string, playerId int, playerName string) error GetAll() (*[]NowPlayingInfo, error) }