Consumer
Blockchain data collection Index /
src /
data_collection /
App /
Consumer
Auto-generated documentation for src.data_collection.app.consumer module.
DataConsumer
Consume transaction hash from a given Kafka topic and save all required data to PostgreSQL.
Signature
class DataConsumer(DataCollector):
def __init__(self, config: Config, contract_abi: ContractABI) -> None:
...
DataConsumer().start_consuming_data
Start an infinite loop of consuming data from a given topic.
Returns
exit_code- 0 if no exceptions encountered during data collection, 1 otherwise
Signature
kafka_logs_filter
Filters out some kafka logs