messageprocessors

package
v3.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package messageprocessors provides interfaces and implementations for processing uplink and downlink messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompilablePayloadEncoderDecoder added in v3.18.0

CompilablePayloadEncoderDecoder extends PayloadEncoderDecoder with the ability to compile the parameters ahead of time.

type MapPayloadProcessor added in v3.11.3

type MapPayloadProcessor map[ttnpb.PayloadFormatter]PayloadEncoderDecoder

MapPayloadProcessor implements PayloadProcessor using a mapping between ttnpb.PayloadFormatter and PayloadEncoderDecoder.

DecodeDownlink implements PayloadProcessor.

DecodeUplink implements PayloadProcessor.

EncodeDownlink implements PayloadProcessor.

func (MapPayloadProcessor) GetPayloadEncoderDecoder added in v3.18.0

func (p MapPayloadProcessor) GetPayloadEncoderDecoder(ctx context.Context, formatter ttnpb.PayloadFormatter) (PayloadEncoderDecoder, error)

GetPayloadEncoderDecoder returns the underlying PayloadEncoderDecoder for the provided format.

type PayloadEncoderDecoder added in v3.18.0

type PayloadEncoderDecoder interface {
	EncodeDownlink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationDownlink, parameter string) error
	DecodeUplink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationUplink, parameter string) error
	DecodeDownlink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationDownlink, parameter string) error
}

PayloadEncoderDecoder provides an interface to encoding and decoding messages.

type PayloadProcessor added in v3.11.0

type PayloadProcessor interface {
	EncodeDownlink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationDownlink, formatter ttnpb.PayloadFormatter, parameter string) error
	DecodeUplink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationUplink, formatter ttnpb.PayloadFormatter, parameter string) error
	DecodeDownlink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationDownlink, formatter ttnpb.PayloadFormatter, parameter string) error
}

PayloadProcessor provides an interface to processing payloads of multiple formats.

Directories

Path Synopsis
Package cayennelpp contains the CayenneLPP payload formatter message processors.
Package cayennelpp contains the CayenneLPP payload formatter message processors.
Package javascript contains the Javascript payload formatter message processors.
Package javascript contains the Javascript payload formatter message processors.
Package normalizedpayload implements functionality for parsing and validating normalized payload.
Package normalizedpayload implements functionality for parsing and validating normalized payload.

Jump to

Keyboard shortcuts

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