Documentation ¶
Overview ¶
Package activity manages user activity data.
Index ¶
- Variables
- type Activity
- func (a *Activity) BuildChart(ctx Context, d date.DateRange) *view.TrackCharts
- func (a *Activity) Close()
- func (a *Activity) CreateEvents(ctx Context, events Events) error
- func (a *Activity) DeleteUserEvents(ctx Context) error
- func (a *Activity) Movies(ctx Context, start, end time.Time) []ActivityMovie
- func (a *Activity) Open() error
- func (a *Activity) TopArtists(ctx Context, tracks []ActivityTrack) []ActivityArtist
- func (a *Activity) TopReleases(ctx Context, tracks []ActivityTrack) []ActivityRelease
- func (a *Activity) TopTracks(ctx Context, start, end time.Time) []ActivityTrack
- func (a *Activity) TrackCountsByDay(ctx Context, start, end time.Time) []ActivityCount
- func (a *Activity) TrackCountsByMonth(ctx Context, start, end time.Time) []ActivityCount
- func (a *Activity) TrackDayCounts(ctx Context, d date.DateRange) *view.TrackCounts
- func (a *Activity) TrackMonthCounts(ctx Context, d date.DateRange) *view.TrackCounts
- func (a *Activity) Tracks(ctx Context, start, end time.Time) []ActivityTrack
- func (a *Activity) UserScrobble(user auth.User, s Scrobble, music *music.Music) error
- type Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidUser = errors.New("invalid user") ErrInvalidTrackEvent = errors.New("invalid track event") ErrInvalidEpisodeEvent = errors.New("invalid episode event") ErrInvalidMovieEvent = errors.New("invalid movie event") ErrTrackNotFound = errors.New("track not found") ErrMovieNotFound = errors.New("movie not found") ErrEpisodeNotFound = errors.New("episode not found") ErrReleaseNotFound = errors.New("release not found") )
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct {
// contains filtered or unexported fields
}
func NewActivity ¶
func (*Activity) BuildChart ¶ added in v0.23.0
func (*Activity) CreateEvents ¶
func (*Activity) DeleteUserEvents ¶
func (*Activity) TopArtists ¶ added in v0.21.0
func (*Activity) TopReleases ¶ added in v0.21.0
func (*Activity) TrackCountsByDay ¶ added in v0.23.0
func (*Activity) TrackCountsByMonth ¶ added in v0.23.0
func (*Activity) TrackDayCounts ¶ added in v0.23.0
func (*Activity) TrackMonthCounts ¶ added in v0.23.0
Click to show internal directories.
Click to hide internal directories.