Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerConfig ¶
type ServerConfig struct { KeysDir string `yaml:"keys_dir" env:"KEYS_DIR"` GRPC `yaml:"grpc"` TG `yaml:"tg"` PrometheusAddr string `yaml:"prometheus_addr" env:"PROMETHEUS_ADDR"` AttachmentsDir string `yaml:"attachments_dir" env:"ATTACHMENTS_DIR"` Yandex `yaml:"yandex"` }
func NewServerConfig ¶
func NewServerConfig(filePath string, useEnv bool) (*ServerConfig, error)
Click to show internal directories.
Click to hide internal directories.