Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinanceConfiguration ¶
type BinanceConfiguration struct { DEXHost string `json:"dex_host" mapstructure:"dex_host"` PrivateKey string `json:"private_key" mapstructure:"private_key"` }
BinanceConfiguration all the configurations for binance client
type BlockScannerConfiguration ¶
type BlockScannerConfiguration struct { RPCHost string `json:"rpc_host" mapstructure:"rpc_host"` Scheme string `json:"scheme" mapstructure:"scheme"` StartBlockHeight int64 BlockScanProcessors int `json:"block_scan_processors" mapstructure:"block_scan_processors"` HttpRequestTimeout time.Duration `json:"http_request_timeout" mapstructure:"http_request_timeout"` HttpRequestReadTimeout time.Duration `json:"http_request_read_timeout" mapstructure:"http_request_read_timeout"` HttpRequestWriteTimeout time.Duration `json:"http_request_write_timeout" mapstructure:"http_request_write_timeout"` MaxHttpRequestRetry int `json:"max_http_request_retry" mapstructure:"max_http_request_retry"` BlockHeightDiscoverBackoff time.Duration `json:"block_height_discover_back_off" mapstructure:"block_height_discover_back_off"` BlockRetryInterval time.Duration `json:"block_retry_interval" mapstructure:"block_retry_interval"` EnforceBlockHeight bool `json:"enforce_block_height" mapstructure:"enforce_block_height"` }
BlockScannerConfiguration settings for BlockScanner
type Configuration ¶
type Configuration struct { DEXHost string `json:"dex_host" mapstructure:"dex_host"` ObserverDbPath string `json:"observer_db_path" mapstructure:"observer_db_path"` BlockScanner BlockScannerConfiguration `json:"block_scanner" mapstructure:"block_scanner"` StateChain StateChainConfiguration `json:"state_chain" mapstructure:"state_chain"` ObserverRetryInterval time.Duration `json:"observer_retry_interval" mapstructure:"observer_retry_interval"` Metric MetricConfiguration `json:"metric" mapstructure:"metric"` }
Configuration values
func LoadObserverConfig ¶
func LoadObserverConfig(file string) (*Configuration, error)
LoadObserveConfig
type MetricConfiguration ¶
type MetricConfiguration struct { Enabled bool `json:"enabled" mapstructure:"enabled"` ListenPort int `json:"listen_port" mapstructure:"listen_port"` ReadTimeout time.Duration `json:"read_timeout" mapstructure:"read_timeout"` WriteTimeout time.Duration `json:"write_timeout" mapstructure:"write_timeout"` }
type SignerConfiguration ¶
type SignerConfiguration struct { SignerDbPath string `json:"signer_db_path" mapstructure:"signer_db_path"` MessageProcessor int `json:"message_processor" mapstructure:"message_processor"` BlockScanner BlockScannerConfiguration `json:"block_scanner" mapstructure:"block_scanner"` Binance BinanceConfiguration `json:"binance" mapstructure:"binance"` StateChain StateChainConfiguration `json:"state_chain" mapstructure:"state_chain"` RetryInterval time.Duration `json:"retry_interval" mapstructure:"retry_interval"` Metric MetricConfiguration `json:"metric" mapstructure:"metric"` KeySign TSSConfiguration `json:"key_sign" mapstructure:"key_sign"` UseTSS bool `json:"use_tss" mapstructure:"use_tss"` KeyGen TSSConfiguration `json:"key_gen" mapstructure:"key_gen"` }
SignerConfiguration all the configures need by signer
func LoadSignerConfig ¶
func LoadSignerConfig(file string) (*SignerConfiguration, error)
LoadObserveConfig
type StateChainConfiguration ¶
type StateChainConfiguration struct { ChainID string `json:"chain_id" mapstructure:"chain_id" ` ChainHost string `json:"chain_host" mapstructure:"chain_host"` ChainHomeFolder string `json:"chain_home_folder" mapstructure:"chain_home_folder"` SignerName string `json:"signer_name" mapstructure:"signer_name"` SignerPasswd string `json:"signer_passwd" mapstructure:"signer_passwd"` }
StateChainConfiguration
Click to show internal directories.
Click to hide internal directories.