Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.