Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var TemporalPeerAddresses = []string{
"/ip4/172.218.49.115/tcp/4002/ipfs/QmPvnFXWAz1eSghXD6JKpHxaGjbVo4VhBXY2wdBxKPbne5",
"/ip4/172.218.49.115/tcp/4003/ipfs/QmXow5Vu8YXqvabkptQ7HddvNPpbLhXzmmU53yPCM54EQa",
"/ip4/35.203.44.77/tcp/4001/ipfs/QmUMtzoRfQ6FttA7RygL8jJf7TZJBbdbZqKTmHfU6QC5Jm",
}
TemporalPeerAddresses are the multiaddrs for Temporal's production nodes.
Functions ¶
func Bootstrap ¶
func Bootstrap(ctx context.Context, logger *zap.Logger, dt routing.Routing, hst host.Host, peers []libcore.PeerAddrInfo) error
Bootstrap is used to connect our libp2p host to the specified set of peers
func DefaultBootstrapPeers ¶
func DefaultBootstrapPeers() ([]libcore.PeerAddrInfo, error)
DefaultBootstrapPeers returns the default lsit of bootstrap peers used by go-ipfs, updated with the Temporal bootstrap nodes
func DynamicBootstrap ¶
func DynamicBootstrap(ctx context.Context, logger *zap.Logger, dt routing.Routing, hst host.Host) error
DynamicBootstrap is used to bootstrapa a host off a dynamic list of bootstrap peers. This must be used in combination with a host using a datastore backed peerstore so that we have a persistent set of peers to boot from, otherwise we just do a default bootstrap The final list of bootstrap peers is at most 10 randomly selected from the peerstore, combined with the deafult libp2p bootstrap peers
Types ¶
This section is empty.