go-libp2p-webrtc-direct/webrtcdirect.go

20 lines
492 B
Go
Raw Normal View History

2018-09-30 19:33:55 +00:00
package libp2pwebrtcdirect
import (
logging "github.com/ipfs/go-log"
smux "github.com/libp2p/go-libp2p-core/mux"
tpt "github.com/libp2p/go-libp2p-core/transport"
2018-09-30 19:33:55 +00:00
ma "github.com/multiformats/go-multiaddr"
)
var log = logging.Logger("webrtcdirect-tpt")
var webrtcma, _ = ma.NewMultiaddr("/p2p-webrtc-direct")
var httpma, _ = ma.NewMultiaddr("/http")
2018-09-30 19:33:55 +00:00
var _ tpt.Transport = &Transport{}
var _ tpt.CapableConn = &Conn{}
var _ tpt.Listener = &Listener{}
2018-09-30 19:33:55 +00:00
var _ smux.MuxedStream = &Stream{}