Commit 3163c6bb authored by Marten Seemann's avatar Marten Seemann
Browse files

initial commmit

parents
package libp2pquic
import (
"context"
tpt "github.com/libp2p/go-libp2p-transport"
ma "github.com/multiformats/go-multiaddr"
)
type dialer struct{}
func (d *dialer) Dial(raddr ma.Multiaddr) (tpt.Conn, error) {
panic("not implemented")
}
func (d *dialer) DialContext(ctx context.Context, raddr ma.Multiaddr) (tpt.Conn, error) {
panic("not implemented")
}
func (d *dialer) Matches(ma.Multiaddr) bool {
panic("not implemented")
}
var _ tpt.Dialer = &dialer{}
package libp2pquic
import (
"net"
tpt "github.com/libp2p/go-libp2p-transport"
ma "github.com/multiformats/go-multiaddr"
)
type listener struct{}
func (l *listener) Accept() (tpt.Conn, error) {
panic("not implemented")
}
func (l *listener) Close() error {
panic("not implemented")
}
func (l *listener) Addr() net.Addr {
panic("not implemented")
}
func (l *listener) Multiaddr() ma.Multiaddr {
panic("not implemented")
}
var _ tpt.Listener = &listener{}
package libp2pquic
import (
tpt "github.com/libp2p/go-libp2p-transport"
ma "github.com/multiformats/go-multiaddr"
)
type QuicTransport struct{}
func NewQuicTransport() *QuicTransport {
return &QuicTransport{}
}
func (t *QuicTransport) Dialer(laddr ma.Multiaddr, opts ...tpt.DialOpt) (tpt.Dialer, error) {
panic("not implemented")
}
func (t *QuicTransport) Listen(laddr ma.Multiaddr) (tpt.Listener, error) {
panic("not implemented")
}
func (t *QuicTransport) Matches(ma.Multiaddr) bool {
panic("not implemented")
}
var _ tpt.Transport = &QuicTransport{}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment