Add json tags to store.Record (#1518)

This commit is contained in:
Jake Sanders 2020-04-09 19:38:43 +01:00 committed by GitHub
parent 53549b6b30
commit 6a666c9c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"`
} }