features

package
v0.17.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature string

Feature is a string representation of a set of enabled/disabled features.

const (
	// PartialResponse feature enables response filtering
	PartialResponse Feature = "PartialResponse"
)

type FeatureGate

type FeatureGate interface {
	// Get returns true if the key is enabled.
	Get(f Feature) *atomic.Bool
	// Set parses and stores flag gates for known features
	// from a string like feature1=true,feature2=false,...
	Set(value string) error
	// String returns a string representation of the known features
	// in the following form feature1=true,feature2=false,...
	String() string
	// Enable will enable a feature
	Enable(f Feature)
	// Disable will disable a feature
	Disable(f Feature)
}

FeatureGate provides a interface to manipulate features.

func NewFeatureGate

func NewFeatureGate() FeatureGate

NewFeatureGate creates a new FeatureGate

Jump to

Keyboard shortcuts

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