mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-31 18:59:00 +00:00
24 lines
485 B
Go
24 lines
485 B
Go
package test
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/jwetzell/showbridge-go/internal/common"
|
|
"github.com/jwetzell/showbridge-go/internal/config"
|
|
)
|
|
|
|
type TestProcessor struct {
|
|
Config config.ProcessorConfig
|
|
}
|
|
|
|
func (p *TestProcessor) Id() string {
|
|
return p.Config.Id
|
|
}
|
|
|
|
func (p *TestProcessor) Type() string {
|
|
return p.Config.Type
|
|
}
|
|
func (p *TestProcessor) Process(ctx context.Context, wrappedPayload common.WrappedPayload) (common.WrappedPayload, error) {
|
|
return wrappedPayload, nil
|
|
}
|