integration

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordInstance added in v1.5.0

type DiscordInstance struct {
	Connected bool
}

func InitDiscord added in v1.5.0

func InitDiscord() *DiscordInstance

func (*DiscordInstance) UpdateActivity added in v1.5.0

func (ins *DiscordInstance) UpdateActivity(meta Metadata)

type Instance

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

func Init

func Init(p *tea.Program) *Instance

func (*Instance) ClearMetadata added in v1.8.2

func (ins *Instance) ClearMetadata()

func (*Instance) Close

func (ins *Instance) Close()

func (*Instance) GetStatus

func (ins *Instance) GetStatus() string

func (*Instance) UpdateMetadata

func (ins *Instance) UpdateMetadata(meta Metadata)

func (*Instance) UpdateStatus

func (ins *Instance) UpdateStatus(status string)

type MediaPlayer2

type MediaPlayer2 struct {
	Program *tea.Program
}

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
}

func (Metadata) LengthInMicroseconds

func (m Metadata) LengthInMicroseconds() int64

func (Metadata) ToMap

func (m Metadata) ToMap() map[string]interface{}

type NextSongMsg

type NextSongMsg struct{}

type PlayPauseMsg

type PlayPauseMsg struct{}

type PreviousSongMsg

type PreviousSongMsg struct{}

type Status

type Status string
const (
	StatusPlaying Status = "Playing"
	StatusPaused  Status = "Paused"
	StatusStopped Status = "Stopped"
)

Jump to

Keyboard shortcuts

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