/
config.go
28 lines (26 loc) · 1.22 KB
/
config.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
package cics
type ConnectionConfig struct {
Hostname string `mapstructure:"hostname"`
Port int `mapstructure:"port"`
Timeout int `mapstructure:"timeout"`
UserName string `mapstructure:"username"`
Password string `mapstructure:"password"`
ServerName string `mapstructure:"servername"`
ProxyPort int `mapstructure:"proxyport"`
InsecureSkipVerify bool `mapstructure:"skv"`
UseProxy bool `mapstructure:"useproxy"`
MaxTotal int `mapstructure:"connectionnumber"`
MaxIdle int `mapstructure:"maxidle"`
MinIdle int `mapstructure:"minidle"`
MaxIdleLifeTime int `mapstructure:"maxidlelifetime"`
SSLRootCaCertificate string `mapstructure:"sslrootcacertificate"`
SSLClientKey string `mapstructure:"sslclientkey"`
SSLClientCertificate string `mapstructure:"sslclientcertificate"`
}
type RoutineConfig struct {
Name string `mapstructure:"name"`
ChannelName string `mapstructure:"channelname"`
ProgramName string `mapstructure:"programname"`
CicsGatewayName string `mapstructure:"cicsgatewayname"`
TransId string `mapstructure:"transid"`
}