mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
8e9302f40b
If not specified everything is allowed. Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
24 lines
1,011 B
Go
24 lines
1,011 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
// OracleConfiguration is a config for the oracle module.
|
|
type OracleConfiguration struct {
|
|
Enabled bool `yaml:"Enabled"`
|
|
AllowPrivateHost bool `yaml:"AllowPrivateHost"`
|
|
AllowedContentTypes []string `yaml:"AllowedContentTypes"`
|
|
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 {
|
|
Nodes []string `yaml:"Nodes"`
|
|
Timeout time.Duration `yaml:"Timeout"`
|
|
}
|