Documentation
¶
Index ¶
- type State
- func (s *State) ActiveMedia() *models.ActiveMedia
- func (s *State) GetActiveCard() tokens.Token
- func (s *State) GetActivePlaylist() *playlists.Playlist
- func (s *State) GetContext() context.Context
- func (s *State) GetLastScanned() tokens.Token
- func (s *State) GetReader(device string) (readers.Reader, bool)
- func (s *State) GetSoftwareToken() *tokens.Token
- func (s *State) GetWroteToken() *tokens.Token
- func (s *State) ListReaders() []string
- func (s *State) RemoveReader(device string)
- func (s *State) RunZapScriptEnabled() bool
- func (s *State) SetActiveCard(card tokens.Token)
- func (s *State) SetActiveMedia(media *models.ActiveMedia)
- func (s *State) SetActivePlaylist(playlist *playlists.Playlist)
- func (s *State) SetOnMediaStartHook(hook func(*models.ActiveMedia))
- func (s *State) SetReader(device string, reader readers.Reader)
- func (s *State) SetRunZapScript(run bool)
- func (s *State) SetSoftwareToken(token *tokens.Token)
- func (s *State) SetWroteToken(token *tokens.Token)
- func (s *State) StopService()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
Notifications chan<- models.Notification
// contains filtered or unexported fields
}
func NewState ¶
func NewState(platform platforms.Platform) (state *State, notificationChan <-chan models.Notification)
func (*State) ActiveMedia ¶
func (s *State) ActiveMedia() *models.ActiveMedia
func (*State) GetActiveCard ¶
func (*State) GetActivePlaylist ¶
func (*State) GetContext ¶
func (*State) GetLastScanned ¶
func (*State) GetSoftwareToken ¶
func (*State) GetWroteToken ¶
func (*State) ListReaders ¶
func (*State) RemoveReader ¶
func (*State) RunZapScriptEnabled ¶
func (*State) SetActiveCard ¶
func (*State) SetActiveMedia ¶
func (s *State) SetActiveMedia(media *models.ActiveMedia)
func (*State) SetActivePlaylist ¶
func (*State) SetOnMediaStartHook ¶
func (s *State) SetOnMediaStartHook(hook func(*models.ActiveMedia))
func (*State) SetRunZapScript ¶
func (*State) SetSoftwareToken ¶
func (*State) SetWroteToken ¶
func (*State) StopService ¶
func (s *State) StopService()
Click to show internal directories.
Click to hide internal directories.