Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutableSegment ¶
type MutableSegment struct { Segment PutFunc func(key, value []byte) error DeleteFunc func(key []byte) error }
func (*MutableSegment) Delete ¶
func (m *MutableSegment) Delete(key []byte) error
func (*MutableSegment) Put ¶
func (m *MutableSegment) Put(key, value []byte) error
type Segment ¶
type Segment struct { CloseFunc func() error NameFunc func() string PathFunc func() string HasFunc func(key []byte) (bool, error) GetFunc func(key []byte) ([]byte, error) IteratorFunc func() ethdb.SegmentIterator }
func (*Segment) Iterator ¶
func (m *Segment) Iterator() ethdb.SegmentIterator
type SegmentCompactor ¶
type SegmentCompactor struct { CompactSegmentFunc func(ctx context.Context, table string, s *ethdb.LDBSegment) (ethdb.Segment, error) UncompactSegmentFunc func(ctx context.Context, table string, s ethdb.Segment) (*ethdb.LDBSegment, error) }
func (*SegmentCompactor) CompactSegment ¶
func (m *SegmentCompactor) CompactSegment(ctx context.Context, table string, s *ethdb.LDBSegment) (ethdb.Segment, error)
func (*SegmentCompactor) UncompactSegment ¶
func (m *SegmentCompactor) UncompactSegment(ctx context.Context, table string, s ethdb.Segment) (*ethdb.LDBSegment, error)
type SegmentOpener ¶
type SegmentOpener struct { ListSegmentNamesFunc func(path, table string) ([]string, error) OpenSegmentFunc func(table, name, path string) (ethdb.Segment, error) }
func (*SegmentOpener) ListSegmentNames ¶
func (m *SegmentOpener) ListSegmentNames(path, table string) ([]string, error)
func (*SegmentOpener) OpenSegment ¶
func (m *SegmentOpener) OpenSegment(table, name, path string) (ethdb.Segment, error)
Click to show internal directories.
Click to hide internal directories.