metadata

package
v0.0.0-...-8876515 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LyricsAtom

type LyricsAtom struct {
	Timestamp int64  `json:"timestamp"`
	Caption   string `json:"caption"`
}

LyricsAtom describes a single word/element in the lyrics

type LyricsLine

type LyricsLine []LyricsAtom

LyricsLine is a line in the lyrics, composed of LyricsAtoms

type LyricsProvider

type LyricsProvider interface {
	CollectLyrics(song string) []LyricsLine
}

LyricsProvider is used to get the lyrics for songs

func GetLyricsProvider

func GetLyricsProvider() LyricsProvider

GetLyricsProvider returns a new LyricsProvider

type Provider

type Provider interface {
	CollectMetadata(song string) SongMetadata
}

Provider is used to get metadata for songs

func GetProvider

func GetProvider() Provider

GetProvider returns a new Provider

type SongMetadata

type SongMetadata struct {
	Title  string
	Artist string
	Album  string
}

SongMetadata holds the metadata for a song

Jump to

Keyboard shortcuts

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