1
0
forked from MTSR/mapserver
mapserver/tiledb/accessor.go

19 lines
284 B
Go
Raw Normal View History

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