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-16 09:51:43 +00:00
|
|
|
Enabled bool `yaml:"Enabled"`
|
|
|
|
AllowPrivateHost bool `yaml:"AllowPrivateHost"`
|
2021-07-06 13:20:01 +00:00
|
|
|
AllowedContentTypes []string `yaml:"AllowedContentTypes"`
|
2020-10-16 09:51:43 +00:00
|
|
|
Nodes []string `yaml:"Nodes"`
|
|
|
|
NeoFS NeoFSConfiguration `yaml:"NeoFS"`
|
|
|
|
MaxTaskTimeout time.Duration `yaml:"MaxTaskTimeout"`
|
|
|
|
RefreshInterval time.Duration `yaml:"RefreshInterval"`
|
|
|
|
MaxConcurrentRequests int `yaml:"MaxConcurrentRequests"`
|
|
|
|
RequestTimeout time.Duration `yaml:"RequestTimeout"`
|
|
|
|
ResponseTimeout time.Duration `yaml:"ResponseTimeout"`
|
|
|
|
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// NeoFSConfiguration is a config for the NeoFS service.
|
|
|
|
type NeoFSConfiguration struct {
|
2021-04-06 14:08:04 +00:00
|
|
|
Nodes []string `yaml:"Nodes"`
|
|
|
|
Timeout time.Duration `yaml:"Timeout"`
|
2020-09-28 11:58:04 +00:00
|
|
|
}
|