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
type Record struct {
Key string
Value []byte
Expiry time.Duration
Key string `json:"key"`
Value []byte `json:"value"`
Expiry time.Duration `json:"expiry,omitempty"`
}