Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DataStorageFilePath string `json:"DataStorageFilePath"`
PluginPath string `json:"PluginPath"`
StoragePluginName string `json:"StoragePluginName"`
PoolCommissionRate float64 `json:"PoolCommissionRate"`
Version string `json:"Version"`
Region string `json:"Region"`
DataLoaderPluginConfig *DataLoaderPluginConfig `json:"DataLoaderPluginConfig,omitempty"`
PayoutLoopConfig *PayoutLoopConfig `json:"PayoutLoopConfig,omitempty"`
APIConfig *APIConfig `json:"APIConfig,omitempty"`
}
Config holds all the configuration parameters, serving as a unified config.
func LoadConfig ¶
LoadConfig reads a config file and unmarshals it into a unified Config struct.
type DataLoaderPluginConfig ¶
type DataLoaderPluginConfig struct {
PluginName string `json:"PluginName"`
FetchIntervalSeconds int `json:"FetchIntervalSeconds"`
DataSources []DataSource `json:"Datasources"`
}
DataLoaderPluginConfig holds the plugin-specific settings for data loaders.
type DataSource ¶
DataSource defines the settings for each data source.
type PayoutLoopConfig ¶
type PayoutLoopConfig struct {
PluginName string `json:"PluginName"`
RPCUrl string `json:"RPCUrl"`
PrivateKeyStorePath string `json:"PrivateKeyStorePath"`
PrivateKeyPassphrasePath string `json:"PrivateKeyPassphrasePath"`
PayoutFrequencySeconds int `json:"PayoutFrequencySeconds"`
PayoutThreshold string `json:"PayoutThreshold"`
}
Click to show internal directories.
Click to hide internal directories.