Documentation
¶
Index ¶
Constants ¶
View Source
const EmergencyRecovery = 100
View Source
const MaxConcurrentNumber = 8e4
View Source
const MaxQueryBlockSize int64 = 2000
View Source
const MaxWorkNumber = MaxConcurrentNumber / MaxQueryBlockSize
View Source
const Polygon_Node_URL = "https://polygon-mainnet.g.alchemy.com/v2/bG72w682SlQ0uQwUcSfbZmQAB1VPwpZd"
View Source
const SmoothRecoverRatio = 0.25
Variables ¶
View Source
var DefaultSmoothRecoverTimes = time.Millisecond * 500
View Source
var TimeLess time.Duration = 1<<63 - 1
Functions ¶
func GetCurrentBlockNumber ¶
func TestGetLogs ¶
Types ¶
type FilterFunc ¶
type LogsStream ¶
type LogsStream struct {
// contains filtered or unexported fields
}
func NewLogsStream ¶
func NewLogsStream(log []types.Log) *LogsStream
func (*LogsStream) FilterLog ¶
func (l *LogsStream) FilterLog(filter FilterFunc) *LogsStream
Click to show internal directories.
Click to hide internal directories.