-
Notifications
You must be signed in to change notification settings - Fork 0
/
mq.go
54 lines (44 loc) · 1.67 KB
/
mq.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package geneos
import "encoding/xml"
type MQChannelPlugin struct {
XMLName xml.Name `xml:"mq-channel" json:"-" yaml:"-"`
Connection *MQConnection `xml:"connection,omitempty"`
QueueManager *Value `xml:"queueManager"`
Channels []MQChannel `xml:"channels>channel,omitempty"`
Columns []string `xml:"columns>column,omitempty"`
}
func (p *MQChannelPlugin) String() string {
return p.XMLName.Local
}
type MQQInfoPlugin struct {
XMLName xml.Name `xml:"mq-qinfo" json:"-" yaml:"-"`
Queuemanager *Value `xml:"queueManager"`
MQServer *SingleLineStringVar `xml:"mqServer,omitempty"`
QueueName *SingleLineStringVar `xml:"queueName"`
HideUnavailable *SingleLineStringVar `xml:"hideUnavailable,omitempty"`
}
func (p *MQQInfoPlugin) String() string {
return p.XMLName.Local
}
type MQQueuePlugin struct {
XMLName xml.Name `xml:"mq-queue" json:"-" yaml:"-"`
Connection *MQConnection `xml:"connection,omitempty"`
QueueManager *Value `xml:"queueManager"`
Queues []MQQueue `xml:"queues>queue,omitempty"`
Columns []string `xml:"columns>column,omitempty"`
}
func (p *MQQueuePlugin) String() string {
return p.XMLName.Local
}
type MQConnection struct {
MQServer *SingleLineStringVar `xml:"mqServer,omitempty"`
MQChannelTable *SingleLineStringVar `xml:"mqChannelTable,omitempty"`
}
type MQChannel struct {
Matches *SingleLineStringVar `xml:"matches,omitempty"`
StartsWith *SingleLineStringVar `xml:"startsWith,omitempty"`
}
type MQQueue struct {
Matches *SingleLineStringVar `xml:"matches,omitempty"`
StartsWith *SingleLineStringVar `xml:"startsWith,omitempty"`
}