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

Documentation

Index

Constants

View Source
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 NewPeer

func NewPeer() *Peer

NewPeer returns a new peer config

func (*Peer) DiscoveryCacheExpirationTime added in v0.1.4

func (c *Peer) DiscoveryCacheExpirationTime() time.Duration

DiscoveryCacheExpirationTime is the expiration time for the Discovery services cache.

func (*Peer) DiscoveryGossipMaxAttempts added in v0.1.4

func (c *Peer) DiscoveryGossipMaxAttempts() int

DiscoveryGossipMaxAttempts is the number of times a Gossip pull for services from other peers is attempted.

func (*Peer) DiscoveryGossipMaxPeers added in v0.1.4

func (c *Peer) DiscoveryGossipMaxPeers() int

DiscoveryGossipMaxPeers is the maximum number of peers to ask for services data on each attempt.

func (*Peer) DiscoveryGossipTimeout added in v0.1.4

func (c *Peer) DiscoveryGossipTimeout() time.Duration

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

func (c *Peer) LevelDBOpQueueBasePath() string

LevelDBOpQueueBasePath returns the base path of the directory to store LevelDB operation queues

func (*Peer) SidetreeAPIToken added in v0.1.3

func (c *Peer) SidetreeAPIToken(name string) string

SidetreeAPIToken returns api token

func (*Peer) SidetreeListenPort added in v0.1.4

func (c *Peer) SidetreeListenPort() int

SidetreeListenPort returns the port on which the REST services are listening

func (*Peer) SidetreeListenURL

func (c *Peer) SidetreeListenURL() (string, error)

SidetreeListenURL returns the URL on which the Sidetree REST service should be started

func (*Peer) SidetreeTLSCertificate added in v0.1.3

func (c *Peer) SidetreeTLSCertificate() string

SidetreeTLSCertificate returns the tls certificate

func (*Peer) SidetreeTLSKey added in v0.1.3

func (c *Peer) SidetreeTLSKey() string

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

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