package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jun 15, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Album struct {
ID int32 `json:"id"`
MbzID *uuid.UUID `json:"musicbrainz_id"`
Title string `json:"title"`
Image *uuid.UUID `json:"image"`
Artists []SimpleArtist `json:"artists"`
VariousArtists bool `json:"is_various_artists"`
ListenCount int64 `json:"listen_count"`
}
type Alias struct {
ID int32 `json:"id"`
Alias string `json:"alias"`
Source string `json:"source"`
Primary bool `json:"is_primary"`
}
type ApiKey struct {
ID int32 `json:"id"`
Key string `json:"key"`
Label string `json:"label"`
UserID int32 `json:"user_id"`
CreatedAt time.Time `json:"created_at"`
}
type Artist struct {
ID int32 `json:"id"`
MbzID *uuid.UUID `json:"musicbrainz_id"`
Name string `json:"name"`
Aliases []string `json:"aliases"`
Image *uuid.UUID `json:"image"`
ListenCount int64 `json:"listen_count"`
}
type Listen struct {
Time time.Time `json:"time"`
Track Track `json:"track"`
}
a Listen is the same thing as a 'scrobble' but i despise the word scrobble so i will not use it
type SimpleArtist struct {
ID int32 `json:"id"`
Name string `json:"name"`
}
type Track struct {
ID int32 `json:"id"`
Title string `json:"title"`
Artists []SimpleArtist `json:"artists"`
MbzID *uuid.UUID `json:"musicbrainz_id"`
ListenCount int64 `json:"listen_count"`
Duration int32 `json:"duration"`
Image *uuid.UUID `json:"image"`
AlbumID int32 `json:"album_id"`
}
type User struct {
ID int32 `json:"id"`
Username string `json:"username"`
Role UserRole `json:"role"`
Password []byte `json:"-"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.