handler

package
v0.0.0-...-771f68f Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrowattProxy

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

func NewGrowattProxy

func NewGrowattProxy() *GrowattProxy

func (*GrowattProxy) Register

func (g *GrowattProxy) Register() func(message []byte)

type ListenHandler

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

func NewListenHandler

func NewListenHandler(ip net.IP, port int, packetSize int, onMessage func(message []byte)) *ListenHandler

func (*ListenHandler) Start

func (l *ListenHandler) Start()

type MQTTPublisher

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

func NewMQTTPublisher

func NewMQTTPublisher(tlsCert string, tlsPrivateKey string, tlsCA string, mqttEndpoint string) *MQTTPublisher

func (*MQTTPublisher) Register

func (m *MQTTPublisher) Register() func(message []byte)

Jump to

Keyboard shortcuts

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