-
Notifications
You must be signed in to change notification settings - Fork 178
/
labels.go
88 lines (83 loc) · 3.59 KB
/
labels.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package metrics
const (
LabelChannel = "topic"
LabelChain = "chain"
EngineLabel = "engine"
LabelResource = "resource"
LabelMessage = "message"
LabelNodeID = "nodeid"
LabelNodeRole = "noderole"
LabelPriority = "priority"
)
const (
ChannelOneToOne = "OneToOne"
)
const (
// collection
EngineProposal = "proposal"
EngineCollectionIngest = "collection_ingest"
EngineCollectionProvider = "collection_provider"
EngineClusterSynchronization = "cluster-sync"
// consensus
EnginePropagation = "propagation"
EngineCompliance = "compliance"
EngineConsensusProvider = "consensus_provider"
EngineConsensusIngestion = "consensus_ingestion"
EngineMatching = "matching"
EngineSynchronization = "sync"
// common
EngineFollower = "follower"
)
const (
ResourceUndefined = "undefined"
ResourceProposal = "proposal"
ResourceHeader = "header"
ResourceIndex = "index"
ResourceIdentity = "identity"
ResourceGuarantee = "guarantee"
ResourceResult = "result"
ResourceReceipt = "receipt"
ResourceCollection = "collection"
ResourceApproval = "approval"
ResourceSeal = "seal"
ResourceCommit = "commit"
ResourceTransaction = "transaction"
ResourceClusterPayload = "cluster_payload"
ResourceClusterProposal = "cluster_proposal"
ResourceProcessedResultID = "processed_result_ids" // verification node, finder engine
ResourcePendingReceipt = "pending_receipt" // verification node, finder engine
ResourceReceiptIDsByResult = "receipt_ids_by_result" // verification node, finder engine
ResourcePendingReceiptIDsByBlock = "pending_receipt_ids_by_block" // verification node, finder engine
ResourcePendingResult = "pending_result" // verification node, match engine
ResourceChunkIDsByResult = "chunk_ids_by_result" // verification node, match engine
ResourcePendingChunk = "pending_chunk" // verification node, match engine
ResourcePendingBlock = "pending_block" // verification node, match engine
ResourceCachedReceipt = "cached_receipt" // verification node, finder engine
ResourceCachedBlockID = "cached_block_id" // verification node, finder engine
ResourceEpochSetup = "epoch_setup"
ResourceEpochCommit = "epoch_commit"
ResourceEpochStatus = "epoch_status"
)
const (
MessageCollectionGuarantee = "guarantee"
MessageBlockProposal = "proposal"
MessageBlockVote = "vote"
MessageExecutionReceipt = "receipt"
MessageResultApproval = "approval"
MessageSyncRequest = "ping"
MessageSyncResponse = "pong"
MessageRangeRequest = "range"
MessageBatchRequest = "batch"
MessageBlockResponse = "block"
MessageSyncedBlock = "synced_block"
MessageClusterBlockProposal = "cluster_proposal"
MessageClusterBlockVote = "cluster_vote"
MessageClusterBlockResponse = "cluster_block_response"
MessageSyncedClusterBlock = "synced_cluster_block"
MessageTransaction = "transaction"
MessageSubmitGuarantee = "submit_guarantee"
MessageCollectionRequest = "collection_request"
MessageCollectionResponse = "collection_response"
MessageEntityRequest = "entity_request"
MessageEntityResponse = "entity_response"
)