state

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlbumsCache    = &FavouriteCacheV1{}
	ArtistsCache   = &FavouriteCacheV1{}
	MixesCache     = &FavouriteCacheV2{}
	PlaylistsCache = &FavouriteCacheV1{}
	TracksCache    = &FavouriteCacheV1{}
)

Functions

This section is empty.

Types

type FavouriteCache

type FavouriteCache interface {
	Add(string) error
	Bust()
	Get() (*[]string, error)
	Remove(string) error
}

type FavouriteCacheV1

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

func (*FavouriteCacheV1) Add

func (cache *FavouriteCacheV1) Add(id string) error

func (*FavouriteCacheV1) Bust

func (cache *FavouriteCacheV1) Bust()

func (*FavouriteCacheV1) Get

func (cache *FavouriteCacheV1) Get() (*[]string, error)

func (*FavouriteCacheV1) Remove

func (cache *FavouriteCacheV1) Remove(id string) error

type FavouriteCacheV2

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

func (*FavouriteCacheV2) Add

func (cache *FavouriteCacheV2) Add(id string) error

func (*FavouriteCacheV2) Bust

func (cache *FavouriteCacheV2) Bust()

func (*FavouriteCacheV2) Get

func (cache *FavouriteCacheV2) Get() (*[]string, error)

func (*FavouriteCacheV2) Remove

func (cache *FavouriteCacheV2) Remove(id string) error

Jump to

Keyboard shortcuts

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