Browse Source

update references

pull/1516/head v4.13.0
Darien Raymond 6 years ago
parent
commit
2f96c3c257
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      external/github.com/cloudflare/sidh/LICENSE
  2. 2
      external/github.com/cloudflare/sidh/p503/consts.go
  3. 2
      external/github.com/cloudflare/sidh/p751/consts.go
  4. 30
      external/github.com/gorilla/websocket/README.md
  5. 4
      external/github.com/lucas-clemente/quic-go/Changelog.md
  6. 10
      external/github.com/lucas-clemente/quic-go/README.md
  7. 2
      external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go
  8. 4
      external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh
  9. 2
      external/github.com/lucas-clemente/quic-go/internal/protocol/version.go
  10. 2
      external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go
  11. 2
      external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md
  12. 2
      external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go
  13. 38
      external/github.com/lucas-clemente/quic-go/mockgen.go
  14. 10
      external/github.com/lucas-clemente/quic-go/mockgen_private.sh
  15. 2
      external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go
  16. 2
      external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go
  17. 2
      external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go
  18. 2
      external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go
  19. 2
      external/github.com/marten-seemann/qtls/README.md
  20. 2
      external/update-deps.sh

2
external/github.com/cloudflare/sidh/LICENSE vendored

@ -29,7 +29,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
========================================================================
The x64 field arithmetic implementation was derived from the Microsoft Research
SIDH implementation, <https://v2ray.com/core/external/github.com/Microsoft/PQCrypto-SIDH>, available
SIDH implementation, <https://github.com/Microsoft/PQCrypto-SIDH>, available
under the following license:
========================================================================

2
external/github.com/cloudflare/sidh/p503/consts.go vendored

