Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Env manager.Environment `env:"ENV" envDefault:"local"` FetcherPoolThrottleBandwidth int `env:"FETCHER_POOL_THROTTLER_BANDWIDTH" envDefault:"100"` FetcherPoolThrottleDuration time.Duration `env:"FETCHER_POOL_THROTTLER_DURATION" envDefault:"60s"` FetcherPoolBandwidth int `env:"FETCHER_POOL_BANDWIDTH" envDefault:"100"` AccumulatorPoolBandwidth int `env:"ACCUMULATOR_POOL_BANDWIDTH" envDefault:"100"` WriterPoolBandwidth int `env:"WRITER_POOL_BANDWIDTH" envDefault:"100"` HttpServePort string `env:"HTTP_SERVE_PORT" envDefault:":8000"` PprofServePort string `env:"PPROF_SERVE_PORT" envDefault:":6060"` Cache cache.Config Poller contract_poller.Config Node node.Config }
func MustNewConfig ¶
type Environment ¶
type Environment string
Click to show internal directories.
Click to hide internal directories.