tiny-rdm/backend/types/redis_wrapper.go

30 lines
669 B
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 HashEntryItem struct {
Key string `json:"k"`
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"`
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 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
}