Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRPCTimeout = time.Duration(5 * time.Minute)
Functions ¶
func ConnectAndProtect ¶
func NewPlainNodeTCP ¶
Types ¶
type AddrInfo ¶
type AddrInfo struct { PeerID *PeerID `json:"peerid"` MultiAddrs []multiaddr.Multiaddr `json:"multiaddrs"` }
AddrInfo is a better annotated version of lp2ppeer.AddrInfo
func AddrInfoFromLp2p ¶
func AssembleAddrInfo ¶
type RPCTook ¶
type RPCTook struct { LocalPeerID *PeerID `json:"dialing_peerid"` PeerConnectMsecs *int64 `json:"peer_connect_took_msecs,omitempty"` StreamOpenMsecs *int64 `json:"stream_open_took_msecs,omitempty"` StreamWriteMsecs *int64 `json:"stream_write_took_msecs,omitempty"` StreamReadMsecs *int64 `json:"stream_read_took_msecs,omitempty"` }
Click to show internal directories.
Click to hide internal directories.