worker

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2019 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCache

func CheckCache(c cache.Cache, key string) (bool, error)

Types

type LambdaWorker

type LambdaWorker struct {
	Worker
	// contains filtered or unexported fields
}

func (*LambdaWorker) RenderExtentTile

func (w *LambdaWorker) RenderExtentTile(t slippy.Tile) error

func (*LambdaWorker) RenderGeoJSONTile

func (w *LambdaWorker) RenderGeoJSONTile(t slippy.Tile) error

func (*LambdaWorker) RenderPNGTile

func (w *LambdaWorker) RenderPNGTile(t slippy.Tile) error

func (*LambdaWorker) RenderRasterzenTile

func (w *LambdaWorker) RenderRasterzenTile(t slippy.Tile) error

func (*LambdaWorker) RenderSVGTile

func (w *LambdaWorker) RenderSVGTile(t slippy.Tile) error

type LocalWorker

type LocalWorker struct {
	Worker

	SeedSVG bool
	SeedPNG bool
	// contains filtered or unexported fields
}

func (*LocalWorker) RenderExtentTile

func (w *LocalWorker) RenderExtentTile(t slippy.Tile) error

func (*LocalWorker) RenderGeoJSONTile

func (w *LocalWorker) RenderGeoJSONTile(t slippy.Tile) error

func (*LocalWorker) RenderPNGTile

func (w *LocalWorker) RenderPNGTile(t slippy.Tile) error

func (*LocalWorker) RenderRasterzenTile

func (w *LocalWorker) RenderRasterzenTile(t slippy.Tile) error

func (*LocalWorker) RenderSVGTile

func (w *LocalWorker) RenderSVGTile(t slippy.Tile) error

type Worker

type Worker interface {
	RenderRasterzenTile(slippy.Tile) error
	RenderSVGTile(slippy.Tile) error
	RenderPNGTile(slippy.Tile) error
	RenderGeoJSONTile(slippy.Tile) error
	RenderExtentTile(slippy.Tile) error
}

func NewLambdaWorker

func NewLambdaWorker(dsn map[string]string, function string, c cache.Cache, nz_opts *nextzen.Options, svg_opts *tile.RasterzenSVGOptions) (Worker, error)

func NewLocalWorker

func NewLocalWorker(c cache.Cache, nz_opts *nextzen.Options, svg_opts *tile.RasterzenSVGOptions) (Worker, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL