Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChCollector ¶ added in v0.0.3
type ChCollector struct { Log glog.Logger Metrics metrics.Metrics Events <-chan *fab.BlockEvent DataReady chan<- struct{} OutData chan *collectordto.BlockData Parser ChDataParser Cancel context.CancelFunc WgLoop *sync.WaitGroup }
func NewCollector ¶
func NewCollector(ctx context.Context, parser ChDataParser, dataReady chan<- struct{}, events <-chan *fab.BlockEvent, bufSize uint, ) (*ChCollector, error)
func (*ChCollector) Close ¶ added in v0.0.3
func (cc *ChCollector) Close()
func (*ChCollector) GetData ¶ added in v0.0.3
func (cc *ChCollector) GetData() <-chan *collectordto.BlockData
func (*ChCollector) RaiseReadySignal ¶ added in v0.0.3
func (cc *ChCollector) RaiseReadySignal()
type ChDataParser ¶
type ChDataParser interface {
ExtractData(block *common.Block) (*collectordto.BlockData, error)
}
Click to show internal directories.
Click to hide internal directories.