Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GlobalMSPID is used as the consortium-wide MSP ID (i.e. non org-specific) GlobalMSPID = "general" // ProtocolComponentName is the name of the Sidetree protocol config component ProtocolComponentName = "protocol" // SidetreeAppName is the '=name of the Sidetree config application SidetreeAppName = "sidetree" // SidetreeAppVersion is the version of the Sidetree config application SidetreeAppVersion = "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) SidetreeListenURL ¶
SidetreeListenURL returns the URL on which the Sidetree REST service should be started
type SidetreePeer ¶
SidetreePeer holds peer-specific Sidetree config
type SidetreeProvider ¶
type SidetreeProvider struct {
// contains filtered or unexported fields
}
SidetreeProvider manages Sidetree configuration for the various channels
func NewSidetreeProvider ¶
func NewSidetreeProvider(configProvider configServiceProvider) *SidetreeProvider
NewSidetreeProvider returns a new SidetreeProvider instance
func (*SidetreeProvider) ForChannel ¶
func (p *SidetreeProvider) ForChannel(channelID string) SidetreeService
ForChannel returns the service for the given channel
type SidetreeService ¶
type SidetreeService interface { LoadProtocols(namespace string) (map[string]protocolApi.Protocol, error) LoadSidetree(namespace string) (Sidetree, error) LoadSidetreePeer(mspID, peerID string) (SidetreePeer, error) }
SidetreeService is a service that loads Sidetree configuration
Click to show internal directories.
Click to hide internal directories.