Documentation
¶
Index ¶
- type DiscordInstance
- type Instance
- type MediaPlayer2
- func (m *MediaPlayer2) Next() *dbus.Error
- func (m *MediaPlayer2) Pause() *dbus.Error
- func (m *MediaPlayer2) Play() *dbus.Error
- func (m *MediaPlayer2) PlayPause() *dbus.Error
- func (m *MediaPlayer2) Previous() *dbus.Error
- func (m *MediaPlayer2) Quit() *dbus.Error
- func (m *MediaPlayer2) Raise() *dbus.Error
- func (m *MediaPlayer2) Stop() *dbus.Error
- type Metadata
- type NextSongMsg
- type PlayPauseMsg
- type PreviousSongMsg
- type Status
- type StopMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordInstance ¶
type DiscordInstance struct {
Connected bool
}
func InitDiscord ¶
func InitDiscord() *DiscordInstance
func (*DiscordInstance) Close ¶ added in v2.5.1
func (ins *DiscordInstance) Close()
func (*DiscordInstance) UpdateActivity ¶
func (ins *DiscordInstance) UpdateActivity(meta Metadata)
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) ClearMetadata ¶
func (ins *Instance) ClearMetadata()
func (*Instance) UpdateMetadata ¶
func (*Instance) UpdateStatus ¶
type MediaPlayer2 ¶
func (*MediaPlayer2) Next ¶
func (m *MediaPlayer2) Next() *dbus.Error
func (*MediaPlayer2) Pause ¶
func (m *MediaPlayer2) Pause() *dbus.Error
func (*MediaPlayer2) Play ¶
func (m *MediaPlayer2) Play() *dbus.Error
func (*MediaPlayer2) PlayPause ¶
func (m *MediaPlayer2) PlayPause() *dbus.Error
func (*MediaPlayer2) Previous ¶
func (m *MediaPlayer2) Previous() *dbus.Error
func (*MediaPlayer2) Quit ¶
func (m *MediaPlayer2) Quit() *dbus.Error
func (*MediaPlayer2) Raise ¶
func (m *MediaPlayer2) Raise() *dbus.Error
func (*MediaPlayer2) Stop ¶
func (m *MediaPlayer2) Stop() *dbus.Error
type Metadata ¶
type Metadata struct {
Title string
Artist string
Album string
Duration float64
Position float64
ImageURL string
Rating float64
}
func (Metadata) LengthInMicroseconds ¶
type NextSongMsg ¶
type NextSongMsg struct{}
type PlayPauseMsg ¶
type PlayPauseMsg struct{}
type PreviousSongMsg ¶
type PreviousSongMsg struct{}
Click to show internal directories.
Click to hide internal directories.