state

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppState

type AppState struct {
	Channels   []radioChannels.RadioChan
	SelectedCh int
	PlayingCh  int
	IsPlaying  bool
	// contains filtered or unexported fields
}

func InitState

func InitState(channels []radioChannels.RadioChan) *AppState

func (*AppState) GetSelectedCh

func (appState *AppState) GetSelectedCh() radioChannels.RadioChan

func (*AppState) PauseMusic

func (appState *AppState) PauseMusic()

func (*AppState) PlayMusic

func (appState *AppState) PlayMusic() error

func (*AppState) SelectCh

func (appState *AppState) SelectCh(i int)

Jump to

Keyboard shortcuts

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