2020-09-28 11:58:04 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
// OracleConfiguration is a config for the oracle module.
|
|
|
|
type OracleConfiguration struct {
|
2020-10-07 07:48:41 +00:00
|
|
|
Enabled bool `yaml:"Enabled"`
|
|
|
|
AllowPrivateHost bool `yaml:"AllowPrivateHost"`
|
|
|
|
Nodes []string `yaml:"Nodes"`
|
2020-10-09 07:44:31 +00:00
|
|
|
MaxTaskTimeout time.Duration `yaml:"MaxTaskTimeout"`
|
|
|
|
RefreshInterval time.Duration `yaml:"RefreshInterval"`
|
2020-10-07 07:48:41 +00:00
|
|
|
MaxConcurrentRequests int `yaml:"MaxConcurrentRequests"`
|
|
|
|
RequestTimeout time.Duration `yaml:"RequestTimeout"`
|
|
|
|
ResponseTimeout time.Duration `yaml:"ResponseTimeout"`
|
|
|
|
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
2020-09-28 11:58:04 +00:00
|
|
|
}
|