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
Click to show internal directories.
Click to hide internal directories.