factory

package
v0.0.0-...-08f901d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterceptorDebugHandler

type InterceptorDebugHandler interface {
	LogRequestedData(topic string, hashes [][]byte, numReqIntra int, numReqCross int)
	LogReceivedHashes(topic string, hashes [][]byte)
	LogProcessedHashes(topic string, hashes [][]byte, err error)
	LogFailedToResolveData(topic string, hash []byte, err error)
	LogSucceededToResolveData(topic string, hash []byte)
	Query(topic string) []string
	Close() error
	IsInterfaceNil() bool
}

InterceptorDebugHandler hold information about requested and received information

func NewInterceptorDebuggerFactory

func NewInterceptorDebuggerFactory(config config.InterceptorResolverDebugConfig) (InterceptorDebugHandler, error)

NewInterceptorDebuggerFactory will instantiate an InterceptorDebugHandler based on the provided config

type ProcessDebugger

type ProcessDebugger interface {
	SetLastCommittedBlockRound(round uint64)
	Close() error
	IsInterfaceNil() bool
}

ProcessDebugger defines what a process debugger implementation should do

func CreateProcessDebugger

func CreateProcessDebugger(configs config.ProcessDebugConfig) (ProcessDebugger, error)

CreateProcessDebugger creates a new instance of type ProcessDebugger

Jump to

Keyboard shortcuts

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