Documentation ¶
Index ¶
- Constants
- type Peer
- func (c *Peer) DiscoveryCacheExpirationTime() time.Duration
- func (c *Peer) DiscoveryGossipMaxAttempts() int
- func (c *Peer) DiscoveryGossipMaxPeers() int
- func (c *Peer) DiscoveryGossipTimeout() time.Duration
- func (c *Peer) LevelDBOpQueueBasePath() string
- func (c *Peer) SidetreeAPIToken(name string) string
- func (c *Peer) SidetreeListenPort() int
- func (c *Peer) SidetreeListenURL() (string, error)
- func (c *Peer) SidetreeTLSCertificate() string
- func (c *Peer) SidetreeTLSKey() string
- type SidetreeProvider
Constants ¶
const ( // GlobalMSPID is used as the consortium-wide MSP ID (i.e. non org-specific) GlobalMSPID = "general" // SidetreeAppVersion is the version of the Sidetree config application SidetreeAppVersion = "1" // ProtocolComponentName is the name of the Sidetree protocol config component ProtocolComponentName = "protocol" // SidetreePeerAppName is the name of the Sidetree config application SidetreePeerAppName = "sidetree" // SidetreePeerAppVersion is the version of the Sidetree config application SidetreePeerAppVersion = "1" // SidetreeHandlerComponentVersion is the version of the Sidetree handler SidetreeHandlerComponentVersion = "0.1.3" // FileHandlerAppName is the name of the file handler config application FileHandlerAppName = "file-handler" // FileHandlerAppVersion is the version of the file handler config application FileHandlerAppVersion = "1" // DCASHandlerAppName is the name of the DCAS handler config application DCASHandlerAppName = "dcas-handler" // DCASHandlerAppVersion is the version of the DCAS handler config application DCASHandlerAppVersion = "1" // DCASHandlerComponentVersion is the supported version of the DCAS handler config application DCASHandlerComponentVersion = "0.1.3" // BlockchainHandlerAppName is the name of the blockchain handler config application BlockchainHandlerAppName = "blockchain-handler" // BlockchainHandlerAppVersion is the version of the blockchain handler config application BlockchainHandlerAppVersion = "1" // BlockchainHandlerComponentVersion is the supported version of the blockchain handler config application BlockchainHandlerComponentVersion = "0.1.3" // DiscoveryHandlerAppName is the name of the Discovery handler config application DiscoveryHandlerAppName = "discovery-handler" // DiscoveryHandlerAppVersion is the version of the Discovery handler config application DiscoveryHandlerAppVersion = "1" // DiscoveryHandlerComponentVersion is the supported version of the Discovery handler config application DiscoveryHandlerComponentVersion = "0.1.4" // DCASAppName is the name of the DCAS config application DCASAppName = "sidetree-dcas" // DCASAppVersion is the version of the DCAS config application DCASAppVersion = "1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
Peer holds the Sidetree peer config
func (*Peer) DiscoveryCacheExpirationTime ¶ added in v0.1.4
DiscoveryCacheExpirationTime is the expiration time for the Discovery services cache.
func (*Peer) DiscoveryGossipMaxAttempts ¶ added in v0.1.4
DiscoveryGossipMaxAttempts is the number of times a Gossip pull for services from other peers is attempted.
func (*Peer) DiscoveryGossipMaxPeers ¶ added in v0.1.4
DiscoveryGossipMaxPeers is the maximum number of peers to ask for services data on each attempt.
func (*Peer) DiscoveryGossipTimeout ¶ added in v0.1.4
DiscoveryGossipTimeout is the time that that the Discovery service waits for a Gossip response from other peers (for services) before timing out.
func (*Peer) LevelDBOpQueueBasePath ¶ added in v0.1.3
LevelDBOpQueueBasePath returns the base path of the directory to store LevelDB operation queues
func (*Peer) SidetreeAPIToken ¶ added in v0.1.3
SidetreeAPIToken returns api token
func (*Peer) SidetreeListenPort ¶ added in v0.1.4
SidetreeListenPort returns the port on which the REST services are listening
func (*Peer) SidetreeListenURL ¶
SidetreeListenURL returns the URL on which the Sidetree REST service should be started
func (*Peer) SidetreeTLSCertificate ¶ added in v0.1.3
SidetreeTLSCertificate returns the tls certificate
func (*Peer) SidetreeTLSKey ¶ added in v0.1.3
SidetreeTLSKey returns the tls key
type SidetreeProvider ¶
type SidetreeProvider struct {
// contains filtered or unexported fields
}
SidetreeProvider manages Sidetree configuration for the various channels
func NewSidetreeProvider ¶
func NewSidetreeProvider(configProvider configServiceProvider, registry validatorRegistry, tokenProvider tokenProvider) *SidetreeProvider
NewSidetreeProvider returns a new SidetreeProvider instance
func (*SidetreeProvider) ForChannel ¶
func (p *SidetreeProvider) ForChannel(channelID string) config.SidetreeService
ForChannel returns the service for the given channel