@ -25,7 +25,7 @@ const (
)
// CPU Capabilities. Those flags are referred by assembly code. According to
// https://v2ray.com/core/external/github.com/golang/go/issues/28230, variables referred from the
// https://github.com/golang/go/issues/28230, variables referred from the
// assembly must be in the same package.
// We declare them variables not constants in order to facilitate testing.
var (

2
external/github.com/cloudflare/sidh/p751/consts.go vendored

@ -25,7 +25,7 @@ const (
)
// CPU Capabilities. Those flags are referred by assembly code. According to
// https://v2ray.com/core/external/github.com/golang/go/issues/28230, variables referred from the
// https://github.com/golang/go/issues/28230, variables referred from the
// assembly must be in the same package.
// We declare them variables not constants in order to facilitate testing.
var (

30
external/github.com/gorilla/websocket/README.md vendored

@ -4,15 +4,15 @@ Gorilla WebSocket is a [Go](http://golang.org/) implementation of the
[WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol.
[![Build Status](https://travis-ci.org/gorilla/websocket.svg?branch=master)](https://travis-ci.org/gorilla/websocket)
[![GoDoc](https://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket?status.svg)](https://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket)
[![GoDoc](https://godoc.org/github.com/gorilla/websocket?status.svg)](https://godoc.org/github.com/gorilla/websocket)
### Documentation
* [API Reference](http://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket)
* [Chat example](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/chat)
* [Command example](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/command)
* [Client and server example](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/echo)
* [File watch example](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/filewatch)
* [API Reference](http://godoc.org/github.com/gorilla/websocket)
* [Chat example](https://github.com/gorilla/websocket/tree/master/examples/chat)
* [Command example](https://github.com/gorilla/websocket/tree/master/examples/command)
* [Client and server example](https://github.com/gorilla/websocket/tree/master/examples/echo)
* [File watch example](https://github.com/gorilla/websocket/tree/master/examples/filewatch)
### Status
@ -22,33 +22,33 @@ package API is stable.
### Installation
go get v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket
go get github.com/gorilla/websocket
### Protocol Compliance
The Gorilla WebSocket package passes the server tests in the [Autobahn Test
Suite](http://autobahn.ws/testsuite) using the application in the [examples/autobahn
subdirectory](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/autobahn).
Suite](https://github.com/crossbario/autobahn-testsuite) using the application in the [examples/autobahn
subdirectory](https://github.com/gorilla/websocket/tree/master/examples/autobahn).
### Gorilla WebSocket compared with other packages
<table>
<tr>
<th></th>
<th><a href="http://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket">v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla</a></th>
<th><a href="http://godoc.org/github.com/gorilla/websocket">github.com/gorilla</a></th>
<th><a href="http://godoc.org/golang.org/x/net/websocket">golang.org/x/net</a></th>
</tr>
<tr>
<tr><td colspan="3"><a href="http://tools.ietf.org/html/rfc6455">RFC 6455</a> Features</td></tr>
<tr><td>Passes <a href="http://autobahn.ws/testsuite/">Autobahn Test Suite</a></td><td><a href="https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/autobahn">Yes</a></td><td>No</td></tr>
<tr><td>Passes <a href="http://autobahn.ws/testsuite/">Autobahn Test Suite</a></td><td><a href="https://github.com/gorilla/websocket/tree/master/examples/autobahn">Yes</a></td><td>No</td></tr>
<tr><td>Receive <a href="https://tools.ietf.org/html/rfc6455#section-5.4">fragmented</a> message<td>Yes</td><td><a href="https://code.google.com/p/go/issues/detail?id=7632">No</a>, see note 1</td></tr>
<tr><td>Send <a href="https://tools.ietf.org/html/rfc6455#section-5.5.1">close</a> message</td><td><a href="http://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket#hdr-Control_Messages">Yes</a></td><td><a href="https://code.google.com/p/go/issues/detail?id=4588">No</a></td></tr>
<tr><td>Send <a href="https://tools.ietf.org/html/rfc6455#section-5.5.2">pings</a> and receive <a href="https://tools.ietf.org/html/rfc6455#section-5.5.3">pongs</a></td><td><a href="http://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket#hdr-Control_Messages">Yes</a></td><td>No</td></tr>
<tr><td>Send <a href="https://tools.ietf.org/html/rfc6455#section-5.5.1">close</a> message</td><td><a href="http://godoc.org/github.com/gorilla/websocket#hdr-Control_Messages">Yes</a></td><td><a href="https://code.google.com/p/go/issues/detail?id=4588">No</a></td></tr>
<tr><td>Send <a href="https://tools.ietf.org/html/rfc6455#section-5.5.2">pings</a> and receive <a href="https://tools.ietf.org/html/rfc6455#section-5.5.3">pongs</a></td><td><a href="http://godoc.org/github.com/gorilla/websocket#hdr-Control_Messages">Yes</a></td><td>No</td></tr>
<tr><td>Get the <a href="https://tools.ietf.org/html/rfc6455#section-5.6">type</a> of a received data message</td><td>Yes</td><td>Yes, see note 2</td></tr>
<tr><td colspan="3">Other Features</tr></td>
<tr><td><a href="https://tools.ietf.org/html/rfc7692">Compression Extensions</a></td><td>Experimental</td><td>No</td></tr>
<tr><td>Read message using io.Reader</td><td><a href="http://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket#Conn.NextReader">Yes</a></td><td>No, see note 3</td></tr>
<tr><td>Write message using io.WriteCloser</td><td><a href="http://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket#Conn.NextWriter">Yes</a></td><td>No, see note 3</td></tr>
<tr><td>Read message using io.Reader</td><td><a href="http://godoc.org/github.com/gorilla/websocket#Conn.NextReader">Yes</a></td><td>No, see note 3</td></tr>
<tr><td>Write message using io.WriteCloser</td><td><a href="http://godoc.org/github.com/gorilla/websocket#Conn.NextWriter">Yes</a></td><td>No, see note 3</td></tr>
</table>
Notes:

4
external/github.com/lucas-clemente/quic-go/Changelog.md vendored

@ -36,8 +36,8 @@
- Add a `quic.Config` option to configure keep-alive
- Rename the STK to Cookie
- Implement `net.Conn`-style deadlines for streams
- Remove the `tls.Config` from the `quic.Config`. The `tls.Config` must now be passed to the `Dial` and `Listen` functions as a separate parameter. See the [Godoc](https://godoc.org/v2ray.com/core/external/github.com/lucas-clemente/quic-go) for details.
- Changed the log level environment variable to only accept strings ("DEBUG", "INFO", "ERROR"), see [the wiki](https://v2ray.com/core/external/github.com/lucas-clemente/quic-go/wiki/Logging) for more details.
- Remove the `tls.Config` from the `quic.Config`. The `tls.Config` must now be passed to the `Dial` and `Listen` functions as a separate parameter. See the [Godoc](https://godoc.org/github.com/lucas-clemente/quic-go) for details.
- Changed the log level environment variable to only accept strings ("DEBUG", "INFO", "ERROR"), see [the wiki](https://github.com/lucas-clemente/quic-go/wiki/Logging) for more details.
- Rename the `h2quic.QuicRoundTripper` to `h2quic.RoundTripper`
- Changed `h2quic.Server.Serve()` to accept a `net.PacketConn`
- Drop support for Go 1.7 and 1.8.

10
external/github.com/lucas-clemente/quic-go/README.md vendored

@ -2,25 +2,25 @@
<img src="docs/quic.png" width=303 height=124>
[![Godoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/v2ray.com/core/external/github.com/lucas-clemente/quic-go)
[![Godoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/lucas-clemente/quic-go)
[![Travis Build Status](https://img.shields.io/travis/lucas-clemente/quic-go/master.svg?style=flat-square&label=Travis+build)](https://travis-ci.org/lucas-clemente/quic-go)
[![CircleCI Build Status](https://img.shields.io/circleci/project/github/lucas-clemente/quic-go.svg?style=flat-square&label=CircleCI+build)](https://circleci.com/gh/lucas-clemente/quic-go)
[![Windows Build Status](https://img.shields.io/appveyor/ci/lucas-clemente/quic-go/master.svg?style=flat-square&label=windows+build)](https://ci.appveyor.com/project/lucas-clemente/quic-go/branch/master)
[![Code Coverage](https://img.shields.io/codecov/c/github/lucas-clemente/quic-go/master.svg?style=flat-square)](https://codecov.io/gh/lucas-clemente/quic-go/)
quic-go is an implementation of the [QUIC](https://en.wikipedia.org/wiki/QUIC) protocol in Go. It roughly implements the [IETF QUIC draft](https://v2ray.com/core/external/github.com/quicwg/base-drafts), although we don't fully support any of the draft versions at the moment.
quic-go is an implementation of the [QUIC](https://en.wikipedia.org/wiki/QUIC) protocol in Go. It roughly implements the [IETF QUIC draft](https://github.com/quicwg/base-drafts), although we don't fully support any of the draft versions at the moment.
## Version compatibility
Since quic-go is under active development, there's no guarantee that two builds of different commits are interoperable. The QUIC version used in the *master* branch is just a placeholder, and should not be considered stable.
If you want to use quic-go as a library in other projects, please consider using a [tagged release](https://v2ray.com/core/external/github.com/lucas-clemente/quic-go/releases). These releases expose [experimental QUIC versions](https://v2ray.com/core/external/github.com/quicwg/base-drafts/wiki/QUIC-Versions), which are guaranteed to be stable.
If you want to use quic-go as a library in other projects, please consider using a [tagged release](https://github.com/lucas-clemente/quic-go/releases). These releases expose [experimental QUIC versions](https://github.com/quicwg/base-drafts/wiki/QUIC-Versions), which are guaranteed to be stable.
## Google QUIC
quic-go used to support both the QUIC versions supported by Google Chrome and QUIC as deployed on Google's servers, as well as IETF QUIC. Due to the divergence of the two protocols, we decided to not support both versions any more.
The *master* branch **only** supports IETF QUIC. For Google QUIC support, please refer to the [gquic branch](https://v2ray.com/core/external/github.com/lucas-clemente/quic-go/tree/gquic).
The *master* branch **only** supports IETF QUIC. For Google QUIC support, please refer to the [gquic branch](https://github.com/lucas-clemente/quic-go/tree/gquic).
## Guides
@ -65,4 +65,4 @@ http.Client{
## Contributing
We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with [help wanted](https://v2ray.com/core/external/github.com/lucas-clemente/quic-go/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22). If you have any questions, please feel free to reach out by opening an issue or leaving a comment.
We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with [help wanted](https://github.com/lucas-clemente/quic-go/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22). If you have any questions, please feel free to reach out by opening an issue or leaving a comment.

2
external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go vendored

@ -1,6 +1,6 @@
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://v2ray.com/core/external/github.com/cheekybits/genny
// see https://github.com/cheekybits/genny
package ackhandler

4
external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh vendored

@ -7,13 +7,13 @@
# Afterwards, it corrects the import paths (replaces internalpackage back to internal).
TEMP_DIR=$(mktemp -d)
mkdir -p $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/internalpackage
mkdir -p $TEMP_DIR/src/github.com/lucas-clemente/quic-go/internalpackage
# uppercase the name of the interface (only has an effect for private interfaces)
INTERFACE_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${4:0:1})${4:1}"
PACKAGE_NAME=`echo $3 | sed 's/.*\///'`
cp -r $GOPATH/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/* $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/internalpackage
cp -r $GOPATH/src/github.com/lucas-clemente/quic-go/internal/* $TEMP_DIR/src/github.com/lucas-clemente/quic-go/internalpackage
find $TEMP_DIR -type f -name "*.go" -exec sed -i '' 's/internal/internalpackage/g' {} \;
export GOPATH="$TEMP_DIR:$GOPATH"

2
external/github.com/lucas-clemente/quic-go/internal/protocol/version.go vendored

@ -10,7 +10,7 @@ import (
// VersionNumber is a version number as int
type VersionNumber uint32
// gQUIC version range as defined in the wiki: https://v2ray.com/core/external/github.com/quicwg/base-drafts/wiki/QUIC-Versions
// gQUIC version range as defined in the wiki: https://github.com/quicwg/base-drafts/wiki/QUIC-Versions
const (
gquicVersion0 = 0x51303030
maxGquicVersion = 0x51303439

2
external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go vendored

@ -1,6 +1,6 @@
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://v2ray.com/core/external/github.com/cheekybits/genny
// see https://github.com/cheekybits/genny
package utils

2
external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md vendored

@ -2,7 +2,7 @@
This is the Go standard library implementation of a linked list
(https://golang.org/src/container/list/list.go), modified such that genny
(https://v2ray.com/core/external/github.com/cheekybits/genny) can be used to generate a typed linked
(https://github.com/cheekybits/genny) can be used to generate a typed linked
list.
To generate, run

2
external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go vendored

@ -1,6 +1,6 @@
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://v2ray.com/core/external/github.com/cheekybits/genny
// see https://github.com/cheekybits/genny
package utils

38
external/github.com/lucas-clemente/quic-go/mockgen.go vendored

@ -1,21 +1,21 @@
package quic
//go:generate sh -c "./mockgen_private.sh quic mock_stream_internal_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go streamI"
//go:generate sh -c "./mockgen_private.sh quic mock_crypto_stream_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go cryptoStream"
//go:generate sh -c "./mockgen_private.sh quic mock_receive_stream_internal_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go receiveStreamI"
//go:generate sh -c "./mockgen_private.sh quic mock_send_stream_internal_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go sendStreamI"
//go:generate sh -c "./mockgen_private.sh quic mock_stream_sender_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go streamSender"
//go:generate sh -c "./mockgen_private.sh quic mock_stream_getter_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go streamGetter"
//go:generate sh -c "./mockgen_private.sh quic mock_crypto_data_handler_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go cryptoDataHandler"
//go:generate sh -c "./mockgen_private.sh quic mock_frame_source_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go frameSource"
//go:generate sh -c "./mockgen_private.sh quic mock_ack_frame_source_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go ackFrameSource"
//go:generate sh -c "./mockgen_private.sh quic mock_stream_manager_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go streamManager"
//go:generate sh -c "./mockgen_private.sh quic mock_sealing_manager_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go sealingManager"
//go:generate sh -c "./mockgen_private.sh quic mock_unpacker_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go unpacker"
//go:generate sh -c "./mockgen_private.sh quic mock_packer_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go packer"
//go:generate sh -c "./mockgen_private.sh quic mock_session_runner_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go sessionRunner"
//go:generate sh -c "./mockgen_private.sh quic mock_quic_session_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go quicSession"
//go:generate sh -c "./mockgen_private.sh quic mock_packet_handler_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go packetHandler"
//go:generate sh -c "./mockgen_private.sh quic mock_unknown_packet_handler_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go unknownPacketHandler"
//go:generate sh -c "./mockgen_private.sh quic mock_packet_handler_manager_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go packetHandlerManager"
//go:generate sh -c "./mockgen_private.sh quic mock_multiplexer_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go multiplexer"
//go:generate sh -c "./mockgen_private.sh quic mock_stream_internal_test.go github.com/lucas-clemente/quic-go streamI"
//go:generate sh -c "./mockgen_private.sh quic mock_crypto_stream_test.go github.com/lucas-clemente/quic-go cryptoStream"
//go:generate sh -c "./mockgen_private.sh quic mock_receive_stream_internal_test.go github.com/lucas-clemente/quic-go receiveStreamI"
//go:generate sh -c "./mockgen_private.sh quic mock_send_stream_internal_test.go github.com/lucas-clemente/quic-go sendStreamI"
//go:generate sh -c "./mockgen_private.sh quic mock_stream_sender_test.go github.com/lucas-clemente/quic-go streamSender"
//go:generate sh -c "./mockgen_private.sh quic mock_stream_getter_test.go github.com/lucas-clemente/quic-go streamGetter"
//go:generate sh -c "./mockgen_private.sh quic mock_crypto_data_handler_test.go github.com/lucas-clemente/quic-go cryptoDataHandler"
//go:generate sh -c "./mockgen_private.sh quic mock_frame_source_test.go github.com/lucas-clemente/quic-go frameSource"
//go:generate sh -c "./mockgen_private.sh quic mock_ack_frame_source_test.go github.com/lucas-clemente/quic-go ackFrameSource"
//go:generate sh -c "./mockgen_private.sh quic mock_stream_manager_test.go github.com/lucas-clemente/quic-go streamManager"
//go:generate sh -c "./mockgen_private.sh quic mock_sealing_manager_test.go github.com/lucas-clemente/quic-go sealingManager"
//go:generate sh -c "./mockgen_private.sh quic mock_unpacker_test.go github.com/lucas-clemente/quic-go unpacker"
//go:generate sh -c "./mockgen_private.sh quic mock_packer_test.go github.com/lucas-clemente/quic-go packer"
//go:generate sh -c "./mockgen_private.sh quic mock_session_runner_test.go github.com/lucas-clemente/quic-go sessionRunner"
//go:generate sh -c "./mockgen_private.sh quic mock_quic_session_test.go github.com/lucas-clemente/quic-go quicSession"
//go:generate sh -c "./mockgen_private.sh quic mock_packet_handler_test.go github.com/lucas-clemente/quic-go packetHandler"
//go:generate sh -c "./mockgen_private.sh quic mock_unknown_packet_handler_test.go github.com/lucas-clemente/quic-go unknownPacketHandler"
//go:generate sh -c "./mockgen_private.sh quic mock_packet_handler_manager_test.go github.com/lucas-clemente/quic-go packetHandlerManager"
//go:generate sh -c "./mockgen_private.sh quic mock_multiplexer_test.go github.com/lucas-clemente/quic-go multiplexer"

10
external/github.com/lucas-clemente/quic-go/mockgen_private.sh vendored

@ -5,23 +5,23 @@
# It then creates a mock for this public (alias) type.
TEMP_DIR=$(mktemp -d)
mkdir -p $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/
mkdir -p $TEMP_DIR/src/github.com/lucas-clemente/quic-go/
# uppercase the name of the interface
INTERFACE_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${4:0:1})${4:1}"
# copy all .go files to a temporary directory
rsync -r --exclude 'vendor' --include='*.go' --include '*/' --exclude '*' $GOPATH/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/ $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/
rsync -r --exclude 'vendor' --include='*.go' --include '*/' --exclude '*' $GOPATH/src/github.com/lucas-clemente/quic-go/ $TEMP_DIR/src/github.com/lucas-clemente/quic-go/
# create a public alias for the interface, so that mockgen can process it
echo -e "package $1\n" > $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/mockgen_interface.go
echo "type $INTERFACE_NAME = $4" >> $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/mockgen_interface.go
echo -e "package $1\n" > $TEMP_DIR/src/github.com/lucas-clemente/quic-go/mockgen_interface.go
echo "type $INTERFACE_NAME = $4" >> $TEMP_DIR/src/github.com/lucas-clemente/quic-go/mockgen_interface.go
export GOPATH="$TEMP_DIR:$GOPATH"
mockgen -package $1 -self_package $1 -destination $2 $3 $INTERFACE_NAME
# mockgen imports quic-go as 'import quic_go v2ray.com/core/external/github.com/lucas_clemente/quic-go'
# mockgen imports quic-go as 'import quic_go github.com/lucas_clemente/quic-go'
sed -i '' 's/quic_go.//g' $2
goimports -w $2

2
external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go vendored

@ -1,6 +1,6 @@
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://v2ray.com/core/external/github.com/cheekybits/genny
// see https://github.com/cheekybits/genny
package quic

2
external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go vendored

@ -1,6 +1,6 @@
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://v2ray.com/core/external/github.com/cheekybits/genny
// see https://github.com/cheekybits/genny
package quic

2
external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go vendored

@ -1,6 +1,6 @@
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://v2ray.com/core/external/github.com/cheekybits/genny
// see https://github.com/cheekybits/genny
package quic

2
external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go vendored

@ -1,6 +1,6 @@
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://v2ray.com/core/external/github.com/cheekybits/genny
// see https://github.com/cheekybits/genny
package quic

2
external/github.com/marten-seemann/qtls/README.md vendored

@ -60,7 +60,7 @@ Similar dependencies can be found on any UNIX based system/distribution.
There are number of things that need to be setup before running tests. Most important step is to copy ``go env GOROOT`` directory to ``_dev`` and swap TLS implementation and recompile GO. Then for testing we use go implementation from ``_dev/GOROOT``.
```
git clone https://v2ray.com/core/external/github.com/cloudflare/tls-tris.git
git clone https://github.com/cloudflare/tls-tris.git
cd tls-tris; cp _dev/utils/pre-commit .git/hooks/
make -f _dev/Makefile build-all
```

2
external/update-deps.sh vendored

@ -33,6 +33,6 @@ rm "./github.com/gorilla/websocket/x_net_proxy.go"
find . -name "*_test.go" -delete
find . -name "*.yml" -delete
find . -name "*.go" -type f -print0 | LC_ALL=C xargs -0 sed -i '' 's#github\.com#v2ray\.com/core/external/github\.com#g'
find . -name "*.go" -type f -print0 | LC_ALL=C xargs -0 sed -i '' 's#\"github\.com#\"v2ray\.com/core/external/github\.com#g'
popd

Loading…
Cancel
Save