Files
mayfly-go/server/internal/redis/api/vo/redis.go

35 lines
1.1 KiB
Go
Raw Normal View History

package vo
import "time"
type Redis struct {
2022-10-26 20:49:29 +08:00
Id *int64 `json:"id"`
Name *string `json:"name"`
Host *string `json:"host"`
2022-09-29 13:14:50 +08:00
Db string `json:"db"`
Mode *string `json:"mode"`
EnableSshTunnel *int8 `json:"enableSshTunnel"` // 是否启用ssh隧道
SshTunnelMachineId *uint64 `json:"sshTunnelMachineId"` // ssh隧道机器id
Remark *string `json:"remark"`
2022-10-26 20:49:29 +08:00
TagId *uint64 `json:"tagId"`
TagPath *string `json:"tagPath"`
CreateTime *time.Time `json:"createTime"`
Creator *string `json:"creator"`
CreatorId *int64 `json:"creatorId"`
2022-11-21 19:49:50 +08:00
UpdateTime *time.Time `json:"updateTime"`
Modifier *string `json:"modifier"`
ModifierId *int64 `json:"modifierId"`
}
type Keys struct {
Cursor map[string]uint64 `json:"cursor"`
Keys []*KeyInfo `json:"keys"`
DbSize int64 `json:"dbSize"`
}
type KeyInfo struct {
Key string `json:"key"`
Ttl int64 `json:"ttl"`
Type string `json:"type"`
}