Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p-quic-transport
Commits
3163c6bb
Commit
3163c6bb
authored
Mar 07, 2017
by
Marten Seemann
Browse files
initial commmit
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
dialer.go
0 → 100644
View file @
3163c6bb
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
{}
listener.go
0 → 100644
View file @
3163c6bb
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
{}
transport.go
0 → 100644
View file @
3163c6bb
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
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment