package
Version:
v0.0.0-...-0334a0b
Opens a new window with list of versions in this module.
Published: Oct 20, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewConfig returns app config.
type EthNode struct {
HttpURL string `env-required:"true" env:"ETH_HTTP_NODE_RPC"`
WsURL string `env-required:"true" env:"ETH_WS_NODE_RPC"`
ApiKey string `env:"ETH_RPC_KEY"`
Network string `yaml:"network_type"`
}
type HTTP struct {
Port string `env-required:"false" yaml:"port"`
}
type Logger struct {
File string `env-required:"false" yaml:"file" env:"LOG_FILE"`
}
type RMQ struct {
URL string `env-required:"true" env:"RMQ_URL"`
}
type Redis struct {
URL string `env-required:"true" env:"REDIS_URL"`
}
type Server struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
Stage string `yaml:"stage"`
WorkerCount int `yaml:"worker_count"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.