Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnID ¶
type ConnID struct {
Local, Remote EndpointID
}
ConnID is the identifier of a connection.
func ConnIDFromConn ¶
ConnIDFromConn returns the name of the given connection.
type ConnKey ¶
type ConnKey struct {
// contains filtered or unexported fields
}
ConnKey is a connection identifier, usable as a map key.
type EndpointID ¶
EndpointID is a libp2p connection endpoint.
func EndpointIDFromURLVar ¶
func EndpointIDFromURLVar(v string) (EndpointID, error)
EndpointIDFromURLVar parses the given URL-variable-format endpoint ID in the peer-id@url64-encoded-binary-multiaddr format into connection endpoint ID.
func (EndpointID) Key ¶
func (epid EndpointID) Key() EndpointKey
Key returns a struct usable as a map key.
func (EndpointID) URLVar ¶
func (epid EndpointID) URLVar() string
URLVar returns the encoded form of the receiver, suitable for use in a URL.
type EndpointKey ¶
type EndpointKey struct {
// contains filtered or unexported fields
}
EndpointKey is a libp2p connection endpoint, usable as a map key.
Click to show internal directories.
Click to hide internal directories.