chcollector

package
v0.0.0-...-7107d2d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector(ctx context.Context,
	prsr ChDataParser,
	dataReady chan<- struct{},
	events <-chan *fab.BlockEvent,
	bufSize uint,
) (*chCollector, error)

NewCollector creates a new collector

Types

type ChDataParser

type ChDataParser interface {
	ExtractData(block *common.Block) (*collectordto.BlockData, error)
}

ChDataParser is a interface for extract data from block

Jump to

Keyboard shortcuts

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