Documentation
¶
Index ¶
- func CopyYamlConfig(cm *Config, cyg ConfigYGlobal, cyc ConfigYConnection, cyo ConfigYObjects)
- func GetPasswordFromFile(file string, removeFile bool) (string, error)
- func GetPasswordFromStdin(prompt string) string
- func InitConfig(cm *Config)
- func InitLog(cm Config)
- func PrintInfo(title string, stamp string, commit string, buildPlatform string)
- func ReadConfigFile(f string, cmy interface{}) error
- func VerifyConfig(cm *Config) error
- type Config
- type ConfigYConnection
- type ConfigYGlobal
- type ConfigYObjects
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyYamlConfig ¶
func CopyYamlConfig(cm *Config, cyg ConfigYGlobal, cyc ConfigYConnection, cyo ConfigYObjects)
func GetPasswordFromStdin ¶
func InitConfig ¶
func InitConfig(cm *Config)
func ReadConfigFile ¶
func VerifyConfig ¶
Types ¶
type Config ¶
type Config struct { ConfigFile string QMgrName string ReplyQ string MetaPrefix string TZOffsetString string Locale string MonitoredQueues string MonitoredQueuesFile string MonitoredChannels string MonitoredChannelsFile string MonitoredTopics string MonitoredTopicsFile string MonitoredSubscriptions string MonitoredSubscriptionsFile string QueueSubscriptionSelector string LogLevel string PollIntervalDuration time.Duration RediscoverDuration time.Duration CC mqmetric.ConnectionConfig // contains filtered or unexported fields }
Configuration attributes shared by all the monitor sample programs
type ConfigYConnection ¶
type ConfigYGlobal ¶
type ConfigYGlobal struct { UseObjectStatus bool `yaml:"useObjectStatus" default:true` UseResetQStats bool `yaml:"useResetQStats" default:false` UsePublications bool `yaml:"usePublications" default:true` LogLevel string `yaml:"logLevel"` MetaPrefix string PollInterval string `yaml:"pollInterval"` RediscoverInterval string `yaml:"rediscoverInterval"` TZOffset string `yaml:"tzOffset"` Locale string }
Click to show internal directories.
Click to hide internal directories.