scrobble

package
v0.0.0-...-68e3b61 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QUEUE_EMPTY = errors.New("Queue empty")

Functions

This section is empty.

Types

type Database

type Database interface {
	Queue(name []byte) (Queue, error)
	Close() error
}

func Open

func Open(path string) (Database, error)

type Err

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

func (*Err) Error

func (e *Err) Error() string

type Queue

type Queue interface {
	Enqueue(Track) error
	Dequeue() (Track, error)
}

type Scrobbler

type Scrobbler interface {
	Scrobble(title, artist, album, albumArtist string, trackNumber int32, duration uint32, timestamp time.Time) error
	NowPlaying(title, artist, album, albumArtist string, trackNumber int32, duration uint32) error
	Name() string
}

func New

func New(db Database, name, apiKey, secret, username, password, uriBase string) (Scrobbler, error)

type Track

type Track struct {
	Title       string
	Artist      string
	Album       string
	AlbumArtist string
	TrackNumber int32
	Duration    uint32
	Timestamp   time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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