mqtt

package
v0.0.0-...-8c71cb1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessageHandler

func NewMessageHandler(ctx context.Context, forwardingEndpoint string) func(mqtt.Client, mqtt.Message)

Types

type Client

type Client interface {
	Start() error
	Stop()
}

func NewClient

func NewClient(ctx context.Context, cfg Config, forwardingEndpoint string) (Client, error)

type Config

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

func NewConfigFromEnvironment

func NewConfigFromEnvironment(prefix string) (Config, error)

Jump to

Keyboard shortcuts

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