service

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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

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

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

NewConnectService creates a ConnectService with provided parameters

func (*ConnectService) AddMiddleware

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

func (s *ConnectService) Shutdown()

type FlagEvaluationService

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

func NewFlagEvaluationService

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

NewFlagEvaluationService creates a FlagEvaluationService with provided parameters

func (*FlagEvaluationService) EventStream

func (*FlagEvaluationService) ResolveAll

nolint:dupl,funlen

func (*FlagEvaluationService) ResolveInt

type OldFlagEvaluationService

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

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

NewOldFlagEvaluationService creates a OldFlagEvaluationService with provided parameters

func (*OldFlagEvaluationService) EventStream

func (*OldFlagEvaluationService) ResolveAll

nolint:dupl

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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