lyrics

package
v0.0.0-...-cdfb74c Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLyricsNotFound = errors.New("lyrics not found")

Functions

This section is empty.

Types

type Genius

type Genius struct {
	RateLimit time.Duration

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*Genius) Search

func (g *Genius) Search(ctx context.Context, artist, song string) (string, error)

func (*Genius) String

func (g *Genius) String() string

type MultiSource

type MultiSource []Source

func (MultiSource) Search

func (ms MultiSource) Search(ctx context.Context, artist, song string) (string, error)

func (MultiSource) String

func (ms MultiSource) String() string

type Musixmatch

type Musixmatch struct {
	RateLimit time.Duration

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*Musixmatch) Search

func (mm *Musixmatch) Search(ctx context.Context, artist, song string) (string, error)

func (*Musixmatch) String

func (mm *Musixmatch) String() string

type Source

type Source interface {
	Search(ctx context.Context, artist, song string) (string, error)
}

Jump to

Keyboard shortcuts

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