Documentation ¶ Index ¶ Constants type RawDB func New(home string, maxSize int64) (*RawDB, error) func (r *RawDB) Close() error func (r *RawDB) Get(key []byte) ([]byte, error) func (r *RawDB) Has(key []byte) (bool, error) func (r *RawDB) Insert(key, value []byte) error func (r *RawDB) Open() error Constants ¶ View Source const ( DefaultMaxFileSize = 256 * 1024 * 1024 // 256MB file max; will never be bigger. ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type RawDB ¶ type RawDB struct { // contains filtered or unexported fields } func New ¶ func New(home string, maxSize int64) (*RawDB, error) func (*RawDB) Close ¶ func (r *RawDB) Close() error func (*RawDB) Get ¶ func (r *RawDB) Get(key []byte) ([]byte, error) func (*RawDB) Has ¶ func (r *RawDB) Has(key []byte) (bool, error) func (*RawDB) Insert ¶ func (r *RawDB) Insert(key, value []byte) error func (*RawDB) Open ¶ func (r *RawDB) Open() error Source Files ¶ View all Source files rawdb.go Click to show internal directories. Click to hide internal directories.