mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
25 lines
445 B
Go
25 lines
445 B
Go
package entity
|
|
|
|
import (
|
|
"mayfly-go/pkg/model"
|
|
)
|
|
|
|
type Redis struct {
|
|
model.Model
|
|
|
|
Host string `orm:"column(host)" json:"host"`
|
|
Mode string `json:"mode"`
|
|
Password string `orm:"column(password)" json:"-"`
|
|
Db int `orm:"column(database)" json:"db"`
|
|
Remark string
|
|
ProjectId uint64
|
|
Project string
|
|
EnvId uint64
|
|
Env string
|
|
}
|
|
|
|
const (
|
|
RedisModeStandalone = "standalone"
|
|
RedisModeCluster = "cluster"
|
|
)
|