Optional
eventsAn event emitter for ProviderEvents.
Optional
Readonly
hooksA provider hook exposes a mechanism for provider authors to register hooks to tap into various stages of the flag evaluation lifecycle. These hooks can be used to perform side effects and mutate the context for purposes of the provider. Provider hooks are not configured or controlled by the application author.
Readonly
metadataOptional
Readonly
runsRepresents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.
Optional
Readonly
statusOptional
initializeA function used to setup the provider. Called by the SDK after the provider is set if the provider's status is NOT_READY. When the returned promise resolves, the SDK fires the ProviderEvents.Ready event. If the returned promise rejects, the SDK fires the ProviderEvents.Error event. Use this function to perform any context-dependent setup within the provider.
Optional
context: EvaluationContextOptional
onOptional
onA handler function to reconcile changes made to the static context. Called by the SDK when the context is changed.
Returning a promise will put the provider in the RECONCILING state and emit the ProviderEvents.Reconciling event.
Return void will avoid putting the provider in the RECONCILING state and not emit the ProviderEvents.Reconciling event.
Resolve a boolean flag and its evaluation details.
Resolve a numeric flag and its evaluation details.
Resolve and parse an object flag and its evaluation details.
Resolve a string flag and its evaluation details.
Optional
trackTrack a user action or application state, usually representing a business objective or outcome.
Interface that providers must implement to resolve flag values for their particular backend or vendor.
Implementation for resolving all the required flag types must be defined.