context

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Providers added in v0.1.5

type Providers struct {
	TxnProvider                txnServiceProvider
	DCASProvider               dcasClientProvider
	OffLedgerProvider          offLedgerClientProvider
	OperationQueueProvider     operationQueueProvider
	LedgerProvider             ledgerProvider
	OperationProcessorProvider cachingOpProcessorProvider
}

Providers contains the providers required by the SidetreeContext

type SidetreeContext

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

SidetreeContext implements 'Fabric' version of Sidetree node context

func New

func New(
	channelID, namespace string,
	dcasCfg config.DCAS,
	casClient casApi.Client,
	protocolVersions []protocolApi.Version,
	providers *Providers) (*SidetreeContext, error)

New creates new Sidetree context

func (*SidetreeContext) Anchor added in v0.6.0

func (m *SidetreeContext) Anchor() batch.AnchorWriter

Anchor returns anchor writer

func (*SidetreeContext) CAS

func (m *SidetreeContext) CAS() casApi.Client

CAS returns content addressable storage client

func (*SidetreeContext) Namespace added in v0.1.1

func (m *SidetreeContext) Namespace() string

Namespace returns the namespace

func (*SidetreeContext) OperationQueue added in v0.1.3

func (m *SidetreeContext) OperationQueue() cutter.OperationQueue

OperationQueue returns the queue containing the pending operations

func (*SidetreeContext) Protocol

func (m *SidetreeContext) Protocol() protocolApi.Client

Protocol returns protocol client

Directories

Path Synopsis
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
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