Documentation ¶ Index ¶ type Bucket func OpenBucket(prefix string, valueSize int, create bool) (*Bucket, error) func (b *Bucket) Close() error func (b *Bucket) Read(i byte) ([]Entry, error) func (b *Bucket) Write(hash [32]byte, value []byte) error type Entry Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Bucket ¶ type Bucket struct { // contains filtered or unexported fields } Bucket is a collection of 256 files. func OpenBucket ¶ func OpenBucket(prefix string, valueSize int, create bool) (*Bucket, error) func (*Bucket) Close ¶ func (b *Bucket) Close() error func (*Bucket) Read ¶ func (b *Bucket) Read(i byte) ([]Entry, error) func (*Bucket) Write ¶ func (b *Bucket) Write(hash [32]byte, value []byte) error type Entry ¶ type Entry struct { Hash [32]byte Value []byte } Source Files ¶ View all Source files bucket.go bucket_mmap.go Click to show internal directories. Click to hide internal directories.