module OpenFeature
Defined in:
openfeature.cropenfeature/client.cr
openfeature/error.cr
openfeature/evaluation.cr
openfeature/event.cr
openfeature/hook.cr
openfeature/provider.cr
openfeature/provider/noop.cr
openfeature/types.cr
Constant Summary
-
DEFAULT_PROVIDER_DOMAIN =
"" -
VERSION =
"0.1.0"
Class Method Summary
- .add_hook(&h : Hook)
- .add_proc_hook(*, before : ProcStageHook | Nil = nil, after : ProcStageHook | Nil = nil, error : ProcStageHook | Nil = nil, finally : ProcStageHook | Nil = nil)
- .client(domain : String = DEFAULT_PROVIDER_DOMAIN, *, context ectx : EvaluationContext | Nil = nil) : Client
- .global_context : EvaluationContext | Nil
- .global_context=(context ctx : EvaluationContext)
- .hooks
- .provider(domain : String = DEFAULT_PROVIDER_DOMAIN) : Provider
- .provider=(provider : Provider)
- .set_provider(provider : Provider, domain : String = DEFAULT_PROVIDER_DOMAIN)
-
.transaction_context : EvaluationContext | Nil
retuerns the current transaction context or a new context without content
- .transaction_context=(ctx : EvaluationContext)
Class Method Detail
def self.add_proc_hook(*, before : ProcStageHook | Nil = nil, after : ProcStageHook | Nil = nil, error : ProcStageHook | Nil = nil, finally : ProcStageHook | Nil = nil)
#
def self.client(domain : String = DEFAULT_PROVIDER_DOMAIN, *, context ectx : EvaluationContext | Nil = nil) : Client
#
def self.transaction_context : EvaluationContext | Nil
#
retuerns the current transaction context or a new context without content