Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Exchange ExchangeConfig `env:",prefix=EXCHANGE_,required"` Database DatabaseConfig `env:",prefix=DB_,required"` Logger LoggerConfig `env:",prefix=LOGGER_"` }
Config default config structure
type DatabaseConfig ¶
type DatabaseConfig struct { Host string `env:"HOST,required"` User string `env:"USER,required"` Password string `env:"PASSWORD"` Base string `env:"BASE"` }
DatabaseConfig for db config
type ExchangeConfig ¶
type ExchangeConfig struct { Url string `env:"URL,required"` Origin string `env:"ORIGIN,required"` Protocol string `env:"PROTOCOL,default="` Symbols []string `env:"SYMBOLS,required"` Channels []string `env:"CHANNELS,required"` }
ExchangeConfig for exchange configuration
type LoggerConfig ¶
type LoggerConfig struct { DisableCaller bool `env:"CALLER,default=false"` DisableStacktrace bool `env:"STACKTRACE,default=false"` Level string `env:"LEVEL,default=debug"` }
LoggerConfig for logger configuration
Click to show internal directories.
Click to hide internal directories.