strategy

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeastConnStrategy

type LeastConnStrategy struct {
	// contains filtered or unexported fields
}

func (*LeastConnStrategy) Next

func (r *LeastConnStrategy) Next() *model.Worker

func (*LeastConnStrategy) SetPool

func (r *LeastConnStrategy) SetPool(pool *model.Pool)

type LoadBalancingStrategy

type LoadBalancingStrategy interface {
	Next() *model.Worker
	SetPool(pool *model.Pool)
}

type RoundRobinStrategy

type RoundRobinStrategy struct {
	// contains filtered or unexported fields
}

func (*RoundRobinStrategy) Next

func (r *RoundRobinStrategy) Next() *model.Worker

func (*RoundRobinStrategy) SetPool

func (r *RoundRobinStrategy) SetPool(pool *model.Pool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL