scanner

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyScanning = errors.New("already scanning")
	ErrStatingItem     = errors.New("could not stat item")
	ErrReadingTags     = errors.New("could not read tags")
)

Functions

func IsScanning

func IsScanning() bool

func SetScanning

func SetScanning() func()

Types

type ScanOptions added in v0.9.0

type ScanOptions struct {
	IsFull bool
	// TODO https://github.com/sentriz/gonic/issues/64
	Path string
}

type Scanner

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

func New

func New(musicPath string, db *db.DB) *Scanner

func (*Scanner) Start

func (s *Scanner) Start(opts ScanOptions) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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