runtime

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MetricExporter    string
	ManagementPort    uint16
	OfrepServicePort  uint16
	OtelCollectorURI  string
	ServiceCertPath   string
	ServiceKeyPath    string
	ServicePort       uint16
	ServiceSocketPath string
	SyncServicePort   uint16

	SyncProviders []sync.SourceConfig
	CORS          []string
}

Config is the configuration structure derived from startup arguments.

type Runtime

type Runtime struct {
	Evaluator     evaluator.IEvaluator
	Logger        *logger.Logger
	FlagSync      flagsync.ISyncService
	OfrepService  ofrep.IOfrepService
	Service       service.IFlagEvaluationService
	ServiceConfig service.Configuration
	SyncImpl      []sync.ISync
	// contains filtered or unexported fields
}

func FromConfig

func FromConfig(logger *logger.Logger, version string, config Config) (*Runtime, error)

FromConfig builds a runtime from startup configurations nolint: funlen

func (*Runtime) Start

func (r *Runtime) Start() error

Jump to

Keyboard shortcuts

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