Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperationStore ¶
type OperationStore interface {
Put(ops []*operation.AnchoredOperation) error
}
OperationStore interface to access operation store.
type Providers ¶
type Providers struct { OpStore 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) error
Process persists all of the operations for the given anchor.
Click to show internal directories.
Click to hide internal directories.