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

15 lines
345 B
Go
Raw Normal View History

2019-01-08 00:27:24 +03:00
package db
type Block struct {
posx, posy, posz int
data []byte
mtime int64
}
type DBAccessor interface {
Migrate() error
2019-01-08 10:57:50 +03:00
FindLatestBlocks(mintime int64, limit int) ([]Block, error)
FindBlocks(posx int, posz int, posystart int, posyend int) ([]Block, error)
CountBlocks(x1, x2, y1, y2, z1, z2 int) (int, error)
2019-01-08 00:27:24 +03:00
}