loader

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AbortError = errors.New("abort")

Functions

func Boolp added in v0.1.0

func Boolp(b bool) *bool

func Int16p added in v0.1.0

func Int16p(i int16) *int16

func Int32p added in v0.1.0

func Int32p(i int32) *int32

func Int64p added in v0.1.0

func Int64p(i int64) *int64

func Int8p added in v0.1.0

func Int8p(i int8) *int8

func Intp added in v0.1.0

func Intp(i int) *int

func Stringp added in v0.1.0

func Stringp(s string) *string

func Timep added in v0.1.0

func Timep(t time.Time) *time.Time

func Uint16p added in v0.1.0

func Uint16p(i uint16) *uint16

func Uint32p added in v0.1.0

func Uint32p(i uint32) *uint32

func Uint64p added in v0.1.0

func Uint64p(i uint64) *uint64

func Uint8p added in v0.1.0

func Uint8p(i uint8) *uint8

func Uintp added in v0.1.0

func Uintp(i uint) *uint

Types

type BaseLoader added in v0.1.0

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

func NewBaseLoader added in v0.1.0

func NewBaseLoader() *BaseLoader

func (*BaseLoader) Abort added in v0.1.0

func (l *BaseLoader) Abort()

func (*BaseLoader) GetChan added in v0.1.0

func (l *BaseLoader) GetChan() chan interface{}

func (*BaseLoader) GetQuitChan added in v0.1.0

func (l *BaseLoader) GetQuitChan() chan bool

func (*BaseLoader) Shutdown added in v0.1.0

func (l *BaseLoader) Shutdown(err error)

type Library

type Library struct {
	FileName           *string
	MajorVersion       *int
	MinorVersion       *int
	ApplicationVersion *string
	Date               *time.Time
	Features           *int
	ShowContentRatings *bool
	PersistentID       *pid.PersistentID `plist:"Library Persistent ID"`
	MusicFolder        *string
	Tracks             *int
	Playlists          *int
}

func (*Library) GetApplicationVersion

func (lib *Library) GetApplicationVersion() string

func (*Library) GetDate

func (lib *Library) GetDate() time.Time

func (*Library) GetFeatures

func (lib *Library) GetFeatures() int

func (*Library) GetFileName

func (lib *Library) GetFileName() string

func (*Library) GetMajorVersion

func (lib *Library) GetMajorVersion() int

func (*Library) GetMinorVersion

func (lib *Library) GetMinorVersion() int

func (*Library) GetMusicFolder

func (lib *Library) GetMusicFolder() string

func (*Library) GetPersistentID

func (lib *Library) GetPersistentID() pid.PersistentID

func (*Library) GetPlaylists

func (lib *Library) GetPlaylists() int

func (*Library) GetShowContentRatings

func (lib *Library) GetShowContentRatings() bool

func (*Library) GetTracks

func (lib *Library) GetTracks() int

type Loader

type Loader interface {
	LoadFile(fn string)
	Load(f io.ReadCloser)
	Shutdown(err error)
	GetChan() chan interface{}
	Abort()
}

type Playlist

type Playlist struct {
	AllItems           *bool
	Audiobooks         *bool
	DistinguishedKind  *int
	Folder             *bool
	GeniusTrackID      *pid.PersistentID
	Master             *bool
	Movies             *bool
	Music              *bool
	Name               *string
	ParentPersistentID *pid.PersistentID
	PlaylistID         *int
	PersistentID       *pid.PersistentID `plist:"Playlist Persistent ID"`
	Podcasts           *bool
	PurchasedMusic     *bool
	SmartCriteria      []byte
	SmartInfo          []byte
	TVShows            *bool
	TrackIDs           []pid.PersistentID
	Visible            *bool
	DateAdded          *time.Time
	DateModified       *time.Time
}

func NewPlaylist

func NewPlaylist() *Playlist

func (*Playlist) GetAllItems

func (pl *Playlist) GetAllItems() bool

func (*Playlist) GetAudiobooks

func (pl *Playlist) GetAudiobooks() bool

func (*Playlist) GetDistinguishedKind

func (pl *Playlist) GetDistinguishedKind() int

func (*Playlist) GetFolder

func (pl *Playlist) GetFolder() bool

func (*Playlist) GetGeniusTrackID

func (pl *Playlist) GetGeniusTrackID() pid.PersistentID

func (*Playlist) GetMaster

func (pl *Playlist) GetMaster() bool

func (*Playlist) GetMovies

func (pl *Playlist) GetMovies() bool

