package
Version:
v0.0.0-...-b401549
Opens a new window with list of versions in this module.
Published: May 29, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Name string `env-required:"true" yaml:"name" env:"APP_NAME"`
Version string `env-required:"true" yaml:"version" env:"APP_VERSION"`
}
type Config struct {
App `yaml:"app"`
HTTP `yaml:"http"`
GRPC `yaml:"grpc"`
Log `yaml:"logger"`
Redis `yaml:"redis"`
Env string `yaml:"env" env-required:"true" env-default:"local"`
}
type GRPC struct {
Address string `env-required:"true" yaml:"addr" env:"GRPC_ADDRESS"`
ConnectionAddress string `env-required:"true" yaml:"conn" env:"GRPC_CONNECTION"`
}
type HTTP struct {
Port string `env-required:"true" yaml:"port" env:"HTTP_PORT"`
CertFile string `yaml:"cert_file" env:"HTTP_CERT_FILE"`
KeyFile string `yaml:"key_file" env:"HTTP_KEY_FILE"`
}
type Log struct {
Level string `env-required:"true" yaml:"log_level" env:"LOG_LEVEL"`
}
type Redis struct {
Addr string `env-required:"true" yaml:"addr" env:"REDIS_ADDR"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.