Documentation
¶
Overview ¶
The config package manages the node configuration, which comes from environment variables. The sub-package generate specifies these environment variables.
Index ¶
- func GetAuthAwsKmsKeyId() string
- func GetAuthAwsKmsRegion() string
- func GetAuthMnemonic() string
- func GetAuthMnemonicAccountIndex() int
- func GetAuthMnemonicFile() string
- func GetAuthPrivateKey() string
- func GetAuthPrivateKeyFile() string
- func GetBaseUrl() string
- func GetBlockchainBlockTimeout() int
- func GetBlockchainHttpEndpoint() string
- func GetBlockchainId() uint64
- func GetBlockchainWsEndpoint() string
- func GetContractsInputBoxAddress() string
- func GetContractsInputBoxDeploymentBlockNumber() int64
- func GetEvmReaderRetryPolicyMaxRetries() uint64
- func GetFeatureClaimSubmissionEnabled() bool
- func GetFeatureMachineHashCheckEnabled() bool
- func GetHttpAddress() string
- func GetHttpPort() int
- func GetLegacyBlockchainEnabled() bool
- func GetLogPrettyEnabled() bool
- func GetMachineServerVerbosity() string
- func GetNamespace() uint64
- func GetPostgresEndpoint() string
- func GetServiceEndpoint() string
- func GetSnapshotDir() string
- func GetStartingBlock() uint64
- func ToDurationFromSeconds(s string) (time.Duration, error)
- func ToInt64FromString(s string) (int64, error)
- func ToStringFromString(s string) (string, error)
- func ToUint64FromString(s string) (uint64, error)
- type Auth
- type AuthAWS
- type AuthKind
- type AuthMnemonic
- type AuthPrivateKey
- type DefaultBlock
- type Duration
- type LogLevel
- type NodeConfig
- type Redacted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthAwsKmsKeyId ¶
func GetAuthAwsKmsKeyId() string
func GetAuthAwsKmsRegion ¶
func GetAuthAwsKmsRegion() string
func GetAuthMnemonic ¶
func GetAuthMnemonic() string
func GetAuthMnemonicAccountIndex ¶
func GetAuthMnemonicAccountIndex() int
func GetAuthMnemonicFile ¶
func GetAuthMnemonicFile() string
func GetAuthPrivateKey ¶
func GetAuthPrivateKey() string
func GetAuthPrivateKeyFile ¶
func GetAuthPrivateKeyFile() string
func GetBaseUrl ¶
func GetBaseUrl() string
func GetBlockchainBlockTimeout ¶
func GetBlockchainBlockTimeout() int
func GetBlockchainHttpEndpoint ¶
func GetBlockchainHttpEndpoint() string
func GetBlockchainId ¶
func GetBlockchainId() uint64
func GetBlockchainWsEndpoint ¶
func GetBlockchainWsEndpoint() string
func GetContractsInputBoxAddress ¶
func GetContractsInputBoxAddress() string
func GetContractsInputBoxDeploymentBlockNumber ¶
func GetContractsInputBoxDeploymentBlockNumber() int64
func GetEvmReaderRetryPolicyMaxRetries ¶
func GetEvmReaderRetryPolicyMaxRetries() uint64
func GetFeatureClaimSubmissionEnabled ¶
func GetFeatureClaimSubmissionEnabled() bool
func GetFeatureMachineHashCheckEnabled ¶
func GetFeatureMachineHashCheckEnabled() bool
func GetHttpAddress ¶
func GetHttpAddress() string
func GetHttpPort ¶
func GetHttpPort() int
func GetLegacyBlockchainEnabled ¶
func GetLegacyBlockchainEnabled() bool
func GetLogPrettyEnabled ¶
func GetLogPrettyEnabled() bool
func GetMachineServerVerbosity ¶
func GetMachineServerVerbosity() string
func GetNamespace ¶
func GetNamespace() uint64
func GetPostgresEndpoint ¶
func GetPostgresEndpoint() string
func GetServiceEndpoint ¶
func GetServiceEndpoint() string
func GetSnapshotDir ¶
func GetSnapshotDir() string
func GetStartingBlock ¶
func GetStartingBlock() uint64
func ToInt64FromString ¶
func ToStringFromString ¶
func ToUint64FromString ¶
Types ¶
type Auth ¶
type Auth any
Auth is used to sign transactions.
func AuthFromEnv ¶
func AuthFromEnv() Auth
type AuthKind ¶
type AuthKind uint8
func GetAuthKind ¶
func GetAuthKind() AuthKind
func ToAuthKindFromString ¶
type AuthMnemonic ¶
AuthMnemonic allows signing through mnemonics.
type AuthPrivateKey ¶
AuthPrivateKey allows signing through private keys.
type DefaultBlock ¶
type DefaultBlock = model.DefaultBlock
func GetEvmReaderDefaultBlock ¶
func GetEvmReaderDefaultBlock() DefaultBlock
func ToDefaultBlockFromString ¶
func ToDefaultBlockFromString(s string) (DefaultBlock, error)
type Duration ¶
func GetAdvancerPollingInterval ¶
func GetAdvancerPollingInterval() Duration
func GetClaimerPollingInterval ¶
func GetClaimerPollingInterval() Duration
func GetEvmReaderRetryPolicyMaxDelay ¶
func GetEvmReaderRetryPolicyMaxDelay() Duration
func GetValidatorPollingInterval ¶
func GetValidatorPollingInterval() Duration
type NodeConfig ¶
type NodeConfig struct { LogLevel LogLevel LogPrettyEnabled bool BlockchainID uint64 BlockchainHttpEndpoint Redacted[string] BlockchainWsEndpoint Redacted[string] LegacyBlockchainEnabled bool EvmReaderDefaultBlock DefaultBlock EvmReaderRetryPolicyMaxRetries uint64 EvmReaderRetryPolicyMaxDelay Duration BlockchainBlockTimeout int ContractsInputBoxAddress string ContractsInputBoxDeploymentBlockNumber int64 SnapshotDir string PostgresEndpoint Redacted[string] HttpAddress string HttpPort int FeatureClaimSubmissionEnabled bool FeatureMachineHashCheckEnabled bool Auth Auth AdvancerPollingInterval Duration ValidatorPollingInterval Duration ClaimerPollingInterval Duration EspressoBaseUrl string EspressoStartingBlock uint64 EspressoNamespace uint64 EspressoServiceEndpoint string }
NodeConfig contains all the Node variables. See the corresponding environment variable for the variable documentation.
Directories
¶
Path | Synopsis |
---|---|
This script will read the Config.toml file and create: - a formatted get.go file, with get functions for each environment variable; - a config.md file with documentation for the environment variables.
|
This script will read the Config.toml file and create: - a formatted get.go file, with get functions for each environment variable; - a config.md file with documentation for the environment variables. |
Click to show internal directories.
Click to hide internal directories.