2023-06-27 15:53:29 +08:00
|
|
|
package types
|
|
|
|
|
2023-11-14 17:15:02 +08:00
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2023-11-15 23:41:53 +08:00
|
|
|
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
|
|
|
|
2023-11-15 23:41:53 +08:00
|
|
|
type StreamEntryItem struct {
|
2023-07-25 19:12:50 +08:00
|
|
|
ID string `json:"id"`
|
|
|
|
Value map[string]any `json:"value"`
|
|
|
|
}
|