observer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ledger

type Ledger interface {
	RegisterForSidetreeTxn() <-chan []txn.SidetreeTxn
}

Ledger interface to access ledger txn.

type Observer added in v0.1.3

type Observer struct {
	*Providers
	// contains filtered or unexported fields
}

Observer receives transactions over a channel and processes them by storing them to an operation store.

func New added in v0.1.3

func New(providers *Providers) *Observer

New returns a new observer.

func (*Observer) Start added in v0.1.3

func (o *Observer) Start()

Start starts observer routines.

func (*Observer) Stop added in v0.1.3

func (o *Observer) Stop()

Stop stops the observer.

type OperationFilter added in v0.1.3

type OperationFilter interface {
	Filter(uniqueSuffix string, ops []*operation.AnchoredOperation) ([]*operation.AnchoredOperation, error)
}

OperationFilter filters out operations before they are persisted.

type OperationStore

type OperationStore interface {
	Put(ops []*operation.AnchoredOperation) error
}

OperationStore interface to access operation store.

type Providers added in v0.1.3

type Providers struct {
	Ledger                 Ledger
	ProtocolClientProvider protocol.ClientProvider
}

Providers contains all of the providers required by the TxnProcessor.

Jump to

Keyboard shortcuts

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