dynamicconfigfx

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(fx.Provide(New))

Module provides fx options for dynamic config initialization

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	Cfg           config.Config
	Logger        log.Logger
	MetricsClient metrics.Client
	RootDir       string `name:"root-dir"`

	Lifecycle fx.Lifecycle
}

Params required to build a new dynamic config.

type Result added in v1.3.1

type Result struct {
	fx.Out

	Client                   dynamicconfig.Client
	Collection               *dynamicconfig.Collection
	OperationalConfigStore   configstore.Client        `name:"operational-config-store"`
	OperationalDynamicConfig *dynamicconfig.Collection `name:"operational-dynamic-config"`
}

func New

func New(p Params) (Result, error)

New creates dynamicconfig.Client from the configuration. NOP client is used only when dynamic config is not configured at all or explicitly set to "nop". Any failure to initialise an explicitly configured client is returned.

Jump to

Keyboard shortcuts

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