configurator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurator

type Configurator struct {
	// contains filtered or unexported fields
}

Configurator configurator, based on viper integration

func NewConfigurator

func NewConfigurator(filename string) (*Configurator, error)

NewConfigurator new a configurator

func (*Configurator) Add

func (config *Configurator) Add(node string, impl IConfig)

Add add a configuration node, and for each additional node, a top-level node with the same name as the node is required in the configuration file

type IConfig

type IConfig interface {
	OnChange(viper *viper.Viper)
}

IConfig Configurator interface

Jump to

Keyboard shortcuts

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