Documentation ¶
Index ¶
- func DummyMultiAddrs(membership map[t.NodeID]t.NodeAddress) (map[t.NodeID]t.NodeAddress, error)
- func FromFile(f *os.File) (map[t.NodeID]t.NodeAddress, error)
- func FromFileName(fileName string) (map[t.NodeID]t.NodeAddress, error)
- func GetIDs(membership map[t.NodeID]t.NodeAddress) []t.NodeID
- func GetIPs(membership map[t.NodeID]t.NodeAddress) (map[t.NodeID]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyMultiAddrs ¶
func DummyMultiAddrs(membership map[t.NodeID]t.NodeAddress) (map[t.NodeID]t.NodeAddress, error)
DummyMultiAddrs returns a set of libp2p multiaddresses based on the given membership, generating host keys deterministically based on node IDs. The node IDs must be convertable to numbers, otherwise DummyMultiAddrs returns an error.
func FromFileName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.