Add balancer: & refactor

This commit is contained in:
Fangliding
2026-09-15 01:33:26 +08:00
parent 52a412d9e2
commit bf3230ec51
3 changed files with 120 additions and 73 deletions
+5
View File
@@ -8,3 +8,8 @@ type BalancerOverrider interface {
type BalancerPrincipleTarget interface {
GetPrincipleTarget(tag string) ([]string, error)
}
// BalancerPicker return the outbound tag selected by the given balancer
type BalancerPicker interface {
GetBalancerOutboundTag(balancerTag string) (string, error)
}