Halfway of getNowPlaying implementation
This commit is contained in:
@@ -5,10 +5,14 @@ import "time"
|
||||
const NowPlayingExpire = time.Duration(30) * time.Minute
|
||||
|
||||
type NowPlayingInfo struct {
|
||||
TrackId string
|
||||
Start time.Time
|
||||
TrackId string
|
||||
Start time.Time
|
||||
Username string
|
||||
PlayerId int
|
||||
PlayerName string
|
||||
}
|
||||
|
||||
type NowPlayingRepository interface {
|
||||
Set(trackId string) error
|
||||
Set(trackId, username string, playerId int, playerName string) error
|
||||
GetAll() (*[]NowPlayingInfo, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user