Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KadDhtPeerDiscoveryConfig ¶
type KadDhtPeerDiscoveryConfig struct {
Enabled bool
Type string
RefreshIntervalInSec uint32
ProtocolID string
InitialPeerList []string
BucketSize uint32
RoutingTableRefreshIntervalInSec uint32
}
KadDhtPeerDiscoveryConfig will hold the kad-dht discovery config settings
type NodeConfig ¶
type NodeConfig struct {
Port string
MaximumExpectedPeerCount uint64
ThresholdMinConnectedPeers uint32
MinNumPeersToWaitForOnBootstrap uint32
}
NodeConfig will hold basic p2p settings
type P2PConfig ¶
type P2PConfig struct {
Node NodeConfig
KadDhtPeerDiscovery KadDhtPeerDiscoveryConfig
Sharding ShardingConfig
}
P2PConfig will hold all the P2P settings
Click to show internal directories.
Click to hide internal directories.