Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Host string `envconfig:"HOST" default:"localhost"` Port int `validate:"required,min=1,max=65535" envconfig:"PORT" default:"5432"` User string `validate:"required" envconfig:"USERNAME"` Password string `validate:"required" envconfig:"PASSWORD"` DBName string `validate:"required" envconfig:"NAME"` SSLMode string `envconfig:"SSL_MODE" default:"require"` }
type Http ¶
type Http struct { Port int `validate:"required,min=1,max=65535" envconfig:"PORT" default:"8085"` ReadTimeout time.Duration `envconfig:"READ_TIMEOUT" default:"10s"` WriteTimeout time.Duration `envconfig:"WRITE_TIMEOUT" default:"60s"` IdleTimeout time.Duration `envconfig:"IDLE_TIMEOUT" default:"60s"` }
Click to show internal directories.
Click to hide internal directories.