controller

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ENDPOINT = "https://api.github.com/repos/Malwarize/retro/releases/latest"

Variables

This section is empty.

Functions

func CleanCache added in v0.0.30

func CleanCache(client *rpc.Client)

func CreatePlayList

func CreatePlayList(name string, client *rpc.Client)

func DetectAndAddToPlayList

func DetectAndAddToPlayList(
	name string,
	query string,
	client *rpc.Client,
) ([]shared.SearchResult, error)

func DetectAndPlay

func DetectAndPlay(query string, client *rpc.Client) ([]shared.SearchResult, error)

func GetCachedMusics added in v0.0.30

func GetCachedMusics(client *rpc.Client) []shared.NameHash

func GetClient

func GetClient() (*rpc.Client, error)

func GetLogs added in v0.0.27

func GetLogs(client *rpc.Client) []string

func GetPlayListsNames

func GetPlayListsNames(client *rpc.Client) []string

func GetPlayerStatus

func GetPlayerStatus(client *rpc.Client) shared.Status

func GetRemoteVersion added in v0.0.38

func GetRemoteVersion() (string, error)

func GetTheme

func GetTheme(client *rpc.Client) string

func NeedsUpdate added in v0.0.38

func NeedsUpdate(currentVersion string) (bool, string)

func Next

func Next(client *rpc.Client)

func Pause

func Pause(client *rpc.Client)

func PlayListMusics

func PlayListMusics(name string, client *rpc.Client) []string

func PlayListPlayAll

func PlayListPlayAll(name string, client *rpc.Client)

func PlayListPlayMusic

func PlayListPlayMusic(lname string, indexOrName shared.IntOrString, client *rpc.Client)

func Prev

func Prev(client *rpc.Client)

func PrintAllLogs added in v0.0.27

func PrintAllLogs(client *rpc.Client)

func PrintErrorLogs added in v0.0.27

func PrintErrorLogs(client *rpc.Client)

func PrintInfoLogs added in v0.0.27

func PrintInfoLogs(client *rpc.Client)

func PrintWarnLogs added in v0.0.27

func PrintWarnLogs(client *rpc.Client)

func Remove

func Remove(index interface{}, client *rpc.Client)

func RemoveMusicFromPlayList

func RemoveMusicFromPlayList(name string, indexOrName shared.IntOrString, client *rpc.Client)

func RemovePlayList

func RemovePlayList(name string, client *rpc.Client)

func Resume

func Resume(client *rpc.Client)

func Seek

func Seek(d int, client *rpc.Client)

func SetTheme

func SetTheme(theme string, client *rpc.Client)

func Stop

func Stop(client *rpc.Client)

func Update added in v0.0.33

func Update() error

func Volume

func Volume(vp uint8, client *rpc.Client)

Types

type Download added in v0.0.38

type Download struct {
	Assets []asset `json:"assets"`
}

type Release added in v0.0.38

type Release struct {
	Version string `json:"tag_name"`
}

Jump to

Keyboard shortcuts

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