syncing

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Run(ctx context.Context, evCh chan Event) error
	GetAll() ([]Track, error)
	GetTrackFull(track Track) (TrackFull, error)
	StreamTrack(id string) (io.ReadSeekCloser, error)
}

type Event

type Event struct {
	Type EventType
	ID   string
}

type EventType

type EventType int
const (
	Modified EventType = iota
	Deleted
	Created
)

type Track

type Track struct {
	ID           string
	LastModified time.Time
}

type TrackFull

type TrackFull struct {
	Track
	Title        string
	TrackNum     int
	Disc         int
	Artists      []string
	AlbumArtists []string
	Album        string
	Duration     time.Duration
}

Jump to

Keyboard shortcuts

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