add id field to route and processor

This commit is contained in:
Joel Wetzell
2026-08-11 20:39:54 -05:00
parent a3926d980b
commit 848e644a9f
6 changed files with 25 additions and 6 deletions
+6 -1
View File
@@ -10,6 +10,7 @@ import (
)
type Route struct {
id string
input string
processors []processor.Processor
}
@@ -32,7 +33,11 @@ func NewRoute(config config.RouteConfig) (*Route, error) {
}
}
return &Route{input: config.Input, processors: processors}, nil
return &Route{id: config.Id, input: config.Input, processors: processors}, nil
}
func (r *Route) Id() string {
return r.id
}
func (r *Route) Input() string {