Documentation
¶
Index ¶
- Variables
- func CacheSong(ctx context.Context, u url.URL, user, token, salt string, id string) error
- func DecodeSong(ctx context.Context, songID string, offset time.Duration) (io.ReadCloser, error)
- func FetchAllSongs(cfg config.Config) ([]song.Song, error)
- func FetchSimilarSongs(ctx context.Context, cfg config.Config, songID string) ([]song.Song, error)
- func Scrobble(cfg config.Config, songID string, submission bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheDir string
Functions ¶
func DecodeSong ¶
DecodeSong decodes the file at path, producing 48kHz stereo PCM (WAV) on the returned reader. The caller must Close() the returned ReadCloser when done, even on early exit, to release the process and any associated resources.
offset can be given to start decoding after the beginning of a song.
func FetchSimilarSongs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.