Documentation ¶
Index ¶
- func ArtistNameStrOfAlbum(s *spotify.SimpleAlbum) string
- func ArtistNameStrOfSong(s *spotify.FullTrack) string
- func ArtistNamesOfAlbum(s *spotify.SimpleAlbum) []string
- func ArtistNamesOfSong(s *spotify.FullTrack) []string
- func BinToID(bin []byte) uint64
- func CheckUpdate() (bool, string)
- func CompareSong(s1, s2 spotify.FullTrack) bool
- func CopyClose(ctx context.Context, dst io.Writer, src io.ReadCloser) (int64, error)
- func CopyDirFromEmbed(src, dst string) error
- func CopyFileFromEmbed(src, dst string) error
- func FileOrDirExists(filename string) bool
- func GetLocalDataDir() string
- func IDToBin(ID uint64) []byte
- func LoadIniConfig()
- func LogWriter() io.Writer
- func Logger() *log.Logger
- func MenuItemsFromAlbums(albums []spotify.SimpleAlbum) []model.MenuItem
- func MenuItemsFromArtists(artists []spotify.SimpleArtist) []model.MenuItem
- func MenuItemsFromPlaylists(playlists []spotify.SimplePlaylist) []model.MenuItem
- func MenuItemsFromSongs(songs []spotify.FullTrack) []model.MenuItem
- func Notify(content NotifyContent)
- func PanicRecoverWrapper(ignorePanic bool, f func())
- func PicURLOfSong(song *spotify.FullTrack) (url string)
- func Recover(ignore bool) (hasCaught bool)
- func ReplaceSpecialStr(str string) string
- func ResetError(i interface{})
- func SetLogger(l *log.Logger)
- func WaitForNBytes(r io.ReadSeeker, N int, interval time.Duration, retryTime int) (err error)
- func WebURLOfAlbum(artistId spotify.ID) string
- func WebURLOfArtist(artistId spotify.ID) string
- func WebURLOfLibrary() string
- func WebURLOfPlaylist(playlistId spotify.ID) string
- func WebURLOfSong(songId spotify.ID) string
- type Lines
- type LyricsResp
- type Notificator
- type NotifyContent
- type Options
- type QNode
- type Queue
- type ResCode
- type Timer
- type XScrollBar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArtistNameStrOfAlbum ¶
func ArtistNameStrOfAlbum(s *spotify.SimpleAlbum) string
func ArtistNameStrOfSong ¶
func ArtistNameStrOfSong(s *spotify.FullTrack) string
func ArtistNamesOfAlbum ¶
func ArtistNamesOfAlbum(s *spotify.SimpleAlbum) []string
func ArtistNamesOfSong ¶
func ArtistNamesOfSong(s *spotify.FullTrack) []string
func CheckUpdate ¶
func CompareSong ¶
func CompareSong(s1, s2 spotify.FullTrack) bool
func CopyDirFromEmbed ¶
func CopyFileFromEmbed ¶
func FileOrDirExists ¶
func GetLocalDataDir ¶
func GetLocalDataDir() string
func LoadIniConfig ¶
func LoadIniConfig()
func MenuItemsFromAlbums ¶
func MenuItemsFromArtists ¶
func MenuItemsFromPlaylists ¶
func MenuItemsFromSongs ¶
func Notify ¶
func Notify(content NotifyContent)
func PanicRecoverWrapper ¶
func PanicRecoverWrapper(ignorePanic bool, f func())
func PicURLOfSong ¶
func PicURLOfSong(song *spotify.FullTrack) (url string)
func ReplaceSpecialStr ¶
func ResetError ¶
func ResetError(i interface{})
func WaitForNBytes ¶
func WebURLOfAlbum ¶
func WebURLOfAlbum(artistId spotify.ID) string
func WebURLOfArtist ¶
func WebURLOfArtist(artistId spotify.ID) string
func WebURLOfLibrary ¶
func WebURLOfLibrary() string
func WebURLOfPlaylist ¶
func WebURLOfPlaylist(playlistId spotify.ID) string
func WebURLOfSong ¶
func WebURLOfSong(songId spotify.ID) string
Types ¶
type LyricsResp ¶
type Notificator ¶
type Notificator struct { *notificator.Notificator // contains filtered or unexported fields }
func NewNotificator ¶
func NewNotificator(o notificator.Options) *Notificator
func (Notificator) Push ¶
func (n Notificator) Push(urgency, title, text, iconPath, redirectUrl, groupId string) error
type NotifyContent ¶
type Options ¶
type Options struct { Duration time.Duration Passed time.Duration TickerInternal time.Duration OnPaused func() OnDone func(stopped bool) OnTick func() OnRun func(started bool) }
Options represents configuration for timer.
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer represents timer with pause/resume features.
type XScrollBar ¶
type XScrollBar struct {
// contains filtered or unexported fields
}
func NewXScrollBar ¶
func NewXScrollBar() *XScrollBar
Source Files ¶
Click to show internal directories.
Click to hide internal directories.