Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Mining: mining.Config{ Heartbeat: time.Minute, }, Web: web.Config{ ListenHost: "", ListenPort: 9090, }, Db: db.Config{ RemotePort: 9090, Path: "db", RemoteTimeout: format.Duration{Duration: 5 * time.Second}, }, TransactorTellor: transactorTellor.Config{ GasMaxTipGwei: 10, }, SubmitterTellor: tellor.Config{ Enabled: true, MinSubmitPeriod: format.Duration{Duration: 15*time.Minute + 1*time.Second}, }, PsrTellor: psrTellor.Config{ MinConfidence: 80, }, Aggregator: aggregator.Config{ ManualDataFile: "configs/manualData.json", }, TrackerIndex: index.Config{ Interval: format.Duration{Duration: time.Minute}, IndexFile: "configs/index.json", }, EnvFile: "configs/.env", }
Functions ¶
Types ¶
type Config ¶
type Config struct { Web web.Config Mining mining.Config SubmitterTellor tellor.Config Tasker tasker.Config TransactorTellor transactorTellor.Config TrackerIndex index.Config Aggregator aggregator.Config PsrTellor psrTellor.Config Db db.Config // EnvFile location that include all private details like private key etc. EnvFile string `json:"envFile"` }
Config is the top-level configuration that holds configs for all components.
func OpenTestConfig ¶
Click to show internal directories.
Click to hide internal directories.