Documentation ¶
Overview ¶
Package config contains config parser code that is shared between front- and back-end parts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DegitxConfig ¶
type DegitxConfig struct { Version string `yaml:"version"` Keys *Keys `yaml:"keys"` LogConfig *logging.LogConfig `yaml:"logging"` }
DegitxConfig is a config for both front- and back-end apps.
func (*DegitxConfig) FromFile ¶
func (config *DegitxConfig) FromFile(fileName string) error
FromFile parses yaml file.
func (*DegitxConfig) FromFiles ¶
func (config *DegitxConfig) FromFiles(paths ...string) error
FromFiles ensures that at least one file by given paths exist and parses its yaml content.
Click to show internal directories.
Click to hide internal directories.