agent

package module
v0.0.0-...-14b0e63 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTLSConfig

func LoadTLSConfig(certFile string) (*tls.Config, error)

func NewConsumer

func NewConsumer(addr string, tlsCfg *tls.Config) (*consumer, error)

func NewProducer

func NewProducer(addr string, tlsCfg *tls.Config) (*producer, error)

Types

type OnMessage

type OnMessage func(topic, message string)

type Packet

type Packet struct {
	Type    uint8
	Topic   string
	Payload string
}

Jump to

Keyboard shortcuts

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