add id getter for processors

This commit is contained in:
Joel Wetzell
2026-08-28 14:55:19 -05:00
parent f9287cc87e
commit 54ada59f6e
96 changed files with 456 additions and 33 deletions
+6 -2
View File
@@ -21,9 +21,9 @@ func init() {
type FreeDDecode struct {
config config.ProcessorConfig
buf [29]byte
buf [29]byte
}
func (fd *FreeDDecode) Process(ctx context.Context, wrappedPayload common.WrappedPayload) (common.WrappedPayload, error) {
payload := wrappedPayload.Payload
payloadBytes, ok := common.GetAnyAsByteSlice(payload)
@@ -49,6 +49,10 @@ func (fd *FreeDDecode) Process(ctx context.Context, wrappedPayload common.Wrappe
return wrappedPayload, nil
}
func (fd *FreeDDecode) Id() string {
return fd.config.Id
}
func (fd *FreeDDecode) Type() string {
return fd.config.Type
}