Documentation ¶
Index ¶
- type Batch
- func (b *Batch) CreateLink(link *cs.Link) (*types.Bytes32, error)
- func (b *Batch) FindSegments(filter *store.SegmentFilter) (cs.SegmentSlice, error)
- func (b *Batch) GetMapIDs(filter *store.MapFilter) ([]string, error)
- func (b *Batch) GetSegment(linkHash *types.Bytes32) (segment *cs.Segment, err error)
- func (b *Batch) Write() (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/sdk/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/sdk/store.LinkWriter.CreateLink.
func (*Batch) FindSegments ¶
func (b *Batch) FindSegments(filter *store.SegmentFilter) (cs.SegmentSlice, error)
FindSegments returns the union of segments in the store and not committed yet.
func (*Batch) GetSegment ¶
GetSegment returns a segment from the cache or delegates the call to the store.
Click to show internal directories.
Click to hide internal directories.