Documentation
¶
Index ¶
- type Batch
- func (b *Batch) CreateLink(ctx context.Context, link *cs.Link) (_ *types.Bytes32, err error)
- func (b *Batch) FindSegments(ctx context.Context, filter *store.SegmentFilter) (_ cs.SegmentSlice, err error)
- func (b *Batch) GetMapIDs(ctx context.Context, filter *store.MapFilter) (_ []string, err error)
- func (b *Batch) GetSegment(ctx context.Context, linkHash *types.Bytes32) (segment *cs.Segment, err error)
- func (b *Batch) Write(ctx context.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
Batch can be used as a base class for types that want to implement github.com/stratumn/go-indigocore/store.Batch. All operations are stored in arrays and can be replayed. Only the Write method must be implemented.
func (*Batch) CreateLink ¶
CreateLink implements github.com/stratumn/go-indigocore/store.LinkWriter.CreateLink.
func (*Batch) FindSegments ¶
func (b *Batch) FindSegments(ctx context.Context, filter *store.SegmentFilter) (_ cs.SegmentSlice, err error)
FindSegments returns the union of segments in the store and not committed yet.
Click to show internal directories.
Click to hide internal directories.