Update On Thu Mar 7 19:24:48 CET 2024

This commit is contained in:
github-action[bot]
2024-03-07 19:24:49 +01:00
parent 880b4887e7
commit 388343c024
169 changed files with 96730 additions and 459 deletions

View File

@@ -1,12 +1,24 @@
package lb
import (
"time"
"go.uber.org/atomic"
)
// todo: move to internal/lb
type Node struct {
Address string
Label string
Address string
Label string
HandShakeDuration time.Duration
}
func (n *Node) Clone() *Node {
return &Node{
Address: n.Address,
Label: n.Label,
HandShakeDuration: n.HandShakeDuration,
}
}
// RoundRobin is an interface for representing round-robin balancing.