txnprocessor

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Providers

type Providers struct {
	OpStore                   common.OperationStore
	OperationProtocolProvider protocol.OperationProvider
}

Providers contains the providers required by the TxnProcessor.

type TxnProcessor

type TxnProcessor struct {
	*Providers
}

TxnProcessor processes Sidetree transactions by persisting them to an operation store.

func New

func New(providers *Providers) *TxnProcessor

New returns a new document operation processor.

func (*TxnProcessor) Process

func (p *TxnProcessor) Process(sidetreeTxn txn.SidetreeTxn, suffixes ...string) error

Process persists all of the operations for the given anchor.

Jump to

Keyboard shortcuts

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