-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.go
36 lines (25 loc) · 1.17 KB
/
metadata.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
package rocketmq
type Metadata struct {
// sdk proto (http or tcp),default tcp
AccessProto string `json:"accessProto,omitempty"`
// rocketmq Credentials
AccessKey string `json:"accessKey,omitempty"`
// rocketmq Credentials
SecretKey string `json:"secretKey,omitempty"`
// rocketmq's endpoint, optional, just for http proto
Endpoint string `json:"endpoint,omitempty"`
// rocketmq's name server, optional
NameServer string `json:"nameServer,omitempty"`
// rocketmq's namespace, optional
InstanceId string `json:"instanceId,omitempty"`
// consumer group for rocketmq's subscribers, suggested to provide
ConsumerGroup string `json:"consumerGroup,omitempty"`
// consumer group for rocketmq's subscribers, suggested to provide, just for http proto
ConsumerBatchSize int `json:"consumerBatchSize,string,omitempty"`
// consumer group for rocketmq's subscribers, suggested to provide, just for cgo proto
ConsumerThreadNums int `json:"consumerThreadNums,string,omitempty"`
// rocketmq's name server domain, optional
NameServerDomain string `json:"nameServerDomain,omitempty"`
// retry times to connect rocketmq's broker, optional
Retries int `json:"retries,string,omitempty"`
}