Documentation ¶
Index ¶
- type MqttServer
- func (s *MqttServer) ChangePlaylist(playlist string)
- func (s *MqttServer) Handler(client mqtt.Client, msg mqtt.Message)
- func (s *MqttServer) OnConnect(client mqtt.Client)
- func (s *MqttServer) OnConnectionLost(client mqtt.Client, err error)
- func (s *MqttServer) PublishConfig()
- func (s *MqttServer) RequestConfig()
- func (s *MqttServer) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttServer ¶
type MqttServer struct { Host string Port int PublishConfigTopic string // used by me to publish config settings whenever they change (or when requested) RequestConfigTopic string // used by others to prompt for a re-publication of the config settings ChangePlaylistTopic string // used by others to request a new playlist be loaded Config *config.Config Vlc *vlcclient.Client // contains filtered or unexported fields }
func (*MqttServer) ChangePlaylist ¶
func (s *MqttServer) ChangePlaylist(playlist string)
func (*MqttServer) OnConnect ¶
func (s *MqttServer) OnConnect(client mqtt.Client)
func (*MqttServer) OnConnectionLost ¶
func (s *MqttServer) OnConnectionLost(client mqtt.Client, err error)
func (*MqttServer) PublishConfig ¶
func (s *MqttServer) PublishConfig()
func (*MqttServer) RequestConfig ¶
func (s *MqttServer) RequestConfig()
func (*MqttServer) Start ¶
func (s *MqttServer) Start()
Click to show internal directories.
Click to hide internal directories.