config

package
v5.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyYamlConfig

func CopyYamlConfig(cm *Config, cyg ConfigYGlobal, cyc ConfigYConnection, cyo ConfigYObjects)

func GetPasswordFromFile

func GetPasswordFromFile(file string, removeFile bool) (string, error)

func GetPasswordFromStdin

func GetPasswordFromStdin(prompt string) string

func InitConfig

func InitConfig(cm *Config)

func InitLog

func InitLog(cm Config)

func PrintInfo

func PrintInfo(title string, stamp string, commit string, buildPlatform string)

func ReadConfigFile

func ReadConfigFile(f string, cmy interface{}) error

func VerifyConfig

func VerifyConfig(cm *Config) error

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 ConfigYConnection struct {
	QueueManager string `yaml:"queueManager"`
	User         string
	Client       bool `yaml:"clientConnection"`
	Password     string
	ReplyQueue   string `yaml:"replyQueue"`
	CcdtUrl      string `yaml:"ccdtUrl"`
	ConnName     string `yaml:"connName"`
	Channel      string `yaml:"channel"`
}

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
}

type ConfigYObjects

type ConfigYObjects struct {
	Queues                    []string
	QueueSubscriptionSelector []string `yaml:"queueSubscriptionSelector"`
	Channels                  []string
	Topics                    []string
	Subscriptions             []string
	ShowInactiveChannels      bool `yaml:"showInactiveChannels"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL