Documentation ¶
Index ¶
- type BoundedRange
- type Range
- func (r *Range) Contains(blockNum uint64) bool
- func (r *Range) Equals(other *Range) bool
- func (r *Range) IsAbove(blockNum uint64) bool
- func (r *Range) IsBelow(blockNum uint64) bool
- func (r *Range) IsEmpty() bool
- func (r *Range) IsOutOfBounds(blockNum uint64) bool
- func (r *Range) Len() uint64
- func (r *Range) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (r *Range) Size() uint64
- func (r *Range) Split(chunkSize uint64) []*Range
- func (r *Range) String() string
- type Ranges
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundedRange ¶ added in v0.1.0
type BoundedRange struct { *Range // contains filtered or unexported fields }
BoundedRange is used to track corresponding ranges in chunks, respecting the boundaries
func NewBoundedRange ¶ added in v0.1.0
func NewBoundedRange(moduleInitBlock, boundInterval, requestStartBlock, requestExclusiveEndBlock uint64) *BoundedRange
func (*BoundedRange) AlignsWithBoundaries ¶ added in v0.1.0
func (r *BoundedRange) AlignsWithBoundaries() bool
Whether both sides of the range are aligned with interval boundaries.
func (*BoundedRange) AlignsWithLowerBound ¶ added in v0.1.0
func (r *BoundedRange) AlignsWithLowerBound() bool
func (*BoundedRange) AlignsWithUpperBound ¶ added in v0.1.0
func (r *BoundedRange) AlignsWithUpperBound() bool
func (*BoundedRange) IsPartial ¶ added in v0.1.0
func (r *BoundedRange) IsPartial() bool
func (*BoundedRange) NextBoundary ¶ added in v0.1.0
func (r *BoundedRange) NextBoundary() *BoundedRange
type Range ¶
type Range struct { StartBlock uint64 `json:"start_block"` ExclusiveEndBlock uint64 `json:"exclusive_end_block"` }
func ParseRange ¶ added in v0.0.14
func (*Range) IsOutOfBounds ¶ added in v0.1.0
func (*Range) MarshalLogObject ¶
func (r *Range) MarshalLogObject(enc zapcore.ObjectEncoder) error
type Ranges ¶
type Ranges []*Range
func ParseRanges ¶ added in v0.0.14
func (Ranges) MergedBuckets ¶ added in v0.0.14
Click to show internal directories.
Click to hide internal directories.