configuration

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Name          string
	FactoryMethod func() configuration.Store
}

func New

func New(name string, factoryMethod func() configuration.Store) Configuration

type Registry

type Registry interface {
	Register(components ...Configuration)
	Create(name, version string) (configuration.Store, error)
}

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

func NewRegistry

func NewRegistry() Registry

NewRegistry is used to create configuration store registry.

Jump to

Keyboard shortcuts

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