config

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DCAS

type DCAS struct {
	ChaincodeName string
	Collection    string
}

DCAS holds Distributed Content Addressable Store (DCAS) configuration

type Observer added in v0.1.4

type Observer struct {
	// Period is the scheduled period for processing blocks
	Period time.Duration
	// MetaDataChaincodeName is the name of the chaincode that stores metadata
	MetaDataChaincodeName string
	// MaxAttempts is the maximum number of attempts to process a transaction. When a transient error
	// occurs then a retry is attempted at the next scheduled interval. After processing has failed
	// MaxAttempts times, the batch is lost and processing continues at the next transaction in the block.
	MaxAttempts int
}

Observer holds Sidetree Observer config

type Sidetree

type Sidetree struct {
	ChaincodeName      string
	Collection         string
	BatchWriterTimeout time.Duration
	MethodContext      []string
	EnableBase         bool
}

Sidetree holds general Sidetree configuration

type SidetreePeer

type SidetreePeer struct {
	Observer Observer
}

SidetreePeer holds peer-specific Sidetree config

type SidetreeService

type SidetreeService interface {
	LoadProtocols(namespace string) (map[string]protocolApi.Protocol, error)
	LoadSidetree(namespace string) (Sidetree, error)
	LoadSidetreePeer(mspID, peerID string) (SidetreePeer, error)
	LoadSidetreeHandlers(mspID, peerID string) ([]sidetreehandler.Config, error)
	LoadFileHandlers(mspID, peerID string) ([]filehandler.Config, error)
	LoadDCASHandlers(mspID, peerID string) ([]dcashandler.Config, error)
	LoadBlockchainHandlers(mspID, peerID string) ([]blockchainhandler.Config, error)
	LoadDiscoveryHandlers(mspID, peerID string) ([]discoveryhandler.Config, error)
	LoadDCAS() (DCAS, error)
}

SidetreeService is a service that loads Sidetree configuration

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