observer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observer

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

Observer observes the ledger for new anchor files and updates the document store accordingly

func New

func New(channelID string, providers *Providers) *Observer

New returns a new Observer

func (*Observer) Start

func (o *Observer) Start() error

Start starts channel observer

func (*Observer) Stop

func (o *Observer) Stop()

Stop stops the channel observer routines

type Providers added in v0.1.1

type Providers struct {
	DCAS           common.DCASClientProvider
	OffLedger      common.OffLedgerClientProvider
	BlockPublisher common.BlockPublisherProvider
	Blockchain     common.BlockchainClientProvider
}

Providers are the providers required by the observer

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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