Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(provider PayloadEncoderDecoderProvider, cluster Cluster) messageprocessors.PayloadEncoderDecoder
New creates a new PayloadEncoderDecoder that retrieves codecs from the Device Repository and uses an underlying PayloadEncoderDecoder to execute them.
Types ¶
type Cluster ¶
type Cluster interface { GetPeerConn(ctx context.Context, role ttnpb.ClusterRole, ids cluster.EntityIdentifiers) (*grpc.ClientConn, error) WithClusterAuth() grpc.CallOption }
Cluster represents the interface the cluster.
type PayloadEncoderDecoderProvider ¶ added in v3.18.0
type PayloadEncoderDecoderProvider interface {
GetPayloadEncoderDecoder(ctx context.Context, formatter ttnpb.PayloadFormatter) (messageprocessors.PayloadEncoderDecoder, error)
}
PayloadEncoderDecoderProvider provides a messageprocessors.PayloadEncoderDecoder for the provided formatter.
Click to show internal directories.
Click to hide internal directories.