Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundRobin ¶
type RoundRobin struct {
Targets []*Target
// contains filtered or unexported fields
}
RoundRobin strategy
func NewRoundRobin ¶
func NewRoundRobin(targets []*Target) *RoundRobin
NewRoundRobin creates new round-robin load balancer
type Target ¶
type Target struct {
Host string
Transport http.RoundTripper
}
Target is the load balancer target
Click to show internal directories.
Click to hide internal directories.