1
0
forked from MTSR/mapserver
mapserver/db/accessor.go
Thomas Rudin bc223722af gofmt
2019-01-13 16:37:03 +01:00

18 lines
284 B
Go

package db
import (
"mapserver/coords"
)
type Block struct {
Pos coords.MapBlockCoords
Data []byte
Mtime int64
}
type DBAccessor interface {
Migrate() error
FindLatestBlocks(mintime int64, limit int) ([]Block, error)
GetBlock(pos coords.MapBlockCoords) (*Block, error)
}