44 lines
648 B
Go
44 lines
648 B
Go
package models
|
|
|
|
type Config struct {
|
|
Server ServerConfig
|
|
Database DatabaseConfig
|
|
Cache CacheConfig
|
|
Admin AdminConfig
|
|
JWT JWTConfig
|
|
}
|
|
|
|
type AdminConfig struct {
|
|
Username string
|
|
Email string
|
|
Password string
|
|
FullName string
|
|
}
|
|
|
|
type JWTConfig struct {
|
|
SecretKey string
|
|
ExpirationHours int
|
|
}
|
|
|
|
type DatabaseConfig struct {
|
|
Host string
|
|
Port string
|
|
Username string
|
|
Password string
|
|
Name string
|
|
}
|
|
|
|
type ServerConfig struct {
|
|
Host string
|
|
Port string
|
|
PortFrontend string
|
|
KeyPassword string
|
|
}
|
|
|
|
type CacheConfig struct {
|
|
Username string
|
|
Password string
|
|
Host string
|
|
Port string
|
|
}
|