Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configs ¶
type Configs struct { fx.Out AppConfig *AppConfig `yaml:"app"` HTTPConfig *HTTPConfig `yaml:"http"` GRPCConfig *GRPCConfig `yaml:"grpc"` PostgresConfig *PostgresConfig `yaml:"postgres"` }
func SetupConfigs ¶
type GRPCConfig ¶
type GRPCConfig struct {
Port int `yaml:"port"`
}
type HTTPConfig ¶
type PostgresConfig ¶
type PostgresConfig struct { Host string `yaml:"host"` Port uint16 `yaml:"port"` DBName string `yaml:"dbname"` User string `yaml:"user"` Password string `yaml:"password"` MaxConnections int32 `yaml:"maxConnections"` MinConnections int32 `yaml:"minConnections"` HealthCheckPeriodMinutes int `yaml:"healthCheckPeriodMinutes"` SSLMode string `yaml:"ssl_mode"` }
PostgresConfig holds a DB config
func (*PostgresConfig) URL ¶
func (cfg *PostgresConfig) URL() string
Click to show internal directories.
Click to hide internal directories.