From da435390b695dba26c6694b6d53bc81ae668f776 Mon Sep 17 00:00:00 2001 From: Anish Adhikari Date: Mon, 23 Mar 2020 20:49:31 -0700 Subject: [PATCH] Adding json tags for ShardInfo struct to reuse for docstore (#3127) --- common/persistence/dataInterfaces.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/common/persistence/dataInterfaces.go b/common/persistence/dataInterfaces.go index edbd8646a45..ea457a54e55 100644 --- a/common/persistence/dataInterfaces.go +++ b/common/persistence/dataInterfaces.go @@ -242,21 +242,21 @@ type ( // ShardInfo describes a shard ShardInfo struct { - ShardID int - Owner string - RangeID int64 - StolenSinceRenew int - UpdatedAt time.Time - ReplicationAckLevel int64 - ReplicationDLQAckLevel map[string]int64 - TransferAckLevel int64 - TimerAckLevel time.Time - ClusterTransferAckLevel map[string]int64 - ClusterTimerAckLevel map[string]time.Time + ShardID int `json:"shard_id"` + Owner string `json:"owner"` + RangeID int64 `json:"range_id"` + StolenSinceRenew int `json:"stolen_since_renew"` + UpdatedAt time.Time `json:"updated_at"` + ReplicationAckLevel int64 `json:"replication_ack_level"` + ReplicationDLQAckLevel map[string]int64 `json:"replication_dlq_ack_level"` + TransferAckLevel int64 `json:"transfer_ack_level"` + TimerAckLevel time.Time `json:"timer_ack_level"` + ClusterTransferAckLevel map[string]int64 `json:"cluster_transfer_ack_level"` + ClusterTimerAckLevel map[string]time.Time `json:"cluster_timer_ack_level"` TransferFailoverLevels map[string]TransferFailoverLevel // uuid -> TransferFailoverLevel TimerFailoverLevels map[string]TimerFailoverLevel // uuid -> TimerFailoverLevel - ClusterReplicationLevel map[string]int64 // cluster -> last replicated taskID - DomainNotificationVersion int64 + ClusterReplicationLevel map[string]int64 `json:"cluster_replication_level"` + DomainNotificationVersion int64 `json:"domain_notification_version"` } // TransferFailoverLevel contains corresponding start / end level