pool

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delta

type Delta struct {
	// Create defines the number of instances to spin up in the pool.
	// Value is positive.
	Create int64

	// Delete defines the number of instances to shoot out of the pool.
	// Value is positive.
	Delete int64
}

func NewDelta

func NewDelta(newMin, newMax, numClaimed, numPooled int64) (d Delta)

NewDelta computes the operations to be performed on a challenge update that resizes the pool.

Expects all integers to be positive.

Jump to

Keyboard shortcuts

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