ConnSecurity is the interface that one can mix into a connection interface to give it the security methods.
| 118 | // ConnSecurity is the interface that one can mix into a connection interface to |
| 119 | // give it the security methods. |
| 120 | type ConnSecurity interface { |
| 121 | // LocalPeer returns our peer ID |
| 122 | LocalPeer() peer.ID |
| 123 | |
| 124 | // RemotePeer returns the peer ID of the remote peer. |
| 125 | RemotePeer() peer.ID |
| 126 | |
| 127 | // RemotePublicKey returns the public key of the remote peer. |
| 128 | RemotePublicKey() ic.PubKey |
| 129 | |
| 130 | // ConnState returns information about the connection state. |
| 131 | ConnState() ConnectionState |
| 132 | } |
| 133 | |
| 134 | // ConnMultiaddrs is an interface mixin for connection types that provide multiaddr |
| 135 | // addresses for the endpoints. |
no outgoing calls
no test coverage detected
searching dependent graphs…