liuhaijun e94826ce29 add server
Change-Id: I0760f17f6a01c0121b59fcbfafc666032dbc30af
2024-09-19 09:44:15 +00:00

18 lines
400 B
Go

package config
type RedisConfig struct {
Enable bool `ini:"enable" yaml:"enable"`
Host string `ini:"host" yaml:"host"`
Port string `ini:"port" yaml:"port"`
Password string `ini:"password" yaml:"password"`
Database int `ini:"database" yaml:"database"`
}
var Redis = RedisConfig{
Enable: false,
Host: "127.0.0.1",
Password: "root1234",
Port: "6379",
Database: 0,
}