2021-08-30 14:57:28 +00:00
|
|
|
package protocol
|
|
|
|
|
2021-09-10 17:06:06 +00:00
|
|
|
func (m *Messenger) AddStorePeer(address string) (string, error) {
|
2021-08-30 14:57:28 +00:00
|
|
|
return m.transport.AddStorePeer(address)
|
|
|
|
}
|
|
|
|
|
2021-09-10 17:06:06 +00:00
|
|
|
func (m *Messenger) AddRelayPeer(address string) (string, error) {
|
2021-08-30 14:57:28 +00:00
|
|
|
return m.transport.AddStorePeer(address)
|
|
|
|
}
|
|
|
|
|
2021-09-10 17:06:06 +00:00
|
|
|
func (m *Messenger) DialPeer(address string) error {
|
|
|
|
return m.transport.DialPeer(address)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Messenger) DialPeerByID(peerID string) error {
|
|
|
|
return m.transport.DialPeerByID(peerID)
|
|
|
|
}
|
|
|
|
|
2021-08-30 14:57:28 +00:00
|
|
|
func (m *Messenger) DropPeer(peerID string) error {
|
|
|
|
return m.transport.DropPeer(peerID)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Messenger) Peers() map[string][]string {
|
|
|
|
return m.transport.Peers()
|
|
|
|
}
|