internal

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

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MQTTPublish

func MQTTPublish(client mqtt.Client, topic string, message []byte)

func MQTTSetup

func MQTTSetup(config Config) (*mqtt.Client, error)

Types

type Config

type Config struct {
	Broker         string `json:"broker"`
	Port           uint   `json:"port"`
	ClientIDPrefix string `json:"clientIdPrefix"`
	Topic          string `json:"topic"`
	UseSSL         bool   `json:"useSSL"`
	Username       string `json:"username"`
	Password       string `json:"password"`
}

type Email

type Email struct {
	Headers   map[string]string `json:"headers"`
	BodyParts map[string]string `json:"bodyParts"`
}

func ReadEmail

func ReadEmail(reader io.Reader) (*Email, error)

Jump to

Keyboard shortcuts

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