components

package
v0.0.0-...-4c44a0c Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlayListLoadingError = errors.New("cannot load the playlist")

Functions

func WithColor

func WithColor(color string) optionSetter

func WithPlayList

func WithPlayList(path string) optionSetter

Types

type App

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

func NewApp

func NewApp(duration int64, opts ...optionSetter) (*App, error)

func (*App) Init

func (s *App) Init() tea.Cmd

func (*App) Update

func (s *App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*App) View

func (s *App) View() string

type Help

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

func NewHelp

func NewHelp() *Help

func (*Help) Init

func (h *Help) Init() tea.Cmd

func (*Help) Update

func (h *Help) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Help) View

func (h *Help) View() string

type HelpEntry

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

type Player

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

func (*Player) Init

func (p *Player) Init() tea.Cmd

func (*Player) Update

func (p *Player) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Player) View

func (p *Player) View() string

type Song

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

type Timer

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

func (*Timer) Init

func (s *Timer) Init() tea.Cmd

func (*Timer) Update

func (s *Timer) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Timer) View

func (s *Timer) View() string

Jump to

Keyboard shortcuts

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