Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTTL = time.Hour * 24
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoveryService ¶
type DiscoveryService struct {
NS NamespaceProvider
Info *peer.AddrInfo
Topo Topology
// contains filtered or unexported fields
}
type HostFactory ¶
func (*HostFactory) NewHost ¶
NewHost assembles and creates a new libp2p host that uses the simulation's network.
Env configures hosts to use an in-process network and therefore overrides the following options:
- libp2p.Transport - libp2p.NoTransports - libp2p.ListenAddr - libp2p.ListenAddrStrings - libp2p.NoListenAddrs
Users SHOULD NOT pass any of the above options to NewHost.
type NamespaceProvider ¶
type SelectAll ¶
type SelectAll struct {
// contains filtered or unexported fields
}
type SelectRandom ¶
type SelectRing ¶
type SelectRing struct{ SelectAll }
Click to show internal directories.
Click to hide internal directories.