config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 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 SwitchCondition

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

func NewSwitchCondition

func NewSwitchCondition(config SwitchConfig) (*SwitchCondition, error)

func (*SwitchCondition) GetConfig

func (s *SwitchCondition) GetConfig() SwitchConfig

func (*SwitchCondition) Register

func (s *SwitchCondition) Register() <-chan struct{}

func (*SwitchCondition) UpdateConfig

func (s *SwitchCondition) UpdateConfig(sc SwitchConfig) error

type SwitchConfig

type SwitchConfig struct {
	PercentThreshold int
	TimeThreshold    time.Duration
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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