types

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RequestTypes for KAS
	RequestTypeTransaction = RequestType(1) << iota
	RequestTypeTokenTransfer
	RequestTypeContract
	RequestTypeTrace

	// RequestTypes for Kafka
	RequestTypeBlockGroup
	RequestTypeTraceGroup

	RequestTypeLength
)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL