Documentation ¶
Overview ¶
Package activity manages user activity data.
Index ¶
- Variables
- type Activity
- 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) 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) CreateEvents ¶
func (*Activity) DeleteUserEvents ¶
func (*Activity) TopArtists ¶ added in v0.21.0
func (*Activity) TopReleases ¶ added in v0.21.0
Click to show internal directories.
Click to hide internal directories.