configuration

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT 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