package
Version:
v0.0.0-...-c4b14b8
Opens a new window with list of versions in this module.
Published: Oct 11, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthConfig struct {
Salt string `env:"APP_SALT,notEmpty"`
SigningKey string `env:"SIGNING_KEY,notEmpty"`
AccessTokenTTL time.Duration `env:"ACCESS_TOKEN_TTL" envDefault:"15m"`
RefreshTokenTTL time.Duration `env:"REFRESH_TOKEN_TTL" envDefault:"24h"`
}
type Mongo struct {
ConnectionString string `env:"MONGO_CONNECTION_STRING" envDefault:"mongodb://localhost:27017"`
NameDB string `env:"MONGO_DB" envDefault:"movie-recommender"`
Username string `env:"MONGO_USERNAME" envDefault:"root"`
Password string `env:"MONGO_PASSWORD" envDefault:"example"`
}
type Server struct {
AppAddress string `env:"APP_PORT" envDefault:"8000"`
AppReadTimeout time.Duration `env:"APP_READ_TIMEOUT" envDefault:"60s"`
AppWriteTimeout time.Duration `env:"APP_WRITE_TIMEOUT" envDefault:"60s"`
AppIdleTimeout time.Duration `env:"APP_IDLE_TIMEOUT" envDefault:"60s"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.