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
Click to show internal directories.
Click to hide internal directories.