package
0.0.0-20240819213218-fbf997da8025
Repository: https://github.com/rrethy/horizontalreplicascaler.git
Documentation: pkg.go.dev

# Functions

KeyFor returns a key for the given strings.
NewWindow creates a new Window with the given rolling window type and options.
WithClock sets the clock used by the window.

# Constants

MaxRollingWindow is a rolling window that keeps the max value over the duration.
MinRollingWindow is a rolling window that keeps the min value over the duration.

# Structs

Window is a thread-safe struct that implements keyed rolling windows.

# Type aliases

Option is a function that configures a Window.
RollingWindowType is the type of rolling window.