Documentation ¶
Index ¶
Constants ¶
View Source
const NodeSizeInBytes = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { GetBlockData(pos spatial.BlockPosition) ([]byte, error) Close() }
type MapBlock ¶
type MapBlock struct {
// contains filtered or unexported fields
}
func DecodeMapBlock ¶
func (*MapBlock) ResolveName ¶
type PostgresBackend ¶
type PostgresBackend struct {
// contains filtered or unexported fields
}
func NewPostgresBackend ¶
func NewPostgresBackend(dsn string) (*PostgresBackend, error)
func (*PostgresBackend) Close ¶
func (p *PostgresBackend) Close()
func (*PostgresBackend) GetBlockData ¶
func (p *PostgresBackend) GetBlockData(pos spatial.BlockPosition) ([]byte, error)
type ReaderCounter ¶
type ReaderCounter struct {
// contains filtered or unexported fields
}
func NewReaderCounter ¶
func NewReaderCounter(r *bytes.Reader) *ReaderCounter
func (*ReaderCounter) ReadByte ¶
func (r *ReaderCounter) ReadByte() (byte, error)
Click to show internal directories.
Click to hide internal directories.