gopnik

package
v0.0.0-...-ebda00a Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachePluginInterface

type CachePluginInterface interface {
	Get(TileCoord) ([]byte, error)
	Set(TileCoord, []Tile) error
}

type ClusterPluginInterface

type ClusterPluginInterface interface {
	GetRenders() ([]string, error)
}

type FilterPluginInterface

type FilterPluginInterface interface {
	Filter(TileCoord) (TileCoord, error)
}

type KVStore

type KVStore interface {
	Get(key string) ([]byte, error)
	Set(key string, value []byte) error
	Delete(key string) error
}

type Metatiler

type Metatiler struct {
	// contains filtered or unexported fields
}

func NewMetatiler

func NewMetatiler(metaSize uint64, tileSize uint64) *Metatiler

func (*Metatiler) MetaSize

func (self *Metatiler) MetaSize(zoom uint64) uint64

func (*Metatiler) NTiles

func (self *Metatiler) NTiles(zoom uint64) uint64

func (*Metatiler) TileSize

func (self *Metatiler) TileSize() uint64

func (*Metatiler) TileToMetatile

func (self *Metatiler) TileToMetatile(coord *TileCoord) TileCoord

type MonitoringPluginInterface

type MonitoringPluginInterface interface {
	Exporter() (func(map[string]float64), error)
}

type RGBAColor

type RGBAColor struct {
	R, G, B, A uint32
}

func (RGBAColor) RGBA

func (self RGBAColor) RGBA() (r, g, b, a uint32)

type Tile

type Tile struct {
	Image       []byte
	SingleColor color.Color
}

func NewTile

func NewTile(rawImage []byte) (*Tile, error)

type TileCoord

type TileCoord struct {
	X    uint64
	Y    uint64
	Zoom uint64
	Size uint64
	Tags []string
}

func (*TileCoord) Equals

func (self *TileCoord) Equals(coord *TileCoord) bool

Jump to

Keyboard shortcuts

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