PayloadEncoderDecoder provides an interface to encoding and decoding messages.
| 23 | |
| 24 | // PayloadEncoderDecoder provides an interface to encoding and decoding messages. |
| 25 | type PayloadEncoderDecoder interface { |
| 26 | EncodeDownlink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationDownlink, parameter string) error |
| 27 | DecodeUplink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationUplink, parameter string) error |
| 28 | DecodeDownlink(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers, version *ttnpb.EndDeviceVersionIdentifiers, message *ttnpb.ApplicationDownlink, parameter string) error |
| 29 | } |
| 30 | |
| 31 | // CompilablePayloadEncoderDecoder extends PayloadEncoderDecoder with the ability |
| 32 | // to compile the parameters ahead of time. |
nothing calls this directly
no outgoing calls
no test coverage detected