refactor: add ShouldExclude() bool to Route interface

This commit is contained in:
yusing
2025-10-10 09:53:08 +08:00
parent f4db874fd6
commit c59ddc1df6

View File

@@ -24,6 +24,7 @@ type (
HealthMonitor() HealthMonitor
SetHealthMonitor(m HealthMonitor)
References() []string
ShouldExclude() bool
Started() <-chan struct{}
@@ -60,6 +61,7 @@ type (
Start(task.Parent) gperr.Error
LoadRoutes() gperr.Error
GetRoute(alias string) (r Route, ok bool)
// should be used like `for _, r := range p.IterRoutes` (no braces), not calling it directly
IterRoutes(yield func(alias string, r Route) bool)
NumRoutes() int
FindService(project, service string) (r Route, ok bool)