Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCleanupInterval = 15 * time.Minute
View Source
const DefaultExpiration = 30 * time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPHash ¶
type IPHash struct {
// contains filtered or unexported fields
}
func (*IPHash) SelectServer ¶
type Random ¶
type Random struct {
// contains filtered or unexported fields
}
func (*Random) SelectServer ¶
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func NewRoundRobin ¶
func NewRoundRobin(serverPool http_lb.ServerPool, logger *zap.Logger) *RoundRobin
func (*RoundRobin) SelectServer ¶
func (r *RoundRobin) SelectServer(_ http_lb.Request) (string, error)
type StickyRoundRobin ¶
type StickyRoundRobin struct {
// contains filtered or unexported fields
}
func NewStickyRoundRobin ¶
func NewStickyRoundRobin(serverPool http_lb.ServerPool, logger *zap.Logger) *StickyRoundRobin
func (*StickyRoundRobin) SelectServer ¶
func (s *StickyRoundRobin) SelectServer(r http_lb.Request) (string, error)
type URLHash ¶
type URLHash struct {
// contains filtered or unexported fields
}
func NewURLHash ¶
func (*URLHash) SelectServer ¶
Click to show internal directories.
Click to hide internal directories.