ewma

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	ErrHandler func(err error) (isErr bool)
}

Builder is ewma node builder.

func (*Builder) Build

Build create a weighted node.

type Node added in v2.1.2

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

Node is endpoint instance

func (*Node) Pick added in v2.1.2

func (n *Node) Pick() selector.DoneFunc

Pick pick a node.

func (*Node) PickElapsed added in v2.1.2

func (n *Node) PickElapsed() time.Duration

func (*Node) Raw added in v2.1.2

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

func (*Node) Weight added in v2.1.2

func (n *Node) Weight() (weight float64)

Weight is node effective weight.

Jump to

Keyboard shortcuts

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