service

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ReadinessProbe             ReadinessProbe
	Port                       uint16
	ManagementPort             uint16
	ServiceName                string
	CertPath                   string
	KeyPath                    string
	SocketPath                 string
	CORS                       []string
	Options                    []connect.HandlerOption
	ContextValues              map[string]any
	HeaderToContextKeyMappings map[string]string
	StreamDeadline             time.Duration
}

type IFlagEvaluationService added in v0.4.5

type IFlagEvaluationService interface {
	Serve(ctx context.Context, svcConf Configuration) error
	Notify(n Notification)
	Shutdown()
}

IFlagEvaluationService implementations define handlers for a particular transport, which call the IEvaluator implementation.

type IKubeSyncService added in v0.4.5

type IKubeSyncService interface {
	Serve(ctx context.Context, svcConf Configuration) error
}

IFlagEvaluationService implementations define handlers for a particular transport, which call the IEvaluator implementation.

type Notification

type Notification struct {
	Type NotificationType       `json:"type"`
	Data map[string]interface{} `json:"data"`
}

type NotificationType

type NotificationType string
const (
	ConfigurationChange NotificationType = "configuration_change"
	Shutdown            NotificationType = "provider_shutdown"
	ProviderReady       NotificationType = "provider_ready"
	KeepAlive           NotificationType = "keep_alive"
)

type ReadinessProbe

type ReadinessProbe func() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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