Discover Packages
github.com/nightlord189/ca-url-shortener
internal
config
package
Version:
v0.0.0-...-8edc08b
Opens a new window with list of versions in this module.
Published: Oct 9, 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 HTTPConfig struct {
Port int `yaml:"port" env:"HTTP_PORT"`
AuthTokenExpTime int `yaml:"auth_token_exp_time" env:"AUTH_TOKEN_EXP_TIME"`
AuthSecret string `yaml:"auth_secret" env:"AUTH_SECRET"`
}
type MongoConfig struct {
Host string `yaml:"host" env:"MONGO_HOST"`
Port int `yaml:"port" env:"MONGO_PORT"`
User string `yaml:"user" env:"MONGO_USER"`
Password string `yaml:"password" env:"MONGO_PASSWORD"`
Database string `yaml:"database" env:"MONGO_DATABASE"`
}
type RedisConfig struct {
Host string `yaml:"host" env:"REDIS_HOST"`
Port int `yaml:"port" env:"REDIS_PORT"`
Password string `yaml:"password" env:"REDIS_PASSWORD"`
Database int `yaml:"database" env:"REDIS_DATABASE"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.