RichΛrd 40359f9c1b
go-waku integration (#2247)
* Adding wakunode module
* Adding wakuv2 fleet files
* Add waku fleets to update-fleet-config script
* Adding config items for waku v2
* Conditionally start waku v2 node depending on config
* Adapting common code to use go-waku
* Setting log level to info
* update dependencies
* update fleet config to use WakuNodes instead of BootNodes
* send and receive messages
* use hash returned when publishing a message
* add waku store protocol
* trigger signal after receiving store messages
* exclude linting rule SA1019 to check deprecated packages
2021-06-16 16:19:45 -04:00

67 lines
1.9 KiB
Go

// Deprecated: use github.com/multiformats/go-multiaddr/net
package manet
import (
"net"
ma "github.com/multiformats/go-multiaddr"
upstream "github.com/multiformats/go-multiaddr/net"
)
// Deprecated: use github.com/multiformats/go-multiaddr/net
type Conn = upstream.Conn
// Deprecated: use github.com/multiformats/go-multiaddr/net
type PacketConn = upstream.PacketConn
// Deprecated: use github.com/multiformats/go-multiaddr/net
type Dialer = upstream.Dialer
// Deprecated: use github.com/multiformats/go-multiaddr/net
type Listener = upstream.Listener
// Deprecated: use github.com/multiformats/go-multiaddr/net
func WrapNetConn(nconn net.Conn) (Conn, error) {
return upstream.WrapNetConn(nconn)
}
// Deprecated: use github.com/multiformats/go-multiaddr/net
func Dial(remote ma.Multiaddr) (Conn, error) {
return upstream.Dial(remote)
}
// Deprecated: use github.com/multiformats/go-multiaddr/net
func NetListener(l Listener) net.Listener {
return upstream.NetListener(l)
}
// Deprecated: use github.com/multiformats/go-multiaddr/net
func Listen(laddr ma.Multiaddr) (Listener, error) {
return upstream.Listen(laddr)
}
// Deprecated: use github.com/multiformats/go-multiaddr/net
func WrapNetListener(nl net.Listener) (Listener, error) {
return upstream.WrapNetListener(nl)
}
// Deprecated: use github.com/multiformats/go-multiaddr/net
func ListenPacket(laddr ma.Multiaddr) (PacketConn, error) {
return upstream.ListenPacket(laddr)
}
// Deprecated: use github.com/multiformats/go-multiaddr/net
func WrapPacketConn(pc net.PacketConn) (PacketConn, error) {
return upstream.WrapPacketConn(pc)
}
// Deprecated: use github.com/multiformats/go-multiaddr/net
func InterfaceMultiaddrs() ([]ma.Multiaddr, error) {
return upstream.InterfaceMultiaddrs()
}
// Deprecated: use github.com/multiformats/go-multiaddr/net
func AddrMatch(match ma.Multiaddr, addrs []ma.Multiaddr) []ma.Multiaddr {
return upstream.AddrMatch(match, addrs)
}