package
1.4.11
Repository: https://github.com/hyperledger/firefly-common.git
Documentation: pkg.go.dev

# Functions

AddRootKey adds a root key, used to define the keys that are used within the core.
No description provided by the author
Get gets a configuration in raw form.
GetBool gets a configuration bool.
GetByteSize get a size in bytes.
No description provided by the author
GetDuration gets a configuration time duration with consistent semantics.
GetFloat64 gets a configuration uint.
GetInt gets a configuration uint.
GetInt64 gets a configuration int64.
GetKnownKeys gets the known keys.
GetObject gets a configuration map.
GetObjectArray gets an array of configuration maps.
GetString gets a configuration string.
GetStringSlice gets a configuration string array.
GetUint gets a configuration uint.
GetUint64 gets a configuration uint64.
No description provided by the author
No description provided by the author
ReadConfig initializes the config.
RootArray creates a new configuration array starting from the config root.
No description provided by the author
RootSection creates a new configuration section starting from the config root.
Set allows runtime setting of config (used in unit tests).
SetupLogging initializes logging.
No description provided by the author
Listens for changes to the configuration file configured in Viper.

# Variables

Lang is the language to use for translation.
LogCompress sets whether to compress backups.
LogFilename sets logging to file.
LogFilesize sets the size to roll logs at.
LogForceColor forces color to be enabled, even if we do not detect a TTY.
LogIncludeCodeInfo enables the report caller for including the calling file and line number.
LogJSONEnabled enables JSON formatted logs rather than text.
LogJSONFileField configures the JSON key containing the calling file.
LogJSONFuncField configures the JSON key containing the calling function.
LogJSONLevelField configures the JSON key containing the log level.
LogJSONMessageField configures the JSON key containing the log message.
LogJSONTimestampField configures the JSON key containing the timestamp of the log.
LogLevel is the logging level.
LogMaxAge sets the maximum age at which to roll.
LogMaxBackups sets the maximum number of old files to keep.
LogNoColor forces color to be disabled, even if we detect a TTY.
LogTimeFormat is a string format for timestamps.
LogUTC sets log timestamps to the UTC timezone.

# Interfaces

ArraySection represents an array of options at a particular layer in the config.
No description provided by the author
Section represents a section of the global configuration, at a nested point in the config hierarchy.

# Type aliases

RootKey key are the known configuration keys.