experiments

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package experiments provides a global "Feature Flag" facility for circuit-breaking pre-GA code.

The intent is to provide a means of selecting a flavor of executable at boot; not to toggle experiments on and off. Once settings are loaded from the environment variable experiments.Env, they are fixed.

Index

Constants

View Source
const Env = "YTTEXPERIMENTS"

Env is the OS environment variable with comma-separated names of experiments to enable.

Variables

This section is empty.

Functions

func GetEnabled

func GetEnabled() []string

GetEnabled reports the name of all enabled experiments.

An experiment is enabled by including its name in the OS environment variable named Env.

func ResetForTesting

func ResetForTesting()

ResetForTesting clears the experiment flag settings, forcing reload from the Env on next use.

This is for testing purposes only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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