Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRoundRobin ¶
func NewRoundRobin(targets []*Target) http.RoundTripper
NewRoundRobin creates new round-robin load balancer
Types ¶
type RoundRobin ¶
type RoundRobin struct { Targets []*Target // contains filtered or unexported fields }
RoundRobin strategy
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.