func (*Playlist) GetMusic

func (pl *Playlist) GetMusic() bool

func (*Playlist) GetName

func (pl *Playlist) GetName() string

func (*Playlist) GetParentPersistentID

func (pl *Playlist) GetParentPersistentID() pid.PersistentID

func (*Playlist) GetPersistentID

func (pl *Playlist) GetPersistentID() pid.PersistentID

func (*Playlist) GetPlaylistID

func (pl *Playlist) GetPlaylistID() int

func (*Playlist) GetPodcasts

func (pl *Playlist) GetPodcasts() bool

func (*Playlist) GetPurchasedMusic

func (pl *Playlist) GetPurchasedMusic() bool

func (*Playlist) GetTVShows

func (pl *Playlist) GetTVShows() bool

func (*Playlist) GetVisible

func (pl *Playlist) GetVisible() bool

func (*Playlist) IsSmart

func (p *Playlist) IsSmart() bool

type Track

type Track struct {
	Album               *string
	AlbumArtist         *string
	AlbumRating         *uint8
	AlbumRatingComputed *bool
	Artist              *string
	ArtworkCount        *int
	BPM                 *uint16
	BitRate             *uint
	Clean               *bool
	Comments            *string
	Compilation         *bool
	Composer            *string
	ContentRating       *string
	DateAdded           *time.Time
	DateModified        *time.Time
	Disabled            *bool
	DiscCount           *uint8
	DiscNumber          *uint8
	Episode             *string
	EpisodeOrder        *int
	Explicit            *bool
	FileFolderCount     *int
	FileType            *int
	Genre               *string
	Grouping            *string
	HasVideo            *bool
	Kind                *string
	LibraryFolderCount  *int
	Location            *string
	Loved               *bool
	Master              *bool
	MovementCount       *int
	MovementName        *string
	MovementNumber      *int
	Movie               *bool
	MusicVideo          *bool
	Name                *string
	PartOfGaplessAlbum  *bool
	PersistentID        *pid.PersistentID
	PlayCount           *uint
	PlayDateGarbage     *int       `plist:"Play Date"`
	PlayDate            *time.Time `plist:"Play Date UTC"`
	Podcast             *bool
	Protected           *bool
	PurchaseDate        *time.Time
	Purchased           *bool
	Rating              *uint8
	RatingComputed      *bool
	ReleaseDate         *time.Time
	SampleRate          *uint
	Season              *int
	Series              *string
	Size                *uint64
	SkipCount           *uint
	SkipDate            *time.Time
	SortAlbum           *string
	SortAlbumArtist     *string
	SortArtist          *string
	SortComposer        *string
	SortName            *string
	SortSeries          *string
	StartTime           *int
	StopTime            *int
	TVShow              *bool
	TotalTime           *uint
	TrackCount          *uint8
	TrackID             *int
	TrackNumber         *uint8
	TrackType           *string
	Unplayed            *bool
	VolumeAdjustment    *uint8
	Work                *string
	Year                *int
}

func (*Track) Clone

func (tr *Track) Clone() *Track

func (*Track) GetAlbum

func (tr *Track) GetAlbum() string

func (*Track) GetAlbumArtist

func (tr *Track) GetAlbumArtist() string

func (*Track) GetAlbumRating

func (tr *Track) GetAlbumRating() uint8

func (*Track) GetAlbumRatingComputed

func (tr *Track) GetAlbumRatingComputed() bool

func (*Track) GetArtist

func (tr *Track) GetArtist() string

func (*Track) GetArtworkCount

func (tr *Track) GetArtworkCount() int

func (*Track) GetBPM

func (tr *Track) GetBPM() uint16

func (*Track) GetBitRate

func (tr *Track) GetBitRate() uint

func (*Track) GetClean

func (tr *Track) GetClean() bool

func (*Track) GetComments

func (tr *Track) GetComments() string

func (*Track) GetCompilation

func (tr *Track) GetCompilation() bool

func (*Track) GetComposer

func (tr *Track) GetComposer() string

func (*Track) GetContentRating

func (tr *Track) GetContentRating() string

func (*Track) GetDateAdded

func (tr *Track) GetDateAdded() time.Time

func (*Track) GetDateModified

func (tr *Track) GetDateModified() time.Time

func (*Track) GetDisabled

func (tr *Track) GetDisabled() bool

func (*Track) GetDiscCount

func (tr *Track) GetDiscCount() uint8

func (*Track) GetDiscNumber

