Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronCfg ¶
type CronCfg struct { Schedule string `env:"CRON_SCHEDULE" env-default:"0 0 * * *"` LoggerLVL string `env:"CRON_LOG_LVL" env-default:"debug"` Postgres PostgresCfg }
type PostgresCfg ¶
type PostgresCfg struct { Username string `env:"POSTGRES_USER" env-default:"postgres"` Password string `env:"POSTGRES_PASSWORD" env-default:"postgres"` Port string `env:"PG_PORT" env-default:"5432"` Host string `env:"POSTGRES_HOST" env-default:"localhost"` NameDB string `env:"POSTGRES_DB" env-default:"postgres"` Migrations string `env:"DB_MIGRATION_PATH" env-default:"./migrations"` }
type ShortenerCfg ¶
type ShortenerCfg struct { App AppCfg Postgres PostgresCfg }
func NewShortener ¶
func NewShortener() (ShortenerCfg, error)
Click to show internal directories.
Click to hide internal directories.