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

19 lines
285 B
Go
Raw Normal View History

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