mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-09-18 15:08:21 +03:00
refactor: move const in config
This commit is contained in:
@@ -9,9 +9,10 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
LogLevel string `env:"LOG_LEVEL" env-default:"INFO"`
|
||||
Mode string `env:"MODE" env-default:"DEV"`
|
||||
Port int `env:"PORT" env-default:"9000"`
|
||||
LogLevel string `env:"LOG_LEVEL" env-default:"INFO"`
|
||||
Mode string `env:"MODE" env-default:"DEV"`
|
||||
Port int `env:"PORT" env-default:"9000"`
|
||||
Heartbeat int `env:"HEARTBEAT" env-default:"5"`
|
||||
}
|
||||
|
||||
func NewConfig() (*Config, error) {
|
||||
|
||||
Reference in New Issue
Block a user