-
Notifications
You must be signed in to change notification settings - Fork 2
/
constant.go
81 lines (68 loc) · 1.88 KB
/
constant.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
package common
const (
DefaultConfRelPath = "./hpc.toml"
DefaultConfRootPath = "../conf"
)
const (
Title = "title"
NamespaceConf = "namespace"
ReConnectTime = "reConnectTime"
)
const (
JSONRPCNodes = "jsonRPC.nodes"
JSONRPCPorts = "jsonRPC.ports"
JSONRPCPriority = "jsonRPC.priority"
)
const (
WebSocketPorts = "webSocket.ports"
)
const (
GrpcPorts = "grpc.ports"
)
const (
PollingResendTime = "polling.resendTime"
PollingFirstPollingInterval = "polling.firstPollingInterval"
PollingFirstPollingTimes = "polling.firstPollingTimes"
PollingSecondPollingInterval = "polling.secondPollingInterval"
PollingSecondPollingTimes = "polling.secondPollingTimes"
)
const (
PrivacySendTcert = "privacy.sendTcert"
PrivacySDKcertPath = "privacy.sdkcertPath"
PrivacySDKcertPrivPath = "privacy.sdkcertPrivPath"
PrivacyUniquePubPath = "privacy.uniquePubPath"
PrivacyUniquePrivPath = "privacy.uniquePrivPath"
PrivacyCfca = "privacy.cfca"
)
const (
SecurityHttps = "security.https"
SecurityTlsca = "security.tlsca"
SecurityTlspeerCert = "security.tlspeerCert"
SecurityTlspeerPriv = "security.tlspeerPriv"
SecurityTlsDomain = "security.tlsDomain"
)
const (
LogOutputLevel = "log.log_level"
LogDir = "log.log_dir"
)
const (
MaxIdleConns = "transport.maxIdleConns"
MaxIdleConnsPerHost = "transport.maxIdleConnsPerHost"
DailTimeout = "transport.dailTimeout"
MaxLifetime = "transport.maxLifetime"
MaxStreamLifetime = "transport.maxStreamLifeTime"
MaxSendMsgSize = "transport.maxSendMsgSize"
MaxRecvMsgSize = "transport.maxRecvMsgSize"
)
const (
InspectorEnable = "inspector.enable"
InspectorAccountPath = "inspector.defaultAccount"
InspectorAccountType = "inspector.accountType"
)
const (
TxVersion = "tx.version"
)
const (
CurveNameBN254 = "bn254"
CurveNameSM9 = "sm9"
)