bootstrap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mqtt5ClientMapName = di.TypeInstanceToName((*Mqtt5ClientMap)(nil))

Mqtt5ClientMapName contains the name of the Mqtt5ClientMap struct in the DIC.

Functions

func Mqtt5BootstrapHandler

func Mqtt5BootstrapHandler(ctx context.Context, wg *sync.WaitGroup, startupTimer startup.Timer, dic *di.Container) bool

Types

type Mqtt5ClientMap

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

func Mqtt5ClientMapFrom

func Mqtt5ClientMapFrom(get di.Get) Mqtt5ClientMap

Mqtt5ClientMapFrom helper function queries the DIC and returns the Dev and Remotes mode flags.

func (*Mqtt5ClientMap) ConnectAll

func (mc *Mqtt5ClientMap) ConnectAll(ctx context.Context, logger log.Logger) bool

func (*Mqtt5ClientMap) DisconnectAll

func (mc *Mqtt5ClientMap) DisconnectAll(logger log.Logger) error

func (*Mqtt5ClientMap) Get

func (mc *Mqtt5ClientMap) Get(brokerName string) (mqtt5.Mqtt5Client, error)

Jump to

Keyboard shortcuts

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