Documentation ¶
Index ¶
- type ChunkSizeUpdated
- type Cursor
- type CursorUpdated
- type FilterCompleted
- type FilterStarted
- type Log
- type Notification
- type Option
- func WithFilter(addresses []common.Address, topics [][]common.Hash) Option
- func WithInitialChunkSize(initialChunkSize int) Option
- func WithMaxChunkSize(maxChunkSize int) Option
- func WithRetryFilter(minInterval, maxInterval, maxElapsed time.Duration) Option
- func WithRetryHead(minInterval, maxInterval, maxElapsed time.Duration) Option
- func WithStart(start Cursor) Option
- func WithStayBehindToHead(stayBehindToHead int) Option
- func WithThresholdChunkAdjByDur(adjThresholdDur time.Duration) Option
- func WithThresholdChunkAdjByLogs(adjThresholdLogs int) Option
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkSizeUpdated ¶
type Cursor ¶
type Cursor uint64
It also supports JSON serialization to provide a semantic representation of the data.
func MakeCursor ¶
MakeCursor returns a Cursor for a specific log location on the blockchain.
func (Cursor) MarshalJSON ¶
func (*Cursor) UnmarshalJSON ¶
type CursorUpdated ¶
type CursorUpdated struct { Next Cursor // contains filtered or unexported fields }
type FilterCompleted ¶
type FilterCompleted struct { FilterStarted Duration time.Duration NumberOfLogs int HasErr bool }
type FilterStarted ¶
type Notification ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithInitialChunkSize ¶
func WithMaxChunkSize ¶
func WithRetryFilter ¶
func WithRetryHead ¶
func WithStayBehindToHead ¶
Click to show internal directories.
Click to hide internal directories.