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
|
||||
type Record struct {
|
||||
Key string
|
||||
Value []byte
|
||||
Expiry time.Duration
|
||||
Key string `json:"key"`
|
||||
Value []byte `json:"value"`
|
||||
Expiry time.Duration `json:"expiry,omitempty"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user