Skip to content

Commit 1927325

Browse files
chris124567ChrisSchinnerl
authored andcommitted
add JSON tags
1 parent 8db30cf commit 1927325

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

explorer/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ type HostQuery struct {
608608

609609
// BlockTimeMetrics represents the average block time during various intervals.
610610
type BlockTimeMetrics struct {
611-
Day time.Duration
612-
Week time.Duration
613-
Month time.Duration
611+
Day time.Duration `json:"day"`
612+
Week time.Duration `json:"week"`
613+
Month time.Duration `json:"month"`
614614
}
615615

616616
// DifficultyMetrics contains various difficulty-related metrics.

0 commit comments

Comments
 (0)