go-libp2p-webrtc-direct/webrtcdirect.go

20 lines
472 B
Go

package libp2pwebrtcdirect
import (
logging "github.com/ipfs/go-log"
tpt "github.com/libp2p/go-libp2p-transport"
smux "github.com/libp2p/go-stream-muxer"
ma "github.com/multiformats/go-multiaddr"
)
var log = logging.Logger("webrtcdirect-tpt")
var webrtcma, _ = ma.NewMultiaddr("/p2p-webrtc-direct")
var httpma, _ = ma.NewMultiaddr("/http")
var _ tpt.Transport = &Transport{}
var _ tpt.Conn = &Conn{}
var _ tpt.Listener = &Listener{}
var _ smux.Stream = &Stream{}