Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCrawler ¶
func NewCrawler(ctx context.Context, flags *crawlers.CrawlerOpts, filter crawlers.AddressFilter, processor crawlers.BCBlockProcessor, readingMode BlockReadingMode) (crawlers.ChainCrawler, errstack.E)
NewCrawler returns a fully setup crawler. Parameters are: -ctx: An execution context -flags: the execution options -filter: an address filter -processor: a BCBlockProcessor -readingMode: Indicates what to extract. Values are:
ReadTransDetail : Transaction details ReadTransReceipt : Include Transaction Receipts related info ReadTransLog : Include the transactions logs
Types ¶
type BlockReadingMode ¶
type BlockReadingMode int
BlockReadingMode represents the different modes of reading blocks.
const ( // ReadTransDetail indicates that the tx details must be read ReadTransDetail BlockReadingMode = 1 // ReadTransReceipt indicates that the transaction receipt must be read ReadTransReceipt BlockReadingMode = 2 // ReadTransLog indicates that the transaction logs must be read ReadTransLog BlockReadingMode = 4 // ReadTransDetailAndReceipt indicates that transaction details and receipts must be read ReadTransDetailAndReceipt = ReadTransDetail + ReadTransReceipt // ReadAll indicates that logs and full transaction details must be read ReadAll = ReadTransDetailAndReceipt + ReadTransLog )
Click to show internal directories.
Click to hide internal directories.