scraper

package
v0.0.0-...-88a287f Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGeniusTokenNotSet = errors.New("genius token is not set")
	ErrRequestFailed     = errors.New("request failed with non-success code")
)

Functions

func LoadCSV

func LoadCSV() ([][]string, error)

Types

type Service

type Service interface {
	FindLyrics(ctx context.Context, songName string, artists string) (string, error)
}

func New

func New(logger *zap.Logger, config *config.Config) (Service, error)

New creates a new instance of lyrics scraper service

Jump to

Keyboard shortcuts

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