Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Name string `env-required:"true" yaml:"name" env:"APP_NAME"`
Version string `env-required:"true" yaml:"version" env:"APP_VERSION"`
Swagger bool `yaml:"swagger"`
}
App -.
type Config ¶
type Config struct {
App `yaml:"app"`
Log `yaml:"log"`
HTTP `yaml:"http"`
Consul `yaml:"consul"`
PG `yaml:"postgres"`
RMQ `yaml:"rabbitmq"`
Extra map[string]interface{} `yaml:"extra"`
CClient *consul.Consul
Pg *postgres.Postgres
Logger *logger.Logger
}
Config -.
type Consul ¶
type Consul struct {
CheckApi string `yaml:"check_api"`
Interval string `yaml:"interval"`
Timeout string `yaml:"timeout"`
Tags []string `yaml:"tags"`
}
Consul -.
type HTTP ¶
type HTTP struct {
Address string `env-required:"true" yaml:"address" env:"HTTP_ADDRESS"`
Port string `env-required:"true" yaml:"port" env:"HTTP_PORT"`
}
HTTP -.
type Log ¶
type Log struct {
Level string `env-required:"true" yaml:"log_level" env:"LOG_LEVEL"`
}
Log -.
Click to show internal directories.
Click to hide internal directories.