data

package
v0.0.0-...-4c773eb Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clause

type Clause interface {
	Clause() string
	Arg() interface{}
}

type Database

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

func Open

func Open(path string) (*Database, error)

func (*Database) Close

func (d *Database) Close() error

func (*Database) Delete

func (d *Database) Delete(path string) error

func (*Database) Each

func (d *Database) Each(f func(Song) error, qs ...Clause) error

func (*Database) Insert

func (d *Database) Insert(song Song) error

func (*Database) IsStale

func (d *Database) IsStale(path string, modtime time.Time) bool

func (*Database) Move

func (d *Database) Move(oldPath, newPath string) error

type GreaterThanClause

type GreaterThanClause struct {
	Col string
	Val interface{}
}

func (GreaterThanClause) Arg

func (q GreaterThanClause) Arg() interface{}

func (GreaterThanClause) Clause

func (q GreaterThanClause) Clause() string

type LessThanClause

type LessThanClause struct {
	Col string
	Val interface{}
}

func (LessThanClause) Arg

func (q LessThanClause) Arg() interface{}

func (LessThanClause) Clause

func (q LessThanClause) Clause() string

type PrefixClause

type PrefixClause struct {
	Col, Val string
}

func (PrefixClause) Arg

func (q PrefixClause) Arg() interface{}

func (PrefixClause) Clause

func (q PrefixClause) Clause() string

type Song

type Song struct {
	Path string

	Album,
	AlbumArtist,
	Artist,
	Composer,
	Date,
	Genre,
	Title string

	Disc,
	DiscTotal,
	Length,
	Track,
	TrackTotal int
}

func (Song) DisplayArtist

func (s Song) DisplayArtist() string

Jump to

Keyboard shortcuts

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