tiny-rdm/backend/types/redis_wrapper.go

51 lines
1.2 KiB
Go
Raw Normal View History

2023-06-27 15:53:29 +08:00
package types
type ListEntryItem struct {
Value any `json:"v"`
DisplayValue string `json:"dv,omitempty"`
}
type ListReplaceItem struct {
Index int64 `json:"index"`
Value any `json:"v,omitempty"`
DisplayValue string `json:"dv,omitempty"`
}
type HashEntryItem struct {
Key string `json:"k"`
Value any `json:"v"`
DisplayValue string `json:"dv,omitempty"`
}
type HashReplaceItem struct {
Key any `json:"k"`
NewKey any `json:"nk"`
Value any `json:"v"`
DisplayValue string `json:"dv,omitempty"`
}
type SetEntryItem struct {
Value any `json:"v"`
DisplayValue string `json:"dv,omitempty"`
}
type ZSetEntryItem struct {
Score float64 `json:"s"`
2024-02-14 13:54:09 +08:00
ScoreStr string `json:"ss,omitempty"`
Value string `json:"v"`
DisplayValue string `json:"dv,omitempty"`
2023-06-27 15:53:29 +08:00
}
2023-07-25 19:12:50 +08:00
type ZSetReplaceItem struct {
Score float64 `json:"s"`
Value string `json:"v"`
NewValue string `json:"nv"`
DisplayValue string `json:"dv,omitempty"`
}
type StreamEntryItem struct {
ID string `json:"id"`
Value map[string]any `json:"v"`
DisplayValue string `json:"dv,omitempty"`
2023-07-25 19:12:50 +08:00
}