View Source OpenFeature.Hook (OpenFeature v0.1.1)

OpenFeature Hook struct

Summary

Types

Link to this type

after_hook()

View Source (since 0.1.0)
@type after_hook() ::
  (OpenFeature.HookContext.t(),
   OpenFeature.EvaluationDetails.t(),
   hook_hints() ->
     any())
  | nil
Link to this type

before()

View Source (since 0.1.0)
@type before() ::
  (OpenFeature.HookContext.t(), hook_hints() -> OpenFeature.Types.context())
  | nil
@type error() :: (OpenFeature.HookContext.t(), any(), hook_hints() -> any()) | nil
Link to this type

finally()

View Source (since 0.1.0)
@type finally() :: (OpenFeature.HookContext.t(), hook_hints() -> any()) | nil
Link to this type

hook_hints()

View Source (since 0.1.0)
@type hook_hints() :: %{optional(binary()) => any()}
@type t() :: %OpenFeature.Hook{
  after: after_hook(),
  before: before(),
  error: error(),
  finally: finally()
}