rulecooldown

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleCooldown

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

func NewRuleCooldown

func NewRuleCooldown(config RuleCooldownConfig) *RuleCooldown

func (*RuleCooldown) ShouldCooldown

func (rc *RuleCooldown) ShouldCooldown(uniqueID string, containerID string, ruleID string) (bool, int)

type RuleCooldownConfig

type RuleCooldownConfig struct {
	CooldownDuration   time.Duration `mapstructure:"ruleCooldownDuration"`
	CooldownAfterCount int           `mapstructure:"ruleCooldownAfterCount"`
	OnProfileFailure   bool          `mapstructure:"ruleCooldownOnProfileFailure"`
	MaxSize            int           `mapstructure:"ruleCooldownMaxSize"`
}

Jump to

Keyboard shortcuts

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