Documentation ¶
Index ¶
- Constants
- func DurationToString(d time.Duration) string
- func GetMp3Duration(path string) (time.Duration, error)
- func StringToDuration(s string) (time.Duration, error)
- type AddToPlayListArgs
- type IntOrString
- type NameHash
- type PState
- type PlayListPlayMusicArgs
- type RemoveMusicFromPlayListArgs
- type SearchResult
- type Status
- type Task
Constants ¶
View Source
const ( NotStarted = iota Running Finished )
View Source
const ( Downloading = iota Searching )
View Source
const ( PinkTheme = "pink" BlueTheme = "blue" PurpleTheme = "purple" )
View Source
const (
HashPrefixLength = 5
)
View Source
const Version = "v0.0.36"
Version do not edit this file manually, this file is updated by the deploy script scripts/deploy.sh
Variables ¶
This section is empty.
Functions ¶
func DurationToString ¶
func GetMp3Duration ¶
helper function to get mp3 duration
Types ¶
type AddToPlayListArgs ¶
type IntOrString ¶
type PlayListPlayMusicArgs ¶
type PlayListPlayMusicArgs struct { PlayListName string IndexOrName IntOrString }
type RemoveMusicFromPlayListArgs ¶
type RemoveMusicFromPlayListArgs struct { PlayListName string IndexOrName IntOrString }
type SearchResult ¶
Click to show internal directories.
Click to hide internal directories.