Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { App struct { Version string Env Environment Debug bool } Server struct { Port int ReadTimeout time.Duration WriteTimeout time.Duration IdleTimeout time.Duration ShutdownPeriod time.Duration } Database struct { Dsn string AutoMigrate bool MaxOpenConns int MaxIdleConns int ConnMaxLife time.Duration ConnMaxIdle time.Duration } }
type Environment ¶
type Environment int
const ( DEVELOPMENT Environment = iota + 1 STAGING PRODUCTION )
func (Environment) String ¶
func (e Environment) String() string
Click to show internal directories.
Click to hide internal directories.