options

package
v0.0.69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL