Add json tags to store.Record (#1518)
This commit is contained in:
parent
53549b6b30
commit
6a666c9c7d
@ -36,7 +36,7 @@ type Store interface {
|
|||||||
|
|
||||||
// Record is an item stored or retrieved from a Store
|
// Record is an item stored or retrieved from a Store
|
||||||
type Record struct {
|
type Record struct {
|
||||||
Key string
|
Key string `json:"key"`
|
||||||
Value []byte
|
Value []byte `json:"value"`
|
||||||
Expiry time.Duration
|
Expiry time.Duration `json:"expiry,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user