Documentation ¶ Index ¶ type Record func NewRecord(attrs mpd.Attrs) (*Record, error) func (r *Record) EqualAttrs(attrs mpd.Attrs) bool type Scrobbler func NewScrobbler(net string, addr string, dbpath string) (*Scrobbler, error) func (s *Scrobbler) Close() error func (s *Scrobbler) Run() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Record ¶ type Record struct { Id uuid.UUID Title string Album string Artist string Duration time.Duration Timestamp time.Time } func NewRecord ¶ func NewRecord(attrs mpd.Attrs) (*Record, error) func (*Record) EqualAttrs ¶ func (r *Record) EqualAttrs(attrs mpd.Attrs) bool type Scrobbler ¶ type Scrobbler struct { // contains filtered or unexported fields } func NewScrobbler ¶ func NewScrobbler(net string, addr string, dbpath string) (*Scrobbler, error) func (*Scrobbler) Close ¶ func (s *Scrobbler) Close() error func (*Scrobbler) Run ¶ func (s *Scrobbler) Run() error Source Files ¶ View all Source files db.go record.go scrobbler.go Click to show internal directories. Click to hide internal directories.