Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RequestTypes for KAS RequestTypeTransaction = RequestType(1) << iota RequestTypeTokenTransfer RequestTypeContract RequestTypeTrace // RequestTypes for Kafka RequestTypeBlockGroup RequestTypeTraceGroup RequestTypeLength )
View Source
const ( RequestTypeAll = RequestTypeTransaction | RequestTypeTokenTransfer | RequestTypeContract | RequestTypeTrace RequestTypeGroupAll = RequestTypeBlockGroup | RequestTypeTraceGroup )
Variables ¶
This section is empty.
Functions ¶
func CheckRequestType ¶
func CheckRequestType(rt RequestType, targetType RequestType) bool
Types ¶
type Request ¶
type Request struct { ReqType RequestType ShouldUpdateCheckpoint bool BlockNumber uint64 }
Request contains a blockNumber which should be handled and the type of data which should be exported.
func NewRequest ¶
func NewRequest(reqType RequestType, shouldUpdateCheckpoint bool, block uint64) *Request
type RequestType ¶
type RequestType uint
RequestType informs which data should be exported such as block, transaction, transaction log, etc.
Click to show internal directories.
Click to hide internal directories.