Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProgressMismatch = errors.New("the progress file describes a different seed run")
Resuming would seed the wrong tiles, so the caller must reuse the same arguments or start over
Functions ¶
This section is empty.
Types ¶
type Progress ¶
type Progress struct {
Version int `json:"version"`
LayerName string `json:"layer"`
Bounds pkg.Bounds `json:"bounds"`
Zooms []uint `json:"zooms"`
Total uint64 `json:"total"`
Position uint64 `json:"position"`
}
How far a seed got. A position only means the same tile when the layer, bounds and zooms match
func LoadProgress ¶
A missing file just means nothing to resume, so both return values are nil
func NewProgress ¶
type SeedJob ¶
type SeedJob struct {
// contains filtered or unexported fields
}
func NewSeedJob ¶
type SingleZoomRange ¶ added in v0.13.0
Tiles within a single zoom level
func NewSingleZoomRange ¶ added in v0.13.0
func NewSingleZoomRange(b pkg.Bounds, zoom uint) (SingleZoomRange, error)
func (SingleZoomRange) Count ¶ added in v0.13.0
func (r SingleZoomRange) Count() uint64
Click to show internal directories.
Click to hide internal directories.