Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainConfig struct {
Driver entities.Driver `yaml:"driver"`
Type entities.Type `yaml:"type"`
ISO entities.Ticker `yaml:"iso"`
Chain entities.Chain `yaml:"chain"`
Persist PersistConfig `yaml:"persist"`
Scan ScanConfig `yaml:"scan"`
Workers WorkersConfig `yaml:"workers"`
RPC RPCConfig `yaml:"rpc"`
Topics TopicsConfig `yaml:"topics"`
}
type ChainsConfig ¶
type ChainsConfig []ChainConfig
type Config ¶
type Config struct {
App App `yaml:"app" envconfig:"APP"`
Chains ChainsConfig `yaml:"chains"`
DB DBConfig `yaml:"db" envconfig:"DB"`
Redis RedisConfig `yaml:"redis" envconfig:"REDIS"`
HTTP HTTPConfig `yaml:"http" envconfig:"HTTP" default:"8080"`
Metrics HTTPConfig `yaml:"metrics" envconfig:"METRICS" default:"9100"`
}
type DBConfig ¶
type DBConfig struct {
Driver string `yaml:"driver" envconfig:"DRIVER" default:"postgres"`
Host string `yaml:"host" envconfig:"HOST"`
Port string `yaml:"port" envconfig:"PORT"`
Database string `yaml:"database" envconfig:"DATABASE"`
User string `yaml:"user" envconfig:"USER"`
Password string `yaml:"password" envconfig:"PASSWORD"`
}
type HTTPConfig ¶
type PersistConfig ¶
type RedisConfig ¶
type ScanConfig ¶
type TopicsConfig ¶
type WorkersConfig ¶
Click to show internal directories.
Click to hide internal directories.