Discover Packages
github.com/slavtov/clean-architecture
internal
config
package
Version:
v0.0.0-...-516af6b
Opens a new window with list of versions in this module.
Published: Dec 2, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CookieConfig struct {
AccessToken TokenConfig `mapstructure:"access_token"`
RefreshToken TokenConfig `mapstructure:"refresh_token"`
}
type Logger struct {
Level string
}
type RedisConfig struct {
Addr string
MinIdleConns int `mapstructure:"min_idle_conns"`
PoolSize int `mapstructure:"pool_size"`
PoolTimeout int `mapstructure:"pool_timeout"`
Password string
DB int
}
type ServerConfig struct {
Debug bool
AppVersion string `mapstructure:"app_version"`
Addr string
JwtSecret string `mapstructure:"jwt_secret"`
JwtRefreshSecret string `mapstructure:"jwt_refresh_secret"`
}
type TokenConfig struct {
MaxAge int `mapstructure:"max_age"`
Secure bool
HttpOnly bool `mapstructure:"http_only"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.