mqtt

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, params Params)

Types

type ChannelMessage added in v0.2.0

type ChannelMessage struct {
	Topic   string
	Content []byte
}

type MessageChannel

type MessageChannel chan ChannelMessage

type Params added in v0.2.0

type Params struct {
	Broker     string
	Port       int
	Clientid   string
	Tls        bool
	TlsConfig  *tls.Config
	Channel    MessageChannel
	Topic      string
	ObsChannel observability.Channel
	LogLevel   log.LogLevel
}

Jump to

Keyboard shortcuts

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