mq

package
v0.0.0-...-acabe94 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YES = 1
	NO  = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MqConfiguration

type MqConfiguration struct {
	QueueManager  string `yaml:"queueManager"`
	User          string
	Password      string
	ConnName      string `yaml:"connName"`
	Channel       string
	SSLCipherSpec string `yaml:"sslCipherSpec"`
	KeyRepository string `yaml:"keyRepository"`
	Timeout       *time.Duration
	Queues        []string
}

type MqConnection

type MqConnection struct {
	// contains filtered or unexported fields
}

func NewMqConnection

func NewMqConnection(logger log.Logger, cfgFilename string) (*MqConnection, error)

func (*MqConnection) Close

func (c *MqConnection) Close()

func (*MqConnection) Queues

func (c *MqConnection) Queues() []collector.Queue

func (*MqConnection) Timeout

func (c *MqConnection) Timeout() time.Duration

type MqQueue

type MqQueue struct {
	// contains filtered or unexported fields
}

func (*MqQueue) Read

func (q *MqQueue) Read() (collector.QueueMetrics, error)

Jump to

Keyboard shortcuts

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