1
0
forked from MTSR/mapserver
mapserver/db/accessor.go
2019-01-07 22:27:24 +01:00

19 lines
421 B
Go

package db
type Block struct {
posx, posy, posz int
data []byte
mtime int64
}
type DBAccessor interface {
IsMigrated() (bool, error)
Migrate() error
FindLatestBlocks(time int64, limit int) []Block
//Block range lookup
FindBlocks(posx int, posz int, posystart int, posyend int) []Block
GetXRange(posystart int, posyend int) (int, int)
GetZRange(posystart int, posyend int) (int, int)
}