application

package
v0.0.0-...-59ead5a Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DigitalInputMessageFilter = func(m messaging.Message) bool {
	return strings.HasPrefix(m.ContentType(), "application/vnd.diwise.digitalinput")
}
View Source
var DistanceMessageFilter = func(m messaging.Message) bool {
	return strings.HasPrefix(m.ContentType(), "application/vnd.oma.lwm2m.ext.3330")
}
View Source
var ErrNoRelatedThingFound = fmt.Errorf("no related thing found")
View Source
var LevelMessageFilter = func(m messaging.Message) bool {
	return strings.HasPrefix(m.ContentType(), "application/vnd.diwise.level")
}
View Source
var StopwatchMessageFilter = func(m messaging.Message) bool {
	return strings.HasPrefix(m.ContentType(), "application/vnd.diwise.stopwatch")
}
View Source
var TemperatureMessageFilter = func(m messaging.Message) bool {
	return strings.HasPrefix(m.ContentType(), "application/vnd.oma.lwm2m.ext.3303")
}

Functions

This section is empty.

Types

type App

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

func New

func New(msgCtx messaging.MsgContext, tc things.Client, s storage.Storage) (App, error)

type CipFunctionHandler

type CipFunctionHandler interface {
	messaging.TopicMessage
	Handle(ctx context.Context, itm messaging.IncomingTopicMessage, tc things.Client) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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