config

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2023 License: MIT Imports: 7 Imported by: 0

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

func MustNewConfig(logger util.Logger) *Config

type Environment

type Environment string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL