Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSettingNotFound indicates that a setting does not exist ErrSettingNotFound = errors.New("[Application] setting not found") // ErrInvalidSettingType returned when types of value and setting variable mismatch ErrInvalidSettingType = errors.New("[Application] wrong variable type") )
Functions ¶
func DefaultConfig ¶
DefaultConfig returns an on-chain config instance with all reference fields initialized to non-nil values (this is needed for the reflection code in SetConfigSetting to work, for now...)
func SetConfigSetting ¶
SetConfigSetting sets value of a config field. The key can consist of one or two elements, e.g. "fieldA", "sectionA.fieldB". The value string should be parsable into a string, integer, or a BigUInt.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.