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
29d46eeb
Commit
29d46eeb
authored
Sep 01, 2017
by
Marten Seemann
Browse files
use the new exported types in the quic-go API
This also requires dropping support for Go 1.8.
parent
2b62d830
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
29d46eeb
language
:
go
go
:
-
1.
8.x
-
1.
9
# first part of the GOARCH workaround
# setting the GOARCH directly doesn't work, since the value will be overwritten later
...
...
conn_test.go
View file @
29d46eeb
...
...
@@ -7,21 +7,20 @@ import (
"time"
quic
"github.com/lucas-clemente/quic-go"
"github.com/lucas-clemente/quic-go/protocol"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/gomega"
)
type
mockStream
struct
{
id
protocol
.
StreamID
id
quic
.
StreamID
}
func
(
s
*
mockStream
)
Close
()
error
{
return
nil
}
func
(
s
*
mockStream
)
Reset
(
error
)
{
return
}
func
(
s
*
mockStream
)
Read
([]
byte
)
(
int
,
error
)
{
return
0
,
nil
}
func
(
s
*
mockStream
)
Write
([]
byte
)
(
int
,
error
)
{
return
0
,
nil
}
func
(
s
*
mockStream
)
StreamID
()
protocol
.
StreamID
{
return
s
.
id
}
func
(
s
*
mockStream
)
StreamID
()
quic
.
StreamID
{
return
s
.
id
}
func
(
s
*
mockStream
)
SetReadDeadline
(
time
.
Time
)
error
{
panic
(
"not implemented"
)
}
func
(
s
*
mockStream
)
SetWriteDeadline
(
time
.
Time
)
error
{
panic
(
"not implemented"
)
}
func
(
s
*
mockStream
)
SetDeadline
(
time
.
Time
)
error
{
panic
(
"not implemented"
)
}
...
...
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