Help us shape the future of Go! Take the 2026 Go Developer Survey

configuration

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	Logger logger.Logger
	// contains filtered or unexported fields
}

Registry is an interface for a component that returns registered configuration store implementations.

var DefaultRegistry *Registry = NewRegistry()

DefaultRegistry is the singleton with the registry.

func NewRegistry

func NewRegistry() *Registry

NewRegistry is used to create configuration store registry.

func (*Registry) Create

func (s *Registry) Create(name, version, logName string) (configuration.Store, error)

func (*Registry) RegisterComponent added in v1.9.0

func (s *Registry) RegisterComponent(componentFactory func(logger.Logger) configuration.Store, names ...string)

Jump to

Keyboard shortcuts

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