config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider added in v0.1.0

type Provider interface {

	// GetConfigByName returns configuration value by provided key or empty string if does not exist
	GetConfigByName(string) string

	// GetConfigWithDefaultValue returns configuration value by provided key or default value if does not exist
	GetConfigWithDefaultValue(string, string) string

	// OverrideWithValue allows to change programatically configuration by key
	OverrideWithValue(string, string)
}

Provider is interface for configuration loaders that can read config from different sources

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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