github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/config/oracle_config.go (about)

     1  package config
     2  
     3  import "time"
     4  
     5  // OracleConfiguration is a config for the oracle module.
     6  type OracleConfiguration struct {
     7  	Enabled               bool               `yaml:"Enabled"`
     8  	AllowPrivateHost      bool               `yaml:"AllowPrivateHost"`
     9  	AllowedContentTypes   []string           `yaml:"AllowedContentTypes"`
    10  	Nodes                 []string           `yaml:"Nodes"`
    11  	NeoFS                 NeoFSConfiguration `yaml:"NeoFS"`
    12  	MaxTaskTimeout        time.Duration      `yaml:"MaxTaskTimeout"`
    13  	RefreshInterval       time.Duration      `yaml:"RefreshInterval"`
    14  	MaxConcurrentRequests int                `yaml:"MaxConcurrentRequests"`
    15  	RequestTimeout        time.Duration      `yaml:"RequestTimeout"`
    16  	ResponseTimeout       time.Duration      `yaml:"ResponseTimeout"`
    17  	UnlockWallet          Wallet             `yaml:"UnlockWallet"`
    18  }
    19  
    20  // NeoFSConfiguration is a config for the NeoFS service.
    21  type NeoFSConfiguration struct {
    22  	Nodes   []string      `yaml:"Nodes"`
    23  	Timeout time.Duration `yaml:"Timeout"`
    24  }