Documentation ¶
Index ¶
- func GetCategoryDirs(directory string) []string
- type ByNumPlayed
- type Persistence
- func (p *Persistence) GetCategory(filename string) string
- func (p *Persistence) IncCounter(filename string)
- func (p *Persistence) IsPlayable(filename string) bool
- func (p *Persistence) JsonState() []byte
- func (p *Persistence) Load()
- func (p *Persistence) Lock()
- func (p *Persistence) SaveThread()
- func (p *Persistence) State() *SoundList
- func (p *Persistence) Unlock()
- type Sound
- type SoundList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCategoryDirs ¶
Types ¶
type ByNumPlayed ¶
type ByNumPlayed []Sound
func (ByNumPlayed) Len ¶
func (s ByNumPlayed) Len() int
func (ByNumPlayed) Less ¶
func (s ByNumPlayed) Less(i, j int) bool
func (ByNumPlayed) Swap ¶
func (s ByNumPlayed) Swap(i, j int)
type Persistence ¶
type Persistence struct { UpdateCallback func() // contains filtered or unexported fields }
func NewPersistence ¶
func NewPersistence() *Persistence
func (*Persistence) GetCategory ¶
func (p *Persistence) GetCategory(filename string) string
func (*Persistence) IncCounter ¶
func (p *Persistence) IncCounter(filename string)
func (*Persistence) IsPlayable ¶
func (p *Persistence) IsPlayable(filename string) bool
func (*Persistence) JsonState ¶
func (p *Persistence) JsonState() []byte
func (*Persistence) Load ¶
func (p *Persistence) Load()
func (*Persistence) Lock ¶
func (p *Persistence) Lock()
func (*Persistence) SaveThread ¶
func (p *Persistence) SaveThread()
func (*Persistence) State ¶
func (p *Persistence) State() *SoundList
func (*Persistence) Unlock ¶
func (p *Persistence) Unlock()
Click to show internal directories.
Click to hide internal directories.