Documentation ¶
Index ¶
- func ErrorMessageAction(w http.ResponseWriter, title string, status int)
- func ErrorMethodNotAllowedAction(w http.ResponseWriter, r *http.Request)
- func ErrorNotFoundAction(w http.ResponseWriter, r *http.Request)
- func ErrorStatusAction(w http.ResponseWriter, r *http.Request, status int)
- func GlobalErrorAction(w http.ResponseWriter, message string, status int)
- type Api
- type Audio
- type Button
- type Buttons
- type Clock
- type Display
- type LocalPlaylistPlayer
- func (d *LocalPlaylistPlayer) Clear()
- func (d *LocalPlaylistPlayer) CurrentPlaylist() *Playlist
- func (d *LocalPlaylistPlayer) CurrentSongName() string
- func (d *LocalPlaylistPlayer) EventChannel() chan event.PlaylistEvent
- func (d *LocalPlaylistPlayer) GetPlaylist(playlistId apimodel.PlaylistId) *Playlist
- func (d *LocalPlaylistPlayer) NextSong()
- func (d *LocalPlaylistPlayer) Play(playlistId apimodel.PlaylistId) error
- func (d *LocalPlaylistPlayer) PlaylistCount() int64
- func (d *LocalPlaylistPlayer) Start()
- func (d *LocalPlaylistPlayer) Stop()
- func (d *LocalPlaylistPlayer) StopSendingEvent()
- type MifasolPlaylistPlayer
- func (d *MifasolPlaylistPlayer) Clear()
- func (d *MifasolPlaylistPlayer) CurrentPlaylist() *Playlist
- func (d *MifasolPlaylistPlayer) CurrentSongName() string
- func (d *MifasolPlaylistPlayer) EventChannel() chan event.PlaylistEvent
- func (d *MifasolPlaylistPlayer) GetPlaylist(playlistId apimodel.PlaylistId) *Playlist
- func (d *MifasolPlaylistPlayer) NextSong()
- func (d *MifasolPlaylistPlayer) Play(playlistId apimodel.PlaylistId) error
- func (d *MifasolPlaylistPlayer) PlaylistCount() int64
- func (d *MifasolPlaylistPlayer) Start()
- func (d *MifasolPlaylistPlayer) Stop()
- func (d *MifasolPlaylistPlayer) StopSendingEvent()
- type Playlist
- type PlaylistPlayer
- type WebradioPlayer
- func (d *WebradioPlayer) Clear()
- func (d *WebradioPlayer) CurrentWebRadio() *config.Webradio
- func (d *WebradioPlayer) EventChannel() chan event.WebradioEvent
- func (d *WebradioPlayer) Play(radioId apimodel.WebradioId) error
- func (d *WebradioPlayer) Start()
- func (d *WebradioPlayer) Stop()
- func (d *WebradioPlayer) StopSendingEvent()
- func (d *WebradioPlayer) Webradio(webradioId apimodel.WebradioId) *config.Webradio
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorMessageAction ¶
func ErrorMessageAction(w http.ResponseWriter, title string, status int)
func ErrorMethodNotAllowedAction ¶
func ErrorMethodNotAllowedAction(w http.ResponseWriter, r *http.Request)
func ErrorNotFoundAction ¶
func ErrorNotFoundAction(w http.ResponseWriter, r *http.Request)
func ErrorStatusAction ¶
func ErrorStatusAction(w http.ResponseWriter, r *http.Request, status int)
func GlobalErrorAction ¶
func GlobalErrorAction(w http.ResponseWriter, message string, status int)
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func NewApi ¶
func NewApi(config *config.ServerConfig) *Api
func (*Api) EventChannel ¶
func (*Api) StopSendingEvent ¶
func (d *Api) StopSendingEvent()
type Audio ¶
type Audio struct {
// contains filtered or unexported fields
}
func NewAudio ¶
func NewAudio(serverState *config.ServerState) *Audio
func (*Audio) DecreaseVolume ¶
func (w *Audio) DecreaseVolume()
func (*Audio) IncreaseVolume ¶
func (w *Audio) IncreaseVolume()
type Button ¶
type Button struct {
// contains filtered or unexported fields
}
func (*Button) Refresh ¶
func (b *Button) Refresh(buttonEventChannel chan event.ButtonEvent)
type Buttons ¶
type Buttons struct {
// contains filtered or unexported fields
}
func NewButtons ¶
func (*Buttons) EventChannel ¶
func (d *Buttons) EventChannel() chan event.ButtonEvent
func (*Buttons) StopSendingEvent ¶
func (d *Buttons) StopSendingEvent()
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
func NewClock ¶
func NewClock(serverConfig *config.ServerConfig) *Clock
func (*Clock) ClearAlarm ¶
func (d *Clock) ClearAlarm()
func (*Clock) EventChannel ¶
func (d *Clock) EventChannel() chan event.TickerEvent
func (*Clock) IsAlarmRunning ¶
func (*Clock) StopSendingEvent ¶
func (d *Clock) StopSendingEvent()
func (*Clock) TriggerAlarm ¶
func (d *Clock) TriggerAlarm()
type LocalPlaylistPlayer ¶
type LocalPlaylistPlayer struct {
// contains filtered or unexported fields
}
func (*LocalPlaylistPlayer) Clear ¶
func (d *LocalPlaylistPlayer) Clear()
func (*LocalPlaylistPlayer) CurrentPlaylist ¶
func (d *LocalPlaylistPlayer) CurrentPlaylist() *Playlist
func (*LocalPlaylistPlayer) CurrentSongName ¶
func (d *LocalPlaylistPlayer) CurrentSongName() string
func (*LocalPlaylistPlayer) EventChannel ¶
func (d *LocalPlaylistPlayer) EventChannel() chan event.PlaylistEvent
func (*LocalPlaylistPlayer) GetPlaylist ¶
func (d *LocalPlaylistPlayer) GetPlaylist(playlistId apimodel.PlaylistId) *Playlist
func (*LocalPlaylistPlayer) NextSong ¶
func (d *LocalPlaylistPlayer) NextSong()
func (*LocalPlaylistPlayer) Play ¶
func (d *LocalPlaylistPlayer) Play(playlistId apimodel.PlaylistId) error
func (*LocalPlaylistPlayer) PlaylistCount ¶
func (d *LocalPlaylistPlayer) PlaylistCount() int64
func (*LocalPlaylistPlayer) Start ¶
func (d *LocalPlaylistPlayer) Start()
func (*LocalPlaylistPlayer) Stop ¶
func (d *LocalPlaylistPlayer) Stop()
func (*LocalPlaylistPlayer) StopSendingEvent ¶
func (d *LocalPlaylistPlayer) StopSendingEvent()
type MifasolPlaylistPlayer ¶
type MifasolPlaylistPlayer struct {
// contains filtered or unexported fields
}
func (*MifasolPlaylistPlayer) Clear ¶
func (d *MifasolPlaylistPlayer) Clear()
func (*MifasolPlaylistPlayer) CurrentPlaylist ¶
func (d *MifasolPlaylistPlayer) CurrentPlaylist() *Playlist
func (*MifasolPlaylistPlayer) CurrentSongName ¶
func (d *MifasolPlaylistPlayer) CurrentSongName() string
func (*MifasolPlaylistPlayer) EventChannel ¶
func (d *MifasolPlaylistPlayer) EventChannel() chan event.PlaylistEvent
func (*MifasolPlaylistPlayer) GetPlaylist ¶
func (d *MifasolPlaylistPlayer) GetPlaylist(playlistId apimodel.PlaylistId) *Playlist
func (*MifasolPlaylistPlayer) NextSong ¶
func (d *MifasolPlaylistPlayer) NextSong()
func (*MifasolPlaylistPlayer) Play ¶
func (d *MifasolPlaylistPlayer) Play(playlistId apimodel.PlaylistId) error
func (*MifasolPlaylistPlayer) PlaylistCount ¶
func (d *MifasolPlaylistPlayer) PlaylistCount() int64
func (*MifasolPlaylistPlayer) Start ¶
func (d *MifasolPlaylistPlayer) Start()
func (*MifasolPlaylistPlayer) Stop ¶
func (d *MifasolPlaylistPlayer) Stop()
func (*MifasolPlaylistPlayer) StopSendingEvent ¶
func (d *MifasolPlaylistPlayer) StopSendingEvent()
type Playlist ¶
type Playlist struct { PlaylistId apimodel.PlaylistId Name string }
type PlaylistPlayer ¶
type PlaylistPlayer interface { Start() StopSendingEvent() Stop() EventChannel() chan event.PlaylistEvent PlaylistCount() int64 GetPlaylist(playlistId apimodel.PlaylistId) *Playlist Play(playlistId apimodel.PlaylistId) error CurrentPlaylist() *Playlist CurrentSongName() string Clear() NextSong() }
func NewLocalPlaylistPlayer ¶
func NewLocalPlaylistPlayer(playlistFolder string) PlaylistPlayer
func NewMifasolPlaylistPlayer ¶
func NewMifasolPlaylistPlayer(mifasolParam *config.MifasolParam) PlaylistPlayer
type WebradioPlayer ¶
type WebradioPlayer struct {
// contains filtered or unexported fields
}
func NewWebradioPlayer ¶
func NewWebradioPlayer(config *config.ServerConfig) *WebradioPlayer
func (*WebradioPlayer) Clear ¶
func (d *WebradioPlayer) Clear()
func (*WebradioPlayer) CurrentWebRadio ¶
func (d *WebradioPlayer) CurrentWebRadio() *config.Webradio
func (*WebradioPlayer) EventChannel ¶
func (d *WebradioPlayer) EventChannel() chan event.WebradioEvent
func (*WebradioPlayer) Play ¶
func (d *WebradioPlayer) Play(radioId apimodel.WebradioId) error
func (*WebradioPlayer) Start ¶
func (d *WebradioPlayer) Start()
func (*WebradioPlayer) Stop ¶
func (d *WebradioPlayer) Stop()
func (*WebradioPlayer) StopSendingEvent ¶
func (d *WebradioPlayer) StopSendingEvent()
func (*WebradioPlayer) Webradio ¶
func (d *WebradioPlayer) Webradio(webradioId apimodel.WebradioId) *config.Webradio
Click to show internal directories.
Click to hide internal directories.