diff options
Diffstat (limited to 'plugins/config/plugin.go')
-rwxr-xr-x | plugins/config/plugin.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/config/plugin.go b/plugins/config/plugin.go index a01a32b3..09fd35bb 100755 --- a/plugins/config/plugin.go +++ b/plugins/config/plugin.go @@ -19,6 +19,8 @@ type Viper struct { // user defined Flags in the form of <option>.<key> = <value> // which overwrites initial config key Flags []string + + CommonConfig *General } // Inits config provider. @@ -111,6 +113,11 @@ func (v *Viper) Has(name string) bool { return v.viper.IsSet(name) } +// Returns common config parameters +func (v *Viper) GetCommonConfig() *General { + return v.CommonConfig +} + func parseFlag(flag string) (string, string, error) { const op = errors.Op("parse_flag") if !strings.Contains(flag, "=") { |