Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Domain string `env-default:"localhost" yaml:"domain"`
Debug bool `yaml:"debug"`
Log Log `yaml:"log"`
API Server `env-prefix:"API_" yaml:"api"`
Chat Server `env-prefix:"CHAT_" yaml:"chat"`
Cors Cors `yaml:"cors"`
Auth Auth `yaml:"auth"`
Postgres Postgres `env-prefix:"POSTGRES_" yaml:"postgres"`
Redis Redis `env-prefix:"REDIS_" yaml:"redis"`
}
type Conn ¶
type Conn struct {
Host string `env:"HOST" env-default:"localhost" yaml:"host"`
Port string `env:"PORT" env-required:"true" yaml:"port"`
Database string `env:"DB" env-required:"true" yaml:"database"`
User string `env:"USER" env-required:"true" yaml:"user"`
Password string `env:"PASSWORD" yaml:"password"`
Timeout time.Duration `env-default:"15s" yaml:"timeout"`
}
Click to show internal directories.
Click to hide internal directories.