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

19 lines
275 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
2019-01-14 14:48:46 +03:00
GetTile(layerId int, pos coords.TileCoords) (*Tile, error)
2019-01-16 18:36:28 +03:00
SetTile(tile *Tile) error
2019-01-11 18:00:40 +03:00
}