Documentation ¶
Index ¶
Constants ¶
View Source
const ( TestModeOff testMode = iota TestModeSuccess TestModeFailure TestModeTimeNow )
TestModes control how peer connect behaves under test.
Variables ¶
View Source
var Commit string
Commit is the latest git short commit hash.
View Source
var TestMode = TestModeOff
TestMode determines whether the project is running under test.
View Source
var Version string
Version is the current git tag of dapr.
Functions ¶
func IsTestingFailurePath ¶
func IsTestingFailurePath() bool
IsTestingFailurePath returns true if we're stubbing a failing code path.
func IsTestingModeOff ¶
func IsTestingModeOff() bool
IsTestingModeOff returns true if we're not testing.
func IsTestingSuccessPath ¶
func IsTestingSuccessPath() bool
IsTestingSuccessPath returns true if we're stubbing a successful code path.
func IsTestingTime ¶
func IsTestingTime() bool
IsTestingTime returns true if we're stubbing time.Now().
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package config stores all possible runtime configuration settings.
|
Package config stores all possible runtime configuration settings. |
Package logger implements logging functions for simple and verbose logging, with a context.
|
Package logger implements logging functions for simple and verbose logging, with a context. |
Package peer implements functions and types for representing peers on the Dash network.
|
Package peer implements functions and types for representing peers on the Dash network. |
peerdiscovery
Package peerdiscovery is respsonsible for bootstrapping the peerstore with reachable nodes on the Dash network.
|
Package peerdiscovery is respsonsible for bootstrapping the peerstore with reachable nodes on the Dash network. |
peermanager
Package peermanager is respsonsible for maintaining a required minimum number of connections to peers on the Dash network.
|
Package peermanager is respsonsible for maintaining a required minimum number of connections to peers on the Dash network. |
peerstats
Package peerstats implements functions and types for tracking peer stats.
|
Package peerstats implements functions and types for tracking peer stats. |
peerstore
Package peerstore is respsonsible for storing reachable peers on the Dash network.
|
Package peerstore is respsonsible for storing reachable peers on the Dash network. |
peersystem
Package peersystem is respsonsible for initialising the peer subsystem in the correct order.
|
Package peersystem is respsonsible for initialising the peer subsystem in the correct order. |
Click to show internal directories.
Click to hide internal directories.