Help us shape the future of Go! Take the 2026 Go Developer Survey

jobs

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Runner)

func WithITunes

func WithITunes(provider catalog.ITunesReleaseProvider) Option

func WithListenBrainz added in v0.15.0

func WithListenBrainz(provider catalog.ListenBrainzProvider) Option

func WithSpotify

func WithSpotify(provider catalog.SpotifyReleaseProvider) Option

func WithSpotifyInterval

func WithSpotifyInterval(interval time.Duration) Option

WithSpotifyInterval controls the independent Spotify observation cadence. Spotify is an enrichment source, so it defaults to a much slower cadence than the canonical MusicBrainz sync.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(s *store.Store, provider catalog.CatalogProvider, normalizer catalog.ReleaseNormalizer,
	sender notify.NotificationSender, cipher *security.Cipher, interval time.Duration, logger *slog.Logger,
	options ...Option) *Runner

func (*Runner) ResolveArtistResolutionNow

func (r *Runner) ResolveArtistResolutionNow(ctx context.Context, resolution store.ArtistResolution) (string, error)

func (*Runner) Run

func (r *Runner) Run(ctx context.Context)

func (*Runner) SelectArtistResolution

func (r *Runner) SelectArtistResolution(ctx context.Context, resolution store.ArtistResolution, candidate store.ResolutionCandidate) (string, error)

func (*Runner) SyncArtistNow

func (r *Runner) SyncArtistNow(ctx context.Context, artist store.Artist) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL