1
0
dwelling-radio/internal/statistics/statistics.go

14 lines
344 B
Go

package statistics
import "dwelling-radio/internal/radio"
const MostListenedDateFormat string = "02 January 2006 at 15:04:05 MST"
type Statistics interface {
Add(*radio.Song) error
LastNSongs(n int64) ([]radio.Song, error)
MostNPopularSongs(n int64) ([]radio.Song, error)
MostSimultaneousListeners() (radio.Song, error)
Close() error
}