func (tr *Track) GetDiscNumber() uint8

func (*Track) GetEpisode

func (tr *Track) GetEpisode() string

func (*Track) GetEpisodeOrder

func (tr *Track) GetEpisodeOrder() int

func (*Track) GetExplicit

func (tr *Track) GetExplicit() bool

func (*Track) GetFileFolderCount

func (tr *Track) GetFileFolderCount() int

func (*Track) GetFileType

func (tr *Track) GetFileType() int

func (*Track) GetGenre

func (tr *Track) GetGenre() string

func (*Track) GetGrouping

func (tr *Track) GetGrouping() string

func (*Track) GetHasVideo

func (tr *Track) GetHasVideo() bool

func (*Track) GetKind

func (tr *Track) GetKind() string

func (*Track) GetLibraryFolderCount

func (tr *Track) GetLibraryFolderCount() int

func (*Track) GetLocation

func (tr *Track) GetLocation() string

func (*Track) GetLoved

func (tr *Track) GetLoved() bool

func (*Track) GetMaster

func (tr *Track) GetMaster() bool

func (*Track) GetMovementCount

func (tr *Track) GetMovementCount() int

func (*Track) GetMovementName

func (tr *Track) GetMovementName() string

func (*Track) GetMovementNumber

func (tr *Track) GetMovementNumber() int

func (*Track) GetMovie

func (tr *Track) GetMovie() bool

func (*Track) GetMusicVideo

func (tr *Track) GetMusicVideo() bool

func (*Track) GetName

func (tr *Track) GetName() string

func (*Track) GetPartOfGaplessAlbum

func (tr *Track) GetPartOfGaplessAlbum() bool

func (*Track) GetPersistentID

func (tr *Track) GetPersistentID() pid.PersistentID

func (*Track) GetPlayCount

func (tr *Track) GetPlayCount() uint

func (*Track) GetPlayDate

func (tr *Track) GetPlayDate() time.Time

func (*Track) GetPlayDateGarbage

func (tr *Track) GetPlayDateGarbage() int

func (*Track) GetPodcast

func (tr *Track) GetPodcast() bool

func (*Track) GetProtected

func (tr *Track) GetProtected() bool

func (*Track) GetPurchaseDate

func (tr *Track) GetPurchaseDate() time.Time

func (*Track) GetPurchased

func (tr *Track) GetPurchased() bool

func (*Track) GetRating

func (tr *Track) GetRating() uint8

func (*Track) GetRatingComputed

func (tr *Track) GetRatingComputed() bool

func (*Track) GetReleaseDate

func (tr *Track) GetReleaseDate() time.Time

func (*Track) GetSampleRate

func (tr *Track) GetSampleRate() uint

func (*Track) GetSeason

func (tr *Track) GetSeason() int

func (*Track) GetSeries

func (tr *Track) GetSeries() string

func (*Track) GetSize

func (tr *Track) GetSize() uint64

func (*Track) GetSkipCount

func (tr *Track) GetSkipCount() uint

func (*Track) GetSkipDate

func (tr *Track) GetSkipDate() time.Time

func (*Track) GetSortAlbum

func (tr *Track) GetSortAlbum() string

func (*Track) GetSortAlbumArtist

func (tr *Track) GetSortAlbumArtist() string

func (*Track) GetSortArtist

func (tr *Track) GetSortArtist() string

func (*Track) GetSortComposer

func (tr *Track) GetSortComposer() string

func (*Track) GetSortName

func (tr *Track) GetSortName() string

func (*Track) GetSortSeries

func (tr *Track) GetSortSeries() string

func (*Track) GetStopTime

func (tr *Track) GetStopTime() int

func (*Track) GetTVShow

func (tr *Track) GetTVShow() bool

func (*Track) GetTotalTime

func (tr *Track) GetTotalTime() uint

func (*Track) GetTrackCount

func (tr *Track) GetTrackCount() uint8

func (*Track) GetTrackID

func (tr *Track) GetTrackID() int

func (*Track) GetTrackNumber

func (tr *Track) GetTrackNumber() uint8

func (*Track) GetTrackType

func (tr *Track) GetTrackType() string

func (*Track) GetUnplayed

func (tr *Track) GetUnplayed() bool

func (*Track) GetVolumeAdjustment

func (tr *Track) GetVolumeAdjustment() uint8

func (*Track) GetWork

func (tr *Track) GetWork() string

func (*Track) GetYear

func (tr *Track) GetYear() int

Jump to

Keyboard shortcuts

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