Documentation
¶
Index ¶
- Constants
- func ContextKeyForID(id string) string
- func GetBool(ldClient *ld.LDClient, principal authentication.Principal, key string, ...) (bool, error)
- func LDContext(principal authentication.Principal) ldcontext.Context
- func NewLaunchDarklyClient(config Config) (*ld.LDClient, error)
- func Principal(ctx context.Context) ldcontext.Context
- type Config
Constants ¶
View Source
const DowngradeAssessmentTeamKey = "downgradeAssessmentTeam"
DowngradeAssessmentTeamKey is the Flag Key in LaunchDarkly for downgrading assessment team users
View Source
const DowngradeNonCMSKey = "downgradeNonCMS"
DowngradeNonCMSKey is the Flag Key in LaunchDarkly for downgrading users with the NON-CMS job code
Variables ¶
This section is empty.
Functions ¶
func ContextKeyForID ¶
ContextKeyForID generates a context key from an ID we should not be using bare EUA IDs as identifiers to LaunchDarkly (per Jimil/ISSO), so we use a cryptographically secure one-way hash of the EUA ID as "key" for the LD Context object.
func GetBool ¶
func GetBool(ldClient *ld.LDClient, principal authentication.Principal, key string, defaultValue bool) (bool, error)
GetBool fetches a bool from Launch Darkly
func LDContext ¶
func LDContext(principal authentication.Principal) ldcontext.Context
LDContext returns the context from launch darkly for a given principal
func NewLaunchDarklyClient ¶
NewLaunchDarklyClient returns a client backed by Launch Darkly
Types ¶
Click to show internal directories.
Click to hide internal directories.