[feat] add pkgs, dockerfile, makefile
This commit is contained in:
@@ -17,9 +17,17 @@ type Database struct {
|
||||
IdleConn uint `yaml:"idle_conn" env:"DB_IDLE_CONN" default:"2"`
|
||||
}
|
||||
|
||||
// Redis connect setting
|
||||
type Redis struct {
|
||||
Host string `yaml:"host" env:"REDIS_HOST" default:"localhost"`
|
||||
Port int `yaml:"port" env:"REDIS_PORT" default:"6379"`
|
||||
Prefix string `yaml:"prefix" env:"REDIS_PREFIX"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Server Server `yaml:"server"`
|
||||
Database Database `yaml:"database"`
|
||||
Redis Redis `yaml:"redis"`
|
||||
}
|
||||
|
||||
var c *Config
|
||||
|
||||
Reference in New Issue
Block a user