service

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorPrefix = "FlagdError:"
)

Variables

This section is empty.

Functions

func WithJSON added in v0.6.3

func WithJSON(marshal protojson.MarshalOptions, unmarshal protojson.UnmarshalOptions) connect.Option

WithJSON customizes a connect-go Client or Handler's JSON by exposing MarshalOptions, and UnmarshalOptions See: https://github.com/connectrpc/connect-go/blob/main/codec.go Heavily inspired by https://github.com/akshayjshah/connectproto

Types

type ConnectService

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

func NewConnectService added in v0.5.2

func NewConnectService(
	logger *logger.Logger, evaluator evaluator.IEvaluator, mRecorder *telemetry.MetricsRecorder,
) *ConnectService

NewConnectService creates a ConnectService with provided parameters

func (*ConnectService) AddMiddleware added in v0.5.0

func (s *ConnectService) AddMiddleware(mw middleware.IMiddleware)

func (*ConnectService) Notify

func (s *ConnectService) Notify(n service.Notification)

Notify emits change event notifications for subscriptions

func (*ConnectService) Serve

func (s *ConnectService) Serve(ctx context.Context, svcConf service.Configuration) error

Serve serves services with provided configuration options

func (*ConnectService) Shutdown added in v0.6.0

func (s *ConnectService) Shutdown()

type FlagEvaluationService added in v0.5.0

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

func NewFlagEvaluationService added in v0.5.0

func NewFlagEvaluationService(log *logger.Logger,
	eval evaluator.IEvaluator,
	eventingCfg *eventingConfiguration,
	metricsRecorder *telemetry.MetricsRecorder,
) *FlagEvaluationService

NewFlagEvaluationService creates a FlagEvaluationService with provided parameters

func (*FlagEvaluationService) EventStream added in v0.5.0

func (*FlagEvaluationService) ResolveAll added in v0.5.0

nolint:dupl,funlen

func (*FlagEvaluationService) ResolveBoolean added in v0.5.0

func (*FlagEvaluationService) ResolveFloat added in v0.5.0

func (*FlagEvaluationService) ResolveInt added in v0.5.0

func (*FlagEvaluationService) ResolveObject added in v0.5.0

func (*FlagEvaluationService) ResolveString added in v0.5.0

type OldFlagEvaluationService added in v0.7.3

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

OldFlagEvaluationService implements the methods required for the soon-to-be deprecated flag evaluation schema this can be removed as a part of https://github.com/open-feature/flagd/issues/1088

func NewOldFlagEvaluationService added in v0.7.3

func NewOldFlagEvaluationService(log *logger.Logger,
	eval evaluator.IEvaluator, eventingCfg *eventingConfiguration, metricsRecorder *telemetry.MetricsRecorder,
) *OldFlagEvaluationService

NewOldFlagEvaluationService creates a OldFlagEvaluationService with provided parameters

func (*OldFlagEvaluationService) EventStream added in v0.7.3

func (*OldFlagEvaluationService) ResolveAll added in v0.7.3

nolint:dupl

func (*OldFlagEvaluationService) ResolveBoolean added in v0.7.3

func (*OldFlagEvaluationService) ResolveFloat added in v0.7.3

func (*OldFlagEvaluationService) ResolveInt added in v0.7.3

func (*OldFlagEvaluationService) ResolveObject added in v0.7.3

func (*OldFlagEvaluationService) ResolveString added in v0.7.3

Jump to

Keyboard shortcuts

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