Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Env string `yaml:"env" envconfig:"env"` DebugMode bool `yaml:"debug"` Name string `yaml:"name"` }
type Configs ¶
type Configs struct { fx.Out AppConfig *AppConfig `yaml:"app"` HTTPConfig *HTTPConfig `yaml:"http"` RedisConfig *RedisConfig `yaml:"redis"` GRPCClients GRPCClientsConfig `yaml:"grpcClients"` }
Configs holds all the configs.
func SetupConfigs ¶
SetupConfigs fills Configs with data from files and envs.
type GRPCClientConfig ¶
type GRPCClientsConfig ¶
type GRPCClientsConfig struct { fx.Out UserService UserServiceConfig `yaml:"userservice"` }
type HTTPConfig ¶
type HTTPConfig struct {
Port int `yaml:"port"`
}
HTTPConfig holds config for the HTTP server.
type RedisConfig ¶
type RedisConfig struct { Host string `yaml:"host"` Port int `yaml:"port"` Token string `yaml:"token"` DB string `yaml:"db"` }
RedisConfig holds a DB config.
type UserServiceConfig ¶
type UserServiceConfig GRPCClientConfig
Click to show internal directories.
Click to hide internal directories.