|
3 | 3 |
|
4 | 4 | package config
|
5 | 5 |
|
6 |
| -// #nosec G101 |
| 6 | +// the HTTPWriteTimeoutKey was moved here so that it would not generate the |
| 7 | +// false-positive linter error "G101: Potential hardcoded credentials" when running golangci-lint. |
| 8 | +const HTTPWriteTimeoutKey = "http-write-timeout" // #nosec G101 |
| 9 | + |
7 | 10 | const (
|
8 |
| - DataDirKey = "data-dir" |
9 |
| - ConfigFileKey = "config-file" |
10 |
| - ConfigContentKey = "config-file-content" |
11 |
| - ConfigContentTypeKey = "config-file-content-type" |
12 |
| - VersionKey = "version" |
13 |
| - GenesisFileKey = "genesis-file" |
14 |
| - GenesisFileContentKey = "genesis-file-content" |
15 |
| - NetworkNameKey = "network-id" |
16 |
| - ACPSupportKey = "acp-support" |
17 |
| - ACPObjectKey = "acp-object" |
18 |
| - TxFeeKey = "tx-fee" |
19 |
| - CreateAssetTxFeeKey = "create-asset-tx-fee" |
20 |
| - CreateSubnetTxFeeKey = "create-subnet-tx-fee" |
21 |
| - TransformSubnetTxFeeKey = "transform-subnet-tx-fee" |
22 |
| - CreateBlockchainTxFeeKey = "create-blockchain-tx-fee" |
23 |
| - AddPrimaryNetworkValidatorFeeKey = "add-primary-network-validator-fee" |
24 |
| - AddPrimaryNetworkDelegatorFeeKey = "add-primary-network-delegator-fee" |
25 |
| - AddSubnetValidatorFeeKey = "add-subnet-validator-fee" |
26 |
| - AddSubnetDelegatorFeeKey = "add-subnet-delegator-fee" |
27 |
| - UptimeRequirementKey = "uptime-requirement" |
28 |
| - MinValidatorStakeKey = "min-validator-stake" |
29 |
| - MaxValidatorStakeKey = "max-validator-stake" |
30 |
| - MinDelegatorStakeKey = "min-delegator-stake" |
31 |
| - MinDelegatorFeeKey = "min-delegation-fee" |
32 |
| - MinStakeDurationKey = "min-stake-duration" |
33 |
| - MaxStakeDurationKey = "max-stake-duration" |
34 |
| - StakeMaxConsumptionRateKey = "stake-max-consumption-rate" |
35 |
| - StakeMinConsumptionRateKey = "stake-min-consumption-rate" |
36 |
| - StakeMintingPeriodKey = "stake-minting-period" |
37 |
| - StakeSupplyCapKey = "stake-supply-cap" |
38 |
| - DBTypeKey = "db-type" |
39 |
| - DBReadOnlyKey = "db-read-only" |
40 |
| - DBPathKey = "db-dir" |
41 |
| - DBConfigFileKey = "db-config-file" |
42 |
| - DBConfigContentKey = "db-config-file-content" |
43 |
| - PublicIPKey = "public-ip" |
44 |
| - PublicIPResolutionFreqKey = "public-ip-resolution-frequency" |
45 |
| - PublicIPResolutionServiceKey = "public-ip-resolution-service" |
46 |
| - HTTPHostKey = "http-host" |
47 |
| - HTTPPortKey = "http-port" |
48 |
| - HTTPSEnabledKey = "http-tls-enabled" |
49 |
| - HTTPSKeyFileKey = "http-tls-key-file" |
50 |
| - HTTPSKeyContentKey = "http-tls-key-file-content" |
51 |
| - HTTPSCertFileKey = "http-tls-cert-file" |
52 |
| - HTTPSCertContentKey = "http-tls-cert-file-content" |
53 |
| - HTTPAllowedOrigins = "http-allowed-origins" |
54 |
| - HTTPAllowedHostsKey = "http-allowed-hosts" |
55 |
| - HTTPShutdownTimeoutKey = "http-shutdown-timeout" |
56 |
| - HTTPShutdownWaitKey = "http-shutdown-wait" |
57 |
| - HTTPReadTimeoutKey = "http-read-timeout" |
58 |
| - HTTPReadHeaderTimeoutKey = "http-read-header-timeout" |
59 |
| - HTTPWriteTimeoutKey = "http-write-timeout" |
| 11 | + DataDirKey = "data-dir" |
| 12 | + ConfigFileKey = "config-file" |
| 13 | + ConfigContentKey = "config-file-content" |
| 14 | + ConfigContentTypeKey = "config-file-content-type" |
| 15 | + VersionKey = "version" |
| 16 | + GenesisFileKey = "genesis-file" |
| 17 | + GenesisFileContentKey = "genesis-file-content" |
| 18 | + NetworkNameKey = "network-id" |
| 19 | + ACPSupportKey = "acp-support" |
| 20 | + ACPObjectKey = "acp-object" |
| 21 | + TxFeeKey = "tx-fee" |
| 22 | + CreateAssetTxFeeKey = "create-asset-tx-fee" |
| 23 | + CreateSubnetTxFeeKey = "create-subnet-tx-fee" |
| 24 | + TransformSubnetTxFeeKey = "transform-subnet-tx-fee" |
| 25 | + CreateBlockchainTxFeeKey = "create-blockchain-tx-fee" |
| 26 | + AddPrimaryNetworkValidatorFeeKey = "add-primary-network-validator-fee" |
| 27 | + AddPrimaryNetworkDelegatorFeeKey = "add-primary-network-delegator-fee" |
| 28 | + AddSubnetValidatorFeeKey = "add-subnet-validator-fee" |
| 29 | + AddSubnetDelegatorFeeKey = "add-subnet-delegator-fee" |
| 30 | + UptimeRequirementKey = "uptime-requirement" |
| 31 | + MinValidatorStakeKey = "min-validator-stake" |
| 32 | + MaxValidatorStakeKey = "max-validator-stake" |
| 33 | + MinDelegatorStakeKey = "min-delegator-stake" |
| 34 | + MinDelegatorFeeKey = "min-delegation-fee" |
| 35 | + MinStakeDurationKey = "min-stake-duration" |
| 36 | + MaxStakeDurationKey = "max-stake-duration" |
| 37 | + StakeMaxConsumptionRateKey = "stake-max-consumption-rate" |
| 38 | + StakeMinConsumptionRateKey = "stake-min-consumption-rate" |
| 39 | + StakeMintingPeriodKey = "stake-minting-period" |
| 40 | + StakeSupplyCapKey = "stake-supply-cap" |
| 41 | + DBTypeKey = "db-type" |
| 42 | + DBReadOnlyKey = "db-read-only" |
| 43 | + DBPathKey = "db-dir" |
| 44 | + DBConfigFileKey = "db-config-file" |
| 45 | + DBConfigContentKey = "db-config-file-content" |
| 46 | + PublicIPKey = "public-ip" |
| 47 | + PublicIPResolutionFreqKey = "public-ip-resolution-frequency" |
| 48 | + PublicIPResolutionServiceKey = "public-ip-resolution-service" |
| 49 | + HTTPHostKey = "http-host" |
| 50 | + HTTPPortKey = "http-port" |
| 51 | + HTTPSEnabledKey = "http-tls-enabled" |
| 52 | + HTTPSKeyFileKey = "http-tls-key-file" |
| 53 | + HTTPSKeyContentKey = "http-tls-key-file-content" |
| 54 | + HTTPSCertFileKey = "http-tls-cert-file" |
| 55 | + HTTPSCertContentKey = "http-tls-cert-file-content" |
| 56 | + |
| 57 | + HTTPAllowedOrigins = "http-allowed-origins" |
| 58 | + HTTPAllowedHostsKey = "http-allowed-hosts" |
| 59 | + HTTPShutdownTimeoutKey = "http-shutdown-timeout" |
| 60 | + HTTPShutdownWaitKey = "http-shutdown-wait" |
| 61 | + HTTPReadTimeoutKey = "http-read-timeout" |
| 62 | + HTTPReadHeaderTimeoutKey = "http-read-header-timeout" |
| 63 | + |
60 | 64 | HTTPIdleTimeoutKey = "http-idle-timeout"
|
61 | 65 | StateSyncIPsKey = "state-sync-ips"
|
62 | 66 | StateSyncIDsKey = "state-sync-ids"
|
|
0 commit comments