topics

package
v0.0.0-...-60b8695 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layout

type Layout interface {
	BirthTopic(uid string) []string
	IsBirthTopic(path []string) bool
	LastWillTopic(uid string) []string
	IsLastWillTopic(path []string) bool

	UplinkTopic(uid string) []string
	IsUplinkTopic(path []string) bool
	StatusTopic(uid string) []string
	IsStatusTopic(path []string) bool
	TxAckTopic(uid string) []string
	IsTxAckTopic(path []string) bool

	DownlinkTopic(uid string) []string
}

Layout represents an MQTT topic layout.

func New

func New(ctx context.Context) Layout

New returns the default layout.

func NewV2

func NewV2(ctx context.Context) Layout

NewV2 returns a topic layout that uses the legacy The Things Stack V2 topic structure.

Jump to

Keyboard shortcuts

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