mqtt_server

package
v0.0.0-...-9bc770a Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Handler

func (s *MqttServer) Handler(client mqtt.Client, msg mqtt.Message)

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()

Jump to

Keyboard shortcuts

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