events

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchStored

func BatchStored(dest t.ModuleID, origin *batchdbpb.StoreBatchOrigin) *eventpb.Event

BatchStored is a response to a StoreBatch event.

func Event

func Event(dest t.ModuleID, ev *batchdbpb.Event) *eventpb.Event

Event creates an eventpb.Event out of a batchdbpb.Event.

func LookupBatch

func LookupBatch(dest t.ModuleID, batchID t.BatchID, origin *batchdbpb.LookupBatchOrigin) *eventpb.Event

LookupBatch is used to pull a batch with its metadata from the local batch database.

func LookupBatchResponse

func LookupBatchResponse(dest t.ModuleID, found bool, txs []*requestpb.Request, metadata []byte, origin *batchdbpb.LookupBatchOrigin) *eventpb.Event

LookupBatchResponse is a response to a LookupBatch event.

func StoreBatch

func StoreBatch(dest t.ModuleID, batchID t.BatchID, txIDs []t.TxID, txs []*requestpb.Request, metadata []byte, origin *batchdbpb.StoreBatchOrigin) *eventpb.Event

StoreBatch is used to store a new batch in the local batch database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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