Documentation
¶
Overview ¶
Package serverpool implements the interface that manages pool of backend servers of load balancer app
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidStrategy = errors.New("invalid strategy")
)
Custom errors.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { Backends() map[string][]backend.TSDBServer Target(id string, d time.Duration) backend.TSDBServer Add(id string, b backend.TSDBServer) Size(id string) int }
Manager is the interface every strategy must implement.
Click to show internal directories.
Click to hide internal directories.