Reorganized structure, seperating implementations from core logic

This commit is contained in:
2025-11-28 00:53:37 +08:00
parent f1e5937978
commit 9b9d9e2156
24 changed files with 4 additions and 108 deletions

14
pkg/data/processor.go Normal file
View File

@@ -0,0 +1,14 @@
package data
import "context"
type Processor interface {
Name() string
Configure(cfg map[string]any) error
Run(ctx context.Context, actions ProcessorActions) error
}
type ProcessorActions interface {
IngressActions
EgresActions
}