loadbalance

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter func(info balancer.PickInfo, addr resolver.Address) bool

Filter is a function type that takes balancer.PickInfo and resolver.Address and returns a bool indicating whether the address should be included.

type GroupFilterBuilder

type GroupFilterBuilder struct{}

GroupFilterBuilder constructs a Filter based on group attributes.

func (GroupFilterBuilder) Build

func (g GroupFilterBuilder) Build() Filter

Build returns a Filter function that filters resolver.Addresses based on the 'group' attribute in the context of balancer.PickInfo.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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