-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add methods to model.Duration for JSON marshalling and unmarshalling
Add methods to model.Duration structs to allow them to be serialized and unserialized to/from JSON. This helps downstream consumers of the structs that attempt to use them in objects that are expected to be able to be represented as JSON (such as Cortex). Signed-off-by: Nick Pillitteri <[email protected]>
- Loading branch information
1 parent
47ee79a
commit 2a23014
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters