Documentation ¶
Index ¶
- Constants
- type EventAddP2PStreamMsg
- type EventBandwidthStats
- type EventBroadcastMsg
- type EventConfirmReqMsg
- type EventDeleteP2PStreamMsg
- type EventP2PConnectPeersMsg
- type EventP2POnlinePeersMsg
- type EventP2PSyncStateMsg
- type EventPovRecvBlockMsg
- type EventPrivacyRecvReqMsg
- type EventPrivacyRecvRspMsg
- type EventPrivacySendReqMsg
- type EventPrivacySendRspMsg
- type EventPublishMsg
- type EventRPCSyncCallMsg
- type MessageType
- type PermissionEvent
- type SyncState
- type TopicType
Constants ¶
View Source
const (
PermissionEventNodeUpdate uint8 = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventAddP2PStreamMsg ¶
type EventBandwidthStats ¶
type EventBroadcastMsg ¶
type EventBroadcastMsg struct { Type MessageType Message interface{} }
type EventConfirmReqMsg ¶
type EventConfirmReqMsg struct { Blocks []*types.StateBlock From string }
type EventDeleteP2PStreamMsg ¶
type EventDeleteP2PStreamMsg struct {
PeerID string
}
type EventP2PConnectPeersMsg ¶
type EventP2POnlinePeersMsg ¶
type EventP2PSyncStateMsg ¶
type EventP2PSyncStateMsg struct {
P2pSyncState SyncState
}
type EventPovRecvBlockMsg ¶
type EventPovRecvBlockMsg struct { Block *types.PovBlock From types.PovBlockFrom MsgPeer string ResponseChan chan interface{} }
type EventPrivacyRecvReqMsg ¶
type EventPrivacyRecvReqMsg struct { EnclaveKey []byte ReqData interface{} RspChan chan *EventPrivacyRecvRspMsg }
type EventPrivacyRecvRspMsg ¶
type EventPrivacySendReqMsg ¶
type EventPrivacySendRspMsg ¶
type EventPublishMsg ¶
type EventPublishMsg struct { Block *types.StateBlock From string }
type EventRPCSyncCallMsg ¶
type EventRPCSyncCallMsg struct { Name string In interface{} Out interface{} ResponseChan chan interface{} }
type MessageType ¶
type MessageType byte
MessageType a string for message type.
const ( PublishReq MessageType = iota //PublishReq ConfirmReq //ConfirmReq ConfirmAck //ConfirmAck FrontierRequest //FrontierReq FrontierRsp //FrontierRsp BulkPullRequest //BulkPullRequest BulkPullRsp //BulkPullRsp BulkPushBlock //BulkPushBlock MessageResponse //MessageResponse PovStatus PovPublishReq PovBulkPullReq PovBulkPullRsp )
Message Type
type PermissionEvent ¶
type TopicType ¶
type TopicType string
const ( EventPublish TopicType = "publish" EventConfirmReq TopicType = "confirmReq" EventConfirmAck TopicType = "confirmAck" EventSyncBlock TopicType = "syncBlock" EventConfirmedBlock TopicType = "confirmedBlock" EventBroadcast TopicType = "broadcast" EventPeersInfo TopicType = "peersInfo" EventOnlinePeersInfo TopicType = "onlinePeersInfo" EventSyncStatus TopicType = "syncing" EventGetBandwidthStats TopicType = "getBandwidthStats" EventAddRelation TopicType = "addRelation" EventAddSyncBlocks TopicType = "addSyncBlocks" EventDeleteRelation TopicType = "deleteRelation" EventGenerateBlock TopicType = "generateBlock" EventRollback TopicType = "rollback" EventRestartChain TopicType = "restartChain" EventSendMsgToSingle TopicType = "sendMsgToSingle" EventAddP2PStream TopicType = "addP2PStream" EventDeleteP2PStream TopicType = "deleteP2PStream" EventPovPeerStatus TopicType = "povPeerStatus" EventPovRecvBlock TopicType = "povRecvBlock" EventPovBulkPullReq TopicType = "povBulkPullReq" EventPovBulkPullRsp TopicType = "povBulkPullRsp" EventPovSyncState TopicType = "povSyncState" EventPovConnectBestBlock TopicType = "povConnectBestBlock" EventPovDisconnectBestBlock TopicType = "povDisconnectBestBlock" EventRpcSyncCall TopicType = "rpcSyncCall" EventFrontiersReq TopicType = "FrontiersReq" EventFrontierConsensus TopicType = "frontierConsensus" EventFrontierConfirmed TopicType = "frontierConfirmed" EventSyncStateChange TopicType = "syncStateChange" EventConsensusSyncFinished TopicType = "consensusSyncFinished" EventRepresentativeNode TopicType = "representativeNode" EventAddBlockCache TopicType = "addBlockCache" EventPermissionNodeUpdate TopicType = "permissionNodeUpdate" EventPrivacySendReq TopicType = "privacySendReq" EventPrivacySendRsp TopicType = "privacySendRsp" EventPrivacyRecvReq TopicType = "privacyRecvReq" EventPrivacyRecvRsp TopicType = "privacyRecvRsp" )
Topic type
Click to show internal directories.
Click to hide internal directories.