service

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 39 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 eval.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 eval.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

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

Jump to

Keyboard shortcuts

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