diff options
author | Julien Dessaux | 2020-01-30 17:44:42 +0100 |
---|---|---|
committer | Julien Dessaux | 2020-01-30 17:44:42 +0100 |
commit | bea8e5aba8fc84dcb0c980c3948ed6d78719dded (patch) | |
tree | f84f2722b98f4c2996b64ce24ac322c9709617ed /config/config.go | |
parent | Document where C structures for state file header and job entry come from (diff) | |
download | bareos-zabbix-check-bea8e5aba8fc84dcb0c980c3948ed6d78719dded.tar.gz bareos-zabbix-check-bea8e5aba8fc84dcb0c980c3948ed6d78719dded.tar.bz2 bareos-zabbix-check-bea8e5aba8fc84dcb0c980c3948ed6d78719dded.zip |
Big rafactoring : code split in several modules and some other best practices
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go new file mode 100644 index 0000000..262a5d2 --- /dev/null +++ b/config/config.go @@ -0,0 +1,21 @@ +package config + +// Config object +type Config struct { + verbose bool + quiet bool + stateFile string + workDir string +} + +// Verbose gets the verbose field of the configuration +func (config *Config) Verbose() bool { return config.verbose } + +// Quiet gets the quiet field of the configuration +func (config *Config) Quiet() bool { return config.quiet } + +// StateFile gets the stateFile field of the configuration +func (config *Config) StateFile() string { return config.stateFile } + +// WorkDir gets the workDir field of the configuration +func (config *Config) WorkDir() string { return config.workDir } |