domain

package
v0.0.0-...-96d54e8 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const NoItem int = -1

NoItem is used to indicate a "none" value for a menu index (i.e. a positive integer)

Variables

This section is empty.

Functions

func Notify

func Notify(state State)

Notify will prompt all controllers to check if they need to update and if so, they will queue an update

Types

type Receiver

type Receiver interface {
	Receive(s State)
}

Receiver is the interface that must be implemented to be eligible for state change notification

func Register

func Register(controller Receiver) Receiver

Register is used to connect a controller up for state update notifications

type State

type State struct {
	FeedIndex      int
	Feed           *clients.RSSFeed
	EpisodeIndex   int
	PlayingEpisode *clients.Item
	Initialised    bool
}

State represents all the shared global application state that is not managed by the audiopanel

func (*State) Init

func (s *State) Init() *State

Init initialises the state

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