Documentation
¶
Index ¶
- Constants
- func MustNewHost(t *testing.T, opts ...libp2p.Option) host.Host
- func QUICSimnet(simnet *simnet.Simnet, linkSettings simnet.NodeBiDiLinkSettings, ...) libp2p.Option
- type BlankHostOpts
- type HostAndIdx
- type MockSourceIPSelector
- type NetworkSettings
- type NodeLinkSettingsAndCount
- type SimpleLibp2pNetworkMeta
Constants ¶
View Source
const OneMbps = 1_000_000
Variables ¶
This section is empty.
Functions ¶
func QUICSimnet ¶
Types ¶
type BlankHostOpts ¶
type BlankHostOpts struct {
ConnMgr *connmgr.BasicConnMgr
// contains filtered or unexported fields
}
type HostAndIdx ¶
type MockSourceIPSelector ¶
type MockSourceIPSelector struct {
// contains filtered or unexported fields
}
func (*MockSourceIPSelector) PreferredSourceIPForDestination ¶
type NetworkSettings ¶
type NodeLinkSettingsAndCount ¶
type NodeLinkSettingsAndCount struct {
LinkSettings simnet.NodeBiDiLinkSettings
Count int
}
type SimpleLibp2pNetworkMeta ¶
type SimpleLibp2pNetworkMeta struct {
Nodes []host.Host
AddrToNode map[string]HostAndIdx
}
func SimpleLibp2pNetwork ¶
func SimpleLibp2pNetwork(linkSettings []NodeLinkSettingsAndCount, networkSettings NetworkSettings) (*simnet.Simnet, *SimpleLibp2pNetworkMeta, error)
Click to show internal directories.
Click to hide internal directories.