2016-03-16 16:27:48 -08:00
|
|
|
package engine
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
const NowPlayingExpire = time.Duration(30) * time.Minute
|
|
|
|
|
|
|
|
|
|
type NowPlayingInfo struct {
|
|
|
|
|
TrackId string
|
|
|
|
|
Start time.Time
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type NowPlayingRepository interface {
|
2016-03-16 17:04:41 -08:00
|
|
|
Set(trackId string) error
|
2016-03-16 16:27:48 -08:00
|
|
|
}
|