Documentation ¶
Overview ¶
Package options provides necessary interfaces and implementations for implementing evaluator configuration options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(interfaces.Evaluator) error
Option is a function that takes an evaluator and does some unspecified operation to it, returning an error in case of failure.
func WithFlagsClient ¶
func WithFlagsClient(client openfeature.IClient) Option
WithFlagsClient provides the evaluation engine with an `openfeature` client. In case the given evaluator dows not support feature flags, WithFlagsClient silently ignores the error.
type SupportsFlags ¶
type SupportsFlags interface {
SetFlagsClient(client openfeature.IClient) error
}
SupportsFlags interface advertises the fact that the implementer can use an `openfeature` client to check for flags being set.
Click to show internal directories.
Click to hide internal directories.