roundrobin

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 4 Imported by: 3

Documentation

Overview

Package roundrobin provides round robin utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoundRobin

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

RoundRobin defines the roundbin.

func NewRoundRobin

func NewRoundRobin(interval time.Duration) *RoundRobin

NewRoundRobin creates a new RoundRobin.

func (*RoundRobin) Select

func (rr *RoundRobin) Select(serviceName string, list []*registry.Node,
	opt ...loadbalance.Option) (*registry.Node, error)

Select implements loadbalance.LoadBalancer.

Jump to

Keyboard shortcuts

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