gitee.com/lh-her-team/common@v1.5.1/msgbus/topic_string.go (about) 1 // Code generated by "stringer -type Topic"; DO NOT EDIT. 2 3 package msgbus 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[Invalid-0] 12 _ = x[ProposedBlock-1] 13 _ = x[VerifyBlock-2] 14 _ = x[VerifyResult-3] 15 _ = x[CommitBlock-4] 16 _ = x[ProposeState-5] 17 _ = x[TxPoolSignal-6] 18 _ = x[BlockInfo-7] 19 _ = x[ContractEventInfo-8] 20 _ = x[SendConsensusMsg-9] 21 _ = x[RecvConsensusMsg-10] 22 _ = x[SendSyncBlockMsg-11] 23 _ = x[RecvSyncBlockMsg-12] 24 _ = x[SendTxPoolMsg-13] 25 _ = x[RecvTxPoolMsg-14] 26 _ = x[BuildProposal-15] 27 _ = x[ChainConfig-16] 28 _ = x[CertManageCertsDelete-17] 29 _ = x[CertManageCertsFreeze-18] 30 _ = x[CertManageCertsUnfreeze-19] 31 _ = x[CertManageCertsRevoke-20] 32 _ = x[CertManageCertsAliasUpdate-21] 33 _ = x[CertManageCertsAliasDelete-22] 34 _ = x[PubkeyManageAdd-23] 35 _ = x[PubkeyManageDelete-24] 36 _ = x[SendConsistentMsg-25] 37 _ = x[RecvConsistentMsg-26] 38 _ = x[ProposeBlock-27] 39 _ = x[HotStuffEpochConf-28] 40 _ = x[RwSetVerifyFailTxs-29] 41 } 42 43 const _Topic_name = "InvalidProposedBlockVerifyBlockVerifyResultCommitBlockProposeStateTxPoolSignalBlockInfoContractEventInfoSendConsensusMsgRecvConsensusMsgSendSyncBlockMsgRecvSyncBlockMsgSendTxPoolMsgRecvTxPoolMsgBuildProposalChainConfigCertManageCertsDeleteCertManageCertsFreezeCertManageCertsUnfreezeCertManageCertsRevokeCertManageCertsAliasUpdateCertManageCertsAliasDeletePubkeyManageAddPubkeyManageDeleteSendConsistentMsgRecvConsistentMsgProposeBlockHotStuffEpochConfRwSetVerifyFailTxs" 44 45 var _Topic_index = [...]uint16{0, 7, 20, 31, 43, 54, 66, 78, 87, 104, 120, 136, 152, 168, 181, 194, 207, 218, 239, 260, 283, 304, 330, 356, 371, 389, 406, 423, 435, 450, 468} 46 47 func (i Topic) String() string { 48 if i < 0 || i >= Topic(len(_Topic_index)-1) { 49 return "Topic(" + strconv.FormatInt(int64(i), 10) + ")" 50 } 51 return _Topic_name[_Topic_index[i]:_Topic_index[i+1]] 52 }