generated from ConduitIO/conduit-connector-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paramgen_dest.go
115 lines (111 loc) · 4.33 KB
/
paramgen_dest.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// Code generated by paramgen. DO NOT EDIT.
// Source: github.com/ConduitIO/conduit-commons/tree/main/paramgen
package activemq
import (
"github.com/conduitio/conduit-commons/config"
)
const (
DestinationConfigDestination = "destination"
DestinationConfigDestinationHeader = "destinationHeader"
DestinationConfigDestinationType = "destinationType"
DestinationConfigPassword = "password"
DestinationConfigRecvTimeoutHeartbeat = "recvTimeoutHeartbeat"
DestinationConfigSendTimeoutHeartbeat = "sendTimeoutHeartbeat"
DestinationConfigTlsCaCertPath = "tls.caCertPath"
DestinationConfigTlsClientCertPath = "tls.clientCertPath"
DestinationConfigTlsClientKeyPath = "tls.clientKeyPath"
DestinationConfigTlsEnabled = "tls.enabled"
DestinationConfigTlsInsecureSkipVerify = "tls.insecureSkipVerify"
DestinationConfigUrl = "url"
DestinationConfigUser = "user"
)
func (DestinationConfig) Parameters() map[string]config.Parameter {
return map[string]config.Parameter{
DestinationConfigDestination: {
Default: "",
Description: "Destination is the name of the STOMP destination.",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
},
},
DestinationConfigDestinationHeader: {
Default: "",
Description: "DestinationHeader maps to the \"destination\" header in the STOMP SEND\nframe. Useful when using ANYCAST.",
Type: config.ParameterTypeString,
Validations: []config.Validation{},
},
DestinationConfigDestinationType: {
Default: "ANYCAST",
Description: "DestinationType is the routing type of the destination. It can be either\nANYCAST or MULTICAST, with ANYCAST being the default.\nMaps to the \"destination-type\" header in the STOMP SEND frame.",
Type: config.ParameterTypeString,
Validations: []config.Validation{},
},
DestinationConfigPassword: {
Default: "",
Description: "Password is the password to use when connecting to the broker.",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
},
},
DestinationConfigRecvTimeoutHeartbeat: {
Default: "2s",
Description: "RecvTimeoutHeartbeat specifies the minimum amount of time between the\nclient expecting to receive heartbeat notifications from the server",
Type: config.ParameterTypeDuration,
Validations: []config.Validation{},
},
DestinationConfigSendTimeoutHeartbeat: {
Default: "2s",
Description: "SendTimeoutHeartbeat specifies the maximum amount of time between the\nclient sending heartbeat notifications from the server",
Type: config.ParameterTypeDuration,
Validations: []config.Validation{},
},
DestinationConfigTlsCaCertPath: {
Default: "",
Description: "CaCertPath is the path to the CA certificate file.",
Type: config.ParameterTypeString,
Validations: []config.Validation{},
},
DestinationConfigTlsClientCertPath: {
Default: "",
Description: "ClientCertPath is the path to the client certificate file.",
Type: config.ParameterTypeString,
Validations: []config.Validation{},
},
DestinationConfigTlsClientKeyPath: {
Default: "",
Description: "ClientKeyPath is the path to the client key file.",
Type: config.ParameterTypeString,
Validations: []config.Validation{},
},
DestinationConfigTlsEnabled: {
Default: "false",
Description: "Enabled is a flag to enable or disable TLS.",
Type: config.ParameterTypeBool,
Validations: []config.Validation{},
},
DestinationConfigTlsInsecureSkipVerify: {
Default: "false",
Description: "InsecureSkipVerify is a flag to disable server certificate verification.",
Type: config.ParameterTypeBool,
Validations: []config.Validation{},
},
DestinationConfigUrl: {
Default: "",
Description: "URL is the URL of the ActiveMQ Artemis broker.",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
},
},
DestinationConfigUser: {
Default: "",
Description: "User is the username to use when connecting to the broker.",
Type: config.ParameterTypeString,
Validations: []config.Validation{
config.ValidationRequired{},
},
},
}
}