neoneo-go/pkg/config/oracle_config.go

17 lines
667 B
Go
Raw Normal View History

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"`
}