featureflags

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAndToggle

func SetAndToggle(
	flags *config.FeatureFlags,
	a *algolia.Client,
	h string,
	email string,
	log hclog.Logger) map[string]bool

SetAndToggle sets and toggle feature flags.

Types

type FeatureFlagsObj

type FeatureFlagsObj struct {
	// ObjectID is "featureFlags"
	ObjectID string `json:"objectID,omitempty"`
	// FeatureFlagUserEmails is the map of each feature flag
	// with a set of user emails that should have
	// access to the flag. The map looks as follows:
	// {
	//   "createWorkflow": [
	//      "username1@example.com",
	//      "username2@example.com"
	//   ]
	// }
	FeatureFlagUserEmails map[string][]string `json:"featureFlagUserEmails"`
}

FeatureFlagsObj is a record in Algolia with "featureFlags" as object ID and a map of each feature flag with a set of user emails that should have access to the flag

Jump to

Keyboard shortcuts

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