Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRouter ¶
Types ¶
type EnvVars ¶
type EnvVars struct { JWT_SECRET_KEY string `validate:"required"` TEST_DATABASE_NAME string `validate:"required"` DATABASE_NAME string `validate:"required"` TEST_DATABASE_PASS string `validate:"required"` DATABASE_USER string `validate:"required"` TEST_DATABASE_USER string `validate:"required"` DATABASE_HOST string `validate:"required"` DATABASE_PASS string `validate:"required"` SERVER_PORT int `validate:"required,gte=1,lte=65535"` DATABASE_PORT int `validate:"required,gte=1,lte=65535"` JWT_EXPIRES_IN int `validate:"required,gte=1"` DATABASE_MAX_CONN_LIFETIME time.Duration `validate:"required"` TEST_DATABASE_PORT int `validate:"required,gte=1,lte=65535"` SERVER_READ_TIMEOUT int `validate:"required,gte=1"` DATABASE_MAX_IDLE_CONNS int `validate:"required,gte=1"` DATABASE_MAX_CONNS int `validate:"required,gte=1"` }
func NewEnvConf ¶
Click to show internal directories.
Click to hide internal directories.