publisher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HomeAssistant

type HomeAssistant struct {
	// contains filtered or unexported fields
}

func NewHomeAssistant

func NewHomeAssistant(
	cfg config.Mqtt,
	mqtt mqtt.Client,
	logger *log.Logger,
) *HomeAssistant

func (*HomeAssistant) Publish

func (h *HomeAssistant) Publish(ctx context.Context, name, value string) error

type Publisher

type Publisher interface {
	Publish(ctx context.Context, name, value string) error
}

type Simple

type Simple struct {
	// contains filtered or unexported fields
}

func NewSimple

func NewSimple(
	cfg config.Mqtt,
	mqtt mqtt.Client,
	logger *log.Logger,
) *Simple

func (*Simple) Publish

func (s *Simple) Publish(ctx context.Context, name, value string) error

Jump to

Keyboard shortcuts

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