process

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Host              any
	Port              any
	Selector          string
	TLSEnabled        bool
	OfflineFlagSource string
}

type InProcess

type InProcess struct {
	// contains filtered or unexported fields
}

InProcess service implements flagd flag evaluation in-process. Flag configurations are obtained from supported sources.

func NewInProcessService

func NewInProcessService(cfg Configuration) *InProcess

func (*InProcess) EventChannel

func (i *InProcess) EventChannel() <-chan of.Event

func (*InProcess) Init

func (i *InProcess) Init() error

func (*InProcess) ResolveBoolean

func (i *InProcess) ResolveBoolean(ctx context.Context, key string, defaultValue bool,
	evalCtx map[string]interface{}) of.BoolResolutionDetail

func (*InProcess) ResolveFloat

func (i *InProcess) ResolveFloat(ctx context.Context, key string, defaultValue float64,
	evalCtx map[string]interface{}) of.FloatResolutionDetail

func (*InProcess) ResolveInt

func (i *InProcess) ResolveInt(ctx context.Context, key string, defaultValue int64,
	evalCtx map[string]interface{}) of.IntResolutionDetail

func (*InProcess) ResolveObject

func (i *InProcess) ResolveObject(ctx context.Context, key string, defaultValue interface{},
	evalCtx map[string]interface{}) of.InterfaceResolutionDetail

func (*InProcess) ResolveString

func (i *InProcess) ResolveString(ctx context.Context, key string, defaultValue string,
	evalCtx map[string]interface{}) of.StringResolutionDetail

func (*InProcess) Shutdown

func (i *InProcess) Shutdown()

Jump to

Keyboard shortcuts

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