package
Version:
v0.0.0-...-3f89699
Opens a new window with list of versions in this module.
Published: Apr 18, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
Dev environment = "dev"
Prod environment = "prod"
)
View Source
const (
Debug = "debug"
Info = "info"
Warn = "warn"
Error = "error"
)
type Config struct {
Environment environment `json:"environment"`
Port string `json:"port"`
Cache bool `json:"cache"`
DB DB `json:"db"`
JWT JWT `json:"jwt"`
Logger Logger `json:"logger"`
}
type DB struct {
Sql Sql `json:"sql"`
Redis Redis `json:"redis"`
}
type JWT struct {
Secret string `json:"secret"`
Expire string `json:"expire"`
Token *jwtauth.JWTAuth `json:"-"`
}
type Logger struct {
Level level `json:"level"`
}
type Redis struct {
Host string `json:"host"`
Password string `json:"password"`
Port string `json:"port"`
DB int `json:"db"`
}
type Sql struct {
Host string `json:"host"`
Port string `json:"port"`
Username string `json:"username"`
Password string `json:"password"`
Name string `json:"name"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.