Documentation ¶
Index ¶
- type DataStore
- func (ds *DataStore) ClearCachedResponsesForPath(path, userId string)
- func (ds *DataStore) CreateTables() error
- func (ds *DataStore) InsertLastfmCachedResponse(lastfmCachedResponse *LastfmCachedResponse) error
- func (ds *DataStore) InsertSpotifyCachedResponse(spotifyCachedResponse *SpotifyCachedResponse) error
- func (ds *DataStore) LoadCachedLastfmResponse(method, params, username string) string
- func (ds *DataStore) LoadCachedSpotifyResponse(path, params, userId string) string
- func (ds *DataStore) LoadLastfmUser(name string) (*LastfmUser, error)
- func (ds *DataStore) LoadSpotifyUser(id string) (*SpotifyUser, error)
- func (ds *DataStore) PruneExpiredLastfmCachedResponsesIfNecessary()
- func (ds *DataStore) PruneExpiredSpotifyCachedResponsesIfNecessary()
- func (ds *DataStore) TotalExpiredLastfmCachedResponses() (int, error)
- func (ds *DataStore) TotalExpiredSpotifyCachedResponses() (int, error)
- func (ds *DataStore) UpsertLastfmUser(lastfmUser *LastfmUser) error
- func (ds *DataStore) UpsertSpotifyUser(spotifyUser *SpotifyUser) error
- type LastfmCachedResponse
- type LastfmUser
- type SpotifyCachedResponse
- type SpotifyUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
func (*DataStore) ClearCachedResponsesForPath ¶
func (*DataStore) CreateTables ¶
func (*DataStore) InsertLastfmCachedResponse ¶
func (ds *DataStore) InsertLastfmCachedResponse(lastfmCachedResponse *LastfmCachedResponse) error
func (*DataStore) InsertSpotifyCachedResponse ¶
func (ds *DataStore) InsertSpotifyCachedResponse(spotifyCachedResponse *SpotifyCachedResponse) error
func (*DataStore) LoadCachedLastfmResponse ¶
func (*DataStore) LoadCachedSpotifyResponse ¶
func (*DataStore) LoadLastfmUser ¶
func (ds *DataStore) LoadLastfmUser(name string) (*LastfmUser, error)
func (*DataStore) LoadSpotifyUser ¶
func (ds *DataStore) LoadSpotifyUser(id string) (*SpotifyUser, error)
func (*DataStore) PruneExpiredLastfmCachedResponsesIfNecessary ¶
func (ds *DataStore) PruneExpiredLastfmCachedResponsesIfNecessary()
func (*DataStore) PruneExpiredSpotifyCachedResponsesIfNecessary ¶
func (ds *DataStore) PruneExpiredSpotifyCachedResponsesIfNecessary()
func (*DataStore) TotalExpiredLastfmCachedResponses ¶
func (*DataStore) TotalExpiredSpotifyCachedResponses ¶
func (*DataStore) UpsertLastfmUser ¶
func (ds *DataStore) UpsertLastfmUser(lastfmUser *LastfmUser) error
func (*DataStore) UpsertSpotifyUser ¶
func (ds *DataStore) UpsertSpotifyUser(spotifyUser *SpotifyUser) error
type LastfmCachedResponse ¶
type LastfmCachedResponse struct { Timestamp string Body string Method string Params string Username string }
func NewLastfmCachedResponse ¶
func NewLastfmCachedResponse(obj any, method, params, username string) (*LastfmCachedResponse, error)
type LastfmUser ¶
type SpotifyCachedResponse ¶
type SpotifyCachedResponse struct { Timestamp string Body string Path string Params string UserId string }
func NewSpotifyCachedResponse ¶
func NewSpotifyCachedResponse(obj any, path, params, userId string) (*SpotifyCachedResponse, error)
Click to show internal directories.
Click to hide internal directories.