add concept of a "filter"

This commit is contained in:
Joel Wetzell
2025-11-21 23:13:16 -06:00
parent fe2a54d4cd
commit 4b07c85508
2 changed files with 75 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ func (r *Route) HandleInput(sourceId string, payload any) error {
if err != nil {
return err
}
//NOTE(jwetzell) nil payload will result in the route being "terminated"
if payload == nil {
return nil
}
}
return r.HandleOutput(payload)
}