storage

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(data *TunerData)

Types

type Playlist

type Playlist struct {
	Name  string
	Songs []*search.SearchResult
	// contains filtered or unexported fields
}

func (*Playlist) IsShuffled added in v0.0.2

func (pl *Playlist) IsShuffled() bool

func (*Playlist) Shuffle added in v0.0.2

func (pl *Playlist) Shuffle()

func (*Playlist) SongAt added in v0.0.2

func (pl *Playlist) SongAt(i int) *search.SearchResult

func (*Playlist) Unshuffle added in v0.0.2

func (pl *Playlist) Unshuffle()

type TunerData

type TunerData struct {
	Version                                                       string
	Playlists                                                     []*Playlist
	DefaultVolume                                                 float64
	Cache, FetchAlbum, LoadMPRIS, SearchSoundCloud, ShowInDiscord bool
}

func Load

func Load() *TunerData

Jump to

Keyboard shortcuts

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