dwrr

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

dwrr is Dynamic Weighted Round Robin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func (*Node) Address

func (n *Node) Address() string

func (*Node) Meta

func (n *Node) Meta() selector.Meta

func (*Node) Statistics

func (n *Node) Statistics() selector.Statistics

func (*Node) Weight

func (n *Node) Weight() float64

type Selector

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

func NewSelector

func NewSelector(opts ...SelectorOption) *Selector

type SelectorOption

type SelectorOption func(*Selector)

func WithServiceName

func WithServiceName(name string) SelectorOption

func WithStep

func WithStep(step float64) SelectorOption

Jump to

Keyboard shortcuts

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