Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttPublisher ¶
type MqttPublisher struct {
// contains filtered or unexported fields
}
func NewMqttPublisher ¶
func NewMqttPublisher(client mqtt.Client) *MqttPublisher
func (*MqttPublisher) PublishAsString ¶
func (m *MqttPublisher) PublishAsString(topic Topic, payload fmt.Stringer) error
type OHGateway ¶
type OHGateway struct {
// contains filtered or unexported fields
}
func NewOHGateway ¶
type Option ¶
type Option func(o *OHGateway)
func WithDeviceDiscover ¶
func WithDeviceDiscover(d oh2mqtt.DevicesDiscover) Option
func WithIntervalPublish ¶
func WithTopicFormat ¶
type StatePublisher ¶
type StatePublisher struct{}
func (*StatePublisher) Close ¶
func (s *StatePublisher) Close() error
func (*StatePublisher) Run ¶
func (s *StatePublisher) Run() error
type TopicFormatter ¶
type TopicFormatter string
Click to show internal directories.
Click to hide internal directories.