mqtt_client

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer added in v0.17.0

type Consumer interface {
	Start(context.Context, chan bool)
}

func NewConsumer

func NewConsumer(cfg config.Config, id int) Consumer

type Mqtt5Consumer added in v0.17.0

type Mqtt5Consumer struct {
	Id         int
	Connection *autopaho.ConnectionManager
	Topic      string
	Config     config.Config
}

func (Mqtt5Consumer) Start added in v0.17.0

func (c Mqtt5Consumer) Start(ctx context.Context, subscribed chan bool)

func (Mqtt5Consumer) Stop added in v0.17.0

func (c Mqtt5Consumer) Stop(reason string)

type Mqtt5Publisher added in v0.17.0

type Mqtt5Publisher struct {
	Id         int
	Connection *autopaho.ConnectionManager
	Topic      string
	Config     config.Config
	// contains filtered or unexported fields
}

func (Mqtt5Publisher) Send added in v0.17.0

func (p Mqtt5Publisher) Send()

func (Mqtt5Publisher) Start added in v0.17.0

func (p Mqtt5Publisher) Start(ctx context.Context)

func (Mqtt5Publisher) StartFullSpeed added in v0.17.0

func (p Mqtt5Publisher) StartFullSpeed(ctx context.Context)

func (Mqtt5Publisher) StartIdle added in v0.17.0

func (p Mqtt5Publisher) StartIdle(ctx context.Context)

func (Mqtt5Publisher) StartRateLimited added in v0.17.0

func (p Mqtt5Publisher) StartRateLimited(ctx context.Context)

func (Mqtt5Publisher) Stop added in v0.17.0

func (p Mqtt5Publisher) Stop(reason string)

type MqttConsumer

type MqttConsumer struct {
	Id         int
	Connection mqtt.Client
	Topic      string
	Config     config.Config
}

func (MqttConsumer) Start

func (c MqttConsumer) Start(ctx context.Context, subscribed chan bool)

func (MqttConsumer) Stop added in v0.3.0

func (c MqttConsumer) Stop(reason string)

type MqttPublisher

type MqttPublisher struct {
	Id         int
	Connection mqtt.Client
	Topic      string
	Config     config.Config
	// contains filtered or unexported fields
}

func (MqttPublisher) Send added in v0.2.0

func (p MqttPublisher) Send()

func (MqttPublisher) Start

func (p MqttPublisher) Start(ctx context.Context)

func (MqttPublisher) StartFullSpeed

func (p MqttPublisher) StartFullSpeed(ctx context.Context)

func (MqttPublisher) StartIdle added in v0.5.0

func (p MqttPublisher) StartIdle(ctx context.Context)

func (MqttPublisher) StartRateLimited

func (p MqttPublisher) StartRateLimited(ctx context.Context)

func (MqttPublisher) Stop added in v0.3.0

func (p MqttPublisher) Stop(reason string)

type Publisher added in v0.17.0

type Publisher interface {
	Start(context.Context)
}

func NewPublisher

func NewPublisher(cfg config.Config, id int) Publisher

Jump to

Keyboard shortcuts

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