pool

package
v2.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package pool provides an application load balancer pool

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool interface {
	// Healthy returns the full list of Healthy Targets
	Healthy() []http.Handler
	// SetHealthy sets the Healthy Targets List
	SetHealthy([]http.Handler)
	// Stop stops the pool and its health checker goroutines
	Stop()
}

Pool defines the interface for a load balancer pool

func New

func New(targets []*Target, healthyFloor int) Pool

New returns a new Pool

type Target

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

Target defines an alb pool target

func NewTarget

func NewTarget(handler http.Handler, hcStatus *healthcheck.Status) *Target

NewTarget returns a new Target using the provided inputs

Jump to

Keyboard shortcuts

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