Halfway of getNowPlaying implementation

This commit is contained in:
Deluan
2016-03-17 09:34:32 -04:00
parent a3238ce17b
commit 68c456e188
13 changed files with 113 additions and 29 deletions
+7 -3
View File
@@ -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)
}