15 lines
223 B
Go
15 lines
223 B
Go
|
|
package engine
|
||
|
|
|
||
|
|
import "time"
|
||
|
|
|
||
|
|
const NowPlayingExpire = time.Duration(30) * time.Minute
|
||
|
|
|
||
|
|
type NowPlayingInfo struct {
|
||
|
|
TrackId string
|
||
|
|
Start time.Time
|
||
|
|
}
|
||
|
|
|
||
|
|
type NowPlayingRepository interface {
|
||
|
|
Add(trackId string) error
|
||
|
|
}
|