version_scale

package
v0.0.0-...-63a9e4b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(scales map[string]int) (b balance2.Balancer)

Types

type VersionScaleBalancer

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

func (*VersionScaleBalancer) Clone

func (*VersionScaleBalancer) Name

func (s *VersionScaleBalancer) Name() string

func (*VersionScaleBalancer) Pick

func (s *VersionScaleBalancer) Pick(peers []*balance2.ServicePeer) (picked *balance2.ServicePeer, err error)

func (*VersionScaleBalancer) UpdateScales

func (s *VersionScaleBalancer) UpdateScales(scales map[string]int) (b balance2.Balancer)

Jump to

Keyboard shortcuts

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