batchdbpbdsl

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchStored added in v0.3.0

func BatchStored(m dsl.Module, destModule types.ModuleID, origin *types2.StoreBatchOrigin)

func GarbageCollect added in v0.4.2

func GarbageCollect(m dsl.Module, destModule types.ModuleID, retentionIndex types4.RetentionIndex)

func LookupBatch added in v0.3.0

func LookupBatch[C any](m dsl.Module, destModule types.ModuleID, batchId types1.BatchID, context *C)

func LookupBatchResponse added in v0.3.0

func LookupBatchResponse(m dsl.Module, destModule types.ModuleID, found bool, txs []*types3.Transaction, origin *types2.LookupBatchOrigin)

func StoreBatch added in v0.3.0

func StoreBatch[C any](m dsl.Module, destModule types.ModuleID, batchId types1.BatchID, txs []*types3.Transaction, retentionIndex types4.RetentionIndex, context *C)

func UponBatchStored added in v0.3.0

func UponBatchStored[C any](m dsl.Module, handler func(context *C) error)

func UponEvent

func UponEvent[W types.Event_TypeWrapper[Ev], Ev any](m dsl.Module, handler func(ev *Ev) error)

func UponGarbageCollect added in v0.4.2

func UponGarbageCollect(m dsl.Module, handler func(retentionIndex types4.RetentionIndex) error)

func UponLookupBatch added in v0.3.0

func UponLookupBatch(m dsl.Module, handler func(batchId types2.BatchID, origin *types.LookupBatchOrigin) error)

func UponLookupBatchResponse added in v0.3.0

func UponLookupBatchResponse[C any](m dsl.Module, handler func(found bool, txs []*types3.Transaction, context *C) error)

func UponStoreBatch added in v0.3.0

func UponStoreBatch(m dsl.Module, handler func(batchId types2.BatchID, txs []*types3.Transaction, retentionIndex types4.RetentionIndex, origin *types.StoreBatchOrigin) error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL