mapserver/tiledb/accessor.go

19 lines
287 B
Go
Raw Normal View History

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