forked from MTSR/mapserver
19 lines
284 B
Go
19 lines
284 B
Go
package tiledb
|
|
|
|
import (
|
|
"mapserver/coords"
|
|
)
|
|
|
|
type Tile struct {
|
|
Pos coords.TileCoords
|
|
Data []byte
|
|
Mtime int64
|
|
}
|
|
|
|
type DBAccessor interface {
|
|
Migrate() error
|
|
GetTile(pos coords.TileCoords) (*Tile, error)
|
|
SetTile(tile *Tile) error
|
|
RemoveTile(pos coords.TileCoords) error
|
|
}
|