Versions in this module Expand all Collapse all v0 v0.1.0 Aug 30, 2018 Changes in this version + var ErrKeyExist = errors.New("key already exists") + var ErrKeyNotFound = errors.New("key not found") + var ErrUnsupportedOpenFlags = errors.New("unsupported open flags") + type Bytes []byte + func (r *Bytes) UnmarshalBinary(data []byte) error + func (r Bytes) MarshalBinary() ([]byte, error) + type DB struct + func OpenHash(path string, flags int, mode os.FileMode, info *HashInfo) (*DB, error) + func (db *DB) Close() error + func (db *DB) Cursor(key RWValue, data WValue) error + func (db *DB) Delete(key RValue) (bool, error) + func (db *DB) Fd() (uintptr, error) + func (db *DB) First(key, data WValue) error + func (db *DB) Get(key RValue, data WValue) error + func (db *DB) Next(key, data WValue) error + func (db *DB) Put(key, data RValue) error + func (db *DB) PutNew(key, data RValue) error + func (db *DB) Sync() error + type HashInfo struct + BucketSize int + ByteOrder int + CacheSize int + FillFactor int + Hash func([]byte) uint32 + SizeHint int + type RValue interface + MarshalBinary func() ([]byte, error) + type RWValue interface + MarshalBinary func() ([]byte, error) + UnmarshalBinary func([]byte) error + type String string + func (s *String) UnmarshalBinary(data []byte) error + func (s String) MarshalBinary() ([]byte, error) + type WValue interface + UnmarshalBinary func([]byte) error