Continued scaffolding and interface definitions
This commit is contained in:
@@ -1,2 +1,18 @@
|
||||
// Package processor
|
||||
package processor
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitlab.michelsen.id/phillmichelsen/tessera/services/data_service/internal/node"
|
||||
)
|
||||
|
||||
type Processor interface {
|
||||
Start(ctx context.Context, cfg string, io IO) error
|
||||
Stop()
|
||||
}
|
||||
|
||||
type IO interface {
|
||||
node.Receiver
|
||||
node.Sender
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package processor
|
||||
|
||||
type Registry struct{}
|
||||
|
||||
type Factory interface {
|
||||
New() Processor
|
||||
Type() string
|
||||
Version() string
|
||||
|
||||
TemplateFingerprint(cfg string) (string, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user