package
Version:
v0.0.0-...-4db5c07
Opens a new window with list of versions in this module.
Published: Aug 17, 2023
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
¶
Package config содержит конфигурацию клиента.
type App struct {
Name string `yaml:"name" env:"APP_NAME"`
Version string `yaml:"version" env:"APP_VERSION"`
}
App информация о приложении.
type Config struct {
App `yaml:"app"`
Storage `yaml:"storage"`
GRPC `yaml:"grpc"`
}
Config основная конфигурация.
New создаёт объект Config.
type GRPC struct {
Address string `env-required:"true" yaml:"address" env:"GRPC_ADDRESS"`
Port string `env-required:"true" yaml:"port" env:"GRPC_PORT"`
}
GRPC настройки gRPC.
type Storage struct {
Path string `env-required:"true" yaml:"path" env:"STORAGE_PATH"`
}
Storage настройки файлового хранилища.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.