2021-07-28 18:03:19 +08:00
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
import (
|
2022-06-02 17:41:11 +08:00
|
|
|
"mayfly-go/pkg/model"
|
2021-07-28 18:03:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Redis struct {
|
|
|
|
|
model.Model
|
|
|
|
|
|
|
|
|
|
Host string `orm:"column(host)" json:"host"`
|
2022-07-10 12:14:06 +08:00
|
|
|
Mode string `json:"mode"`
|
2021-07-28 18:03:19 +08:00
|
|
|
Password string `orm:"column(password)" json:"-"`
|
|
|
|
|
Db int `orm:"column(database)" json:"db"`
|
2022-07-10 12:14:06 +08:00
|
|
|
Remark string
|
2021-07-28 18:03:19 +08:00
|
|
|
ProjectId uint64
|
|
|
|
|
Project string
|
|
|
|
|
EnvId uint64
|
|
|
|
|
Env string
|
|
|
|
|
}
|
2022-07-10 12:14:06 +08:00
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
RedisModeStandalone = "standalone"
|
|
|
|
|
RedisModeCluster = "cluster"
|
|
|
|
|
)
|