Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDecoder ¶
func DefaultDecoder(ctx context.Context, deviceID string, e application.SensorEvent) ([]lwm2m.Lwm2mObject, error)
Types ¶
type DecoderRegistry ¶
type DecoderRegistry interface {
GetDecoderForSensorType(ctx context.Context, sensorType string) MessageDecoderFunc
}
func NewDecoderRegistry ¶
func NewDecoderRegistry() DecoderRegistry
type MessageDecoderFunc ¶
type MessageDecoderFunc func(ctx context.Context, deviceID string, e application.SensorEvent) ([]lwm2m.Lwm2mObject, error)
Click to show internal directories.
Click to hide internal directories.