filecache

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MAXCOUNT = 1000
View Source
const MAXENTRYSIZE = 100000

Variables

This section is empty.

Functions

func EncodeMetatile

func EncodeMetatile(w io.Writer, coord gopnik.TileCoord, tiles []gopnik.Tile) error

func GetRawTileFromMetatile

func GetRawTileFromMetatile(r io.ReadSeeker, coord gopnik.TileCoord) ([]byte, error)

func MetatileHashPath

func MetatileHashPath(outPath string, coord gopnik.TileCoord) (dirName, fName string)

Types

type FileCachePlugin

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

func (*FileCachePlugin) Configure

func (self *FileCachePlugin) Configure(cfg json.RawMessage) error

func (*FileCachePlugin) Get

func (self *FileCachePlugin) Get(coord gopnik.TileCoord) ([]byte, error)

func (*FileCachePlugin) Set

func (self *FileCachePlugin) Set(coord gopnik.TileCoord, tiles []gopnik.Tile) error

type FileCachePluginFactory

type FileCachePluginFactory struct {
}

func (*FileCachePluginFactory) Name

func (self *FileCachePluginFactory) Name() string

func (*FileCachePluginFactory) New

func (self *FileCachePluginFactory) New(cfg json.RawMessage) (interface{}, error)

Jump to

Keyboard shortcuts

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