Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunker ¶
type Chunker interface { AddConfig(transformerConfig transformer.EventTransformerConfig) ChunkLogs(logs []core.HeaderSyncLog) map[string][]core.HeaderSyncLog }
type LogChunker ¶
func NewLogChunker ¶
func NewLogChunker() *LogChunker
Returns a new log chunker with initialised maps. Needs to have configs added with `AddConfigs` to consider logs for the respective transformer.
func (*LogChunker) AddConfig ¶ added in v0.0.7
func (chunker *LogChunker) AddConfig(transformerConfig transformer.EventTransformerConfig)
Configures the chunker by adding one config with more addresses and topics to consider.
func (*LogChunker) ChunkLogs ¶
func (chunker *LogChunker) ChunkLogs(logs []core.HeaderSyncLog) map[string][]core.HeaderSyncLog
Goes through a slice of logs, associating relevant logs (matching addresses and topic) with transformers
Click to show internal directories.
Click to hide internal directories.