degradation

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DegradationConfig

type DegradationConfig struct {
	Enable     bool `json:"enable"`
	Percentage int  `json:"percentage"`
}

func (*DegradationConfig) DeepCopy

func (c *DegradationConfig) DeepCopy() iface.ConfigValueItem

DeepCopy returns a copy of the current DegradationConfig

func (*DegradationConfig) EqualsTo

func (c *DegradationConfig) EqualsTo(other iface.ConfigValueItem) bool

EqualsTo returns true if the current DegradationConfig equals to the other DegradationConfig

type DegradationContainer

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

DegradationContainer is a wrapper for DegradationConfig

func NewDegradationContainer

func NewDegradationContainer() *DegradationContainer

func (*DegradationContainer) GetAclRule

func (c *DegradationContainer) GetAclRule() acl.RejectFunc

func (*DegradationContainer) NotifyPolicyChange

func (c *DegradationContainer) NotifyPolicyChange(cfg *DegradationConfig)

NotifyPolicyChange to receive policy when it changes

Jump to

Keyboard shortcuts

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