lyrics

package
v0.0.0-...-f539960 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeniusProvider

type GeniusProvider struct {
	Provider
}

GeniusProvider is the provider implementation which uses as source Genius lyrics platform

func (GeniusProvider) Name

func (p GeniusProvider) Name() string

Name returns a human readable name for the provider

func (GeniusProvider) Query

func (p GeniusProvider) Query(title, artist string) (string, error)

Query returns a lyrics text for give title and artist

type OVHProvider

type OVHProvider struct {
	Provider
}

OVHProvider is the provider implementation which uses as source lyrics.ovh lyrics platform

func (OVHProvider) Name

func (p OVHProvider) Name() string

Name returns a human readable name for the provider

func (OVHProvider) Query

func (p OVHProvider) Query(title, artist string) (string, error)

Query returns a lyrics text for give title and artist

type Provider

type Provider interface {
	Name() string
	Query(title, artist string) (string, error)
}

Provider defines the generic interface on which every lyrics provider should be basing its logic

func All

func All() []Provider

All return the array of usable providers

Jump to

Keyboard shortcuts

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