Discover Packages
github.com/crafty-ezhik/blog-api
internal
config
package
Version:
v0.0.0-...-72fb90f
Opens a new window with list of versions in this module.
Published: Jun 11, 2025
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AuthConfig struct {
SigningKey string `mapstructure:"signing_key"`
SecretKey string `mapstructure:"secret_key"`
AccessTTL time .Duration `mapstructure:"access_ttl"`
RefreshTTL time .Duration `mapstructure:"refresh_ttl"`
}
type DbConfig struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
Database string `mapstructure:"database"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
SSLMode string `mapstructure:"sslmode"`
}
type Log struct {
Mode string `mapstructure:"mode"`
Encoding string `mapstructure:"encoding"`
OutputPath []string `mapstructure:"output_path"`
}
type RedisConfig struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
Password string `mapstructure:"password"`
Db int `mapstructure:"db"`
}
type ServerConfig struct {
Port int `mapstructure:"port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.