Documentation ¶
Index ¶
- type Batch
- func (b *Batch) CreateLink(ctx context.Context, link *chainscript.Link) (_ chainscript.LinkHash, err error)
- func (b *Batch) FindSegments(ctx context.Context, filter *store.SegmentFilter) (_ *types.PaginatedSegments, err error)
- func (b *Batch) GetMapIDs(ctx context.Context, filter *store.MapFilter) (_ []string, err error)
- func (b *Batch) GetSegment(ctx context.Context, linkHash chainscript.LinkHash) (segment *chainscript.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 ¶
type Batch struct { Links []*chainscript.Link // contains filtered or unexported fields }
Batch can be used as a base class for types that want to implement github.com/stratumn/go-core/store.Batch. All operations are stored in arrays and can be replayed. Only the Write method must be implemented.
func (*Batch) CreateLink ¶
func (b *Batch) CreateLink(ctx context.Context, link *chainscript.Link) (_ chainscript.LinkHash, err error)
CreateLink implements github.com/stratumn/go-core/store.LinkWriter.CreateLink.
func (*Batch) FindSegments ¶
func (b *Batch) FindSegments(ctx context.Context, filter *store.SegmentFilter) (_ *types.PaginatedSegments, 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.