Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RangeSegment ¶
RangeSegment segment information for split range
type RangeSplit ¶
type RangeSplit struct {
// contains filtered or unexported fields
}
RangeSplit utility for split range into segments
func NewRangeSplit ¶
func NewRangeSplit(offset int64, step int, size int64, maxsize int64) RangeSplit
NewRangeSplit is creator for RangeSplit
func (RangeSplit) AllParts ¶
func (r RangeSplit) AllParts() chan RangeSegment
AllParts provides a channel as iterable object to range segments
Click to show internal directories.
Click to hide internal directories.