types

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RequestTypes for KAS (deprecated)
	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.

func (RequestType) IsValid added in v1.10.0

func (t RequestType) IsValid() bool

func (RequestType) String added in v1.10.0

func (t RequestType) String() string

Jump to

Keyboard shortcuts

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