2019-01-11 16:00:40 +01:00
|
|
|
package tiledb
|
|
|
|
|
|
|
|
import (
|
|
|
|
"mapserver/coords"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Tile struct {
|
2019-01-13 16:37:03 +01:00
|
|
|
Pos coords.TileCoords
|
|
|
|
Data []byte
|
|
|
|
Mtime int64
|
2019-01-11 16:00:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type DBAccessor interface {
|
|
|
|
Migrate() error
|
2019-01-17 08:53:07 +01:00
|
|
|
GetTile(pos coords.TileCoords) (*Tile, error)
|
2019-01-16 16:36:28 +01:00
|
|
|
SetTile(tile *Tile) error
|
2019-01-17 11:20:03 +01:00
|
|
|
RemoveTile(pos coords.TileCoords) error
|
2019-01-11 16:00:40 +01:00
|
|
|
}
|