From f1934a4ff225aa0b7f382d4fab2a97cf6d9e0ffb Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 17 Jan 2019 15:33:18 +0100 Subject: [PATCH] move vendor to external --- .../github.com/cheekybits/genny/LICENSE | 0 .../cheekybits/genny/generic/doc.go | 0 .../cheekybits/genny/generic/generic.go | 0 .../github.com/cloudflare/sidh/LICENSE | 2 +- .../cloudflare/sidh/internal/arith/generic.go | 0 .../sidh/internal/isogeny/curve_ops.go | 0 .../cloudflare/sidh/internal/isogeny/types.go | 0 .../cloudflare/sidh/internal/utils/cpu.go | 0 .../sidh/internal/utils/cpuid_amd64.go | 0 .../sidh/internal/utils/cpuid_amd64.s | 0 .../cloudflare/sidh/p503/arith_amd64.s | 0 .../cloudflare/sidh/p503/arith_arm64.s | 0 .../cloudflare/sidh/p503/arith_decl.go | 2 +- .../cloudflare/sidh/p503/arith_generic.go | 4 +- .../github.com/cloudflare/sidh/p503/consts.go | 6 +- .../cloudflare/sidh/p503/field_ops.go | 2 +- .../cloudflare/sidh/p751/arith_amd64.s | 0 .../cloudflare/sidh/p751/arith_arm64.s | 0 .../cloudflare/sidh/p751/arith_decl.go | 2 +- .../cloudflare/sidh/p751/arith_generic.go | 4 +- .../github.com/cloudflare/sidh/p751/consts.go | 6 +- .../cloudflare/sidh/p751/field_ops.go | 2 +- .../github.com/cloudflare/sidh/sidh/api.go | 2 +- .../github.com/cloudflare/sidh/sidh/params.go | 6 +- .../github.com/cloudflare/sidh/sidh/sidh.go | 2 +- .../github.com/gorilla/websocket/AUTHORS | 0 .../github.com/gorilla/websocket/LICENSE | 0 .../github.com/gorilla/websocket/README.md | 64 ++++++ .../github.com/gorilla/websocket/client.go | 0 .../gorilla/websocket/client_clone.go | 0 .../github.com/gorilla/websocket/conn.go | 0 .../gorilla/websocket/conn_write.go | 0 .../github.com/gorilla/websocket/doc.go | 0 .../github.com/gorilla/websocket/mask.go | 0 .../github.com/gorilla/websocket/mask_safe.go | 0 .../github.com/gorilla/websocket/server.go | 0 .../github.com/gorilla/websocket/util.go | 0 .../lucas-clemente/quic-go/Changelog.md | 4 +- .../github.com/lucas-clemente/quic-go/LICENSE | 0 .../lucas-clemente/quic-go/README.md | 10 +- .../lucas-clemente/quic-go/appveyor.yml | 6 +- .../lucas-clemente/quic-go/buffer_pool.go | 2 +- .../lucas-clemente/quic-go/client.go | 10 +- .../lucas-clemente/quic-go/codecov.yml | 0 .../github.com/lucas-clemente/quic-go/conn.go | 0 .../lucas-clemente/quic-go/crypto_stream.go | 6 +- .../quic-go/crypto_stream_manager.go | 4 +- .../lucas-clemente/quic-go/frame_sorter.go | 4 +- .../lucas-clemente/quic-go/framer.go | 4 +- .../lucas-clemente/quic-go/interface.go | 4 +- .../quic-go/internal/ackhandler/gen.go | 0 .../quic-go/internal/ackhandler/interfaces.go | 4 +- .../quic-go/internal/ackhandler/packet.go | 4 +- .../internal/ackhandler/packet_linkedlist.go | 2 +- .../ackhandler/packet_number_generator.go | 4 +- .../ackhandler/received_packet_handler.go | 8 +- .../ackhandler/received_packet_history.go | 8 +- .../ackhandler/received_packet_tracker.go | 8 +- .../internal/ackhandler/retransmittable.go | 2 +- .../quic-go/internal/ackhandler/send_mode.go | 0 .../ackhandler/sent_packet_handler.go | 10 +- .../ackhandler/sent_packet_history.go | 2 +- .../quic-go/internal/congestion/bandwidth.go | 2 +- .../quic-go/internal/congestion/clock.go | 0 .../quic-go/internal/congestion/cubic.go | 4 +- .../internal/congestion/cubic_sender.go | 4 +- .../internal/congestion/hybrid_slow_start.go | 4 +- .../quic-go/internal/congestion/interface.go | 2 +- .../quic-go/internal/congestion/prr_sender.go | 2 +- .../quic-go/internal/congestion/rtt_stats.go | 2 +- .../quic-go/internal/congestion/stats.go | 2 +- .../quic-go/internal/crypto/AEAD.go | 2 +- .../quic-go/internal/crypto/aesgcm_aead.go | 2 +- .../quic-go/internal/crypto/hkdf.go | 4 +- .../internal/crypto/null_aead_aesgcm.go | 2 +- .../flowcontrol/base_flow_controller.go | 6 +- .../flowcontrol/connection_flow_controller.go | 8 +- .../quic-go/internal/flowcontrol/interface.go | 2 +- .../flowcontrol/stream_flow_controller.go | 8 +- .../quic-go/internal/handshake/aead.go | 2 +- .../internal/handshake/cookie_generator.go | 2 +- .../internal/handshake/cookie_protector.go | 0 .../internal/handshake/crypto_setup.go | 6 +- .../internal/handshake/initial_aead.go | 4 +- .../quic-go/internal/handshake/interface.go | 4 +- .../quic-go/internal/handshake/qtls.go | 2 +- .../internal/handshake/tls_extension.go | 4 +- .../handshake/tls_extension_handler_client.go | 8 +- .../handshake/tls_extension_handler_server.go | 8 +- .../handshake/transport_parameters.go | 4 +- .../quic-go/internal/mockgen_internal.sh | 4 +- .../internal/protocol/connection_id.go | 0 .../internal/protocol/encryption_level.go | 0 .../internal/protocol/packet_number.go | 0 .../quic-go/internal/protocol/params.go | 0 .../quic-go/internal/protocol/perspective.go | 0 .../quic-go/internal/protocol/protocol.go | 0 .../quic-go/internal/protocol/stream_id.go | 0 .../quic-go/internal/protocol/version.go | 2 +- .../quic-go/internal/qerr/error_codes.go | 0 .../quic-go/internal/qerr/errorcode_string.go | 0 .../quic-go/internal/qerr/quic_error.go | 0 .../quic-go/internal/testdata/ca.pem | 0 .../quic-go/internal/testdata/cert.go | 0 .../quic-go/internal/testdata/cert.pem | 0 .../quic-go/internal/testdata/priv.key | 0 .../quic-go/internal/utils/atomic_bool.go | 0 .../internal/utils/byteinterval_linkedlist.go | 2 +- .../quic-go/internal/utils/byteorder.go | 0 .../internal/utils/byteorder_big_endian.go | 0 .../quic-go/internal/utils/gen.go | 0 .../quic-go/internal/utils/host.go | 0 .../internal/utils/linkedlist/README.md | 2 +- .../internal/utils/linkedlist/linkedlist.go | 2 +- .../quic-go/internal/utils/log.go | 0 .../quic-go/internal/utils/minmax.go | 2 +- .../quic-go/internal/utils/packet_interval.go | 2 +- .../utils/packetinterval_linkedlist.go | 2 +- .../internal/utils/streamframe_interval.go | 2 +- .../quic-go/internal/utils/timer.go | 0 .../quic-go/internal/utils/varint.go | 2 +- .../internal/utils/varint_packetnumber.go | 2 +- .../quic-go/internal/wire/ack_frame.go | 4 +- .../quic-go/internal/wire/ack_range.go | 2 +- .../internal/wire/connection_close_frame.go | 6 +- .../quic-go/internal/wire/crypto_frame.go | 4 +- .../internal/wire/data_blocked_frame.go | 4 +- .../quic-go/internal/wire/extended_header.go | 4 +- .../quic-go/internal/wire/frame.go | 2 +- .../quic-go/internal/wire/frame_parser.go | 4 +- .../quic-go/internal/wire/header.go | 6 +- .../quic-go/internal/wire/log.go | 4 +- .../quic-go/internal/wire/max_data_frame.go | 4 +- .../internal/wire/max_stream_data_frame.go | 4 +- .../internal/wire/max_streams_frame.go | 4 +- .../internal/wire/new_connection_id_frame.go | 4 +- .../quic-go/internal/wire/new_token_frame.go | 4 +- .../internal/wire/path_challenge_frame.go | 2 +- .../internal/wire/path_response_frame.go | 2 +- .../quic-go/internal/wire/ping_frame.go | 2 +- .../internal/wire/reset_stream_frame.go | 4 +- .../wire/retire_connection_id_frame.go | 4 +- .../internal/wire/stop_sending_frame.go | 4 +- .../wire/stream_data_blocked_frame.go | 4 +- .../quic-go/internal/wire/stream_frame.go | 6 +- .../internal/wire/streams_blocked_frame.go | 4 +- .../internal/wire/version_negotiation.go | 4 +- .../lucas-clemente/quic-go/mockgen.go | 21 ++ .../lucas-clemente/quic-go/mockgen_private.sh | 10 +- .../lucas-clemente/quic-go/multiplexer.go | 2 +- .../quic-go/packet_handler_map.go | 6 +- .../lucas-clemente/quic-go/packet_packer.go | 10 +- .../lucas-clemente/quic-go/packet_unpacker.go | 8 +- .../lucas-clemente/quic-go/receive_stream.go | 8 +- .../lucas-clemente/quic-go/send_stream.go | 8 +- .../lucas-clemente/quic-go/server.go | 10 +- .../lucas-clemente/quic-go/server_session.go | 4 +- .../lucas-clemente/quic-go/session.go | 16 +- .../lucas-clemente/quic-go/stream.go | 6 +- .../lucas-clemente/quic-go/streams_map.go | 8 +- .../quic-go/streams_map_generic_helper.go | 4 +- .../quic-go/streams_map_incoming_bidi.go | 6 +- .../quic-go/streams_map_incoming_generic.go | 4 +- .../quic-go/streams_map_incoming_uni.go | 6 +- .../quic-go/streams_map_outgoing_bidi.go | 8 +- .../quic-go/streams_map_outgoing_generic.go | 6 +- .../quic-go/streams_map_outgoing_uni.go | 8 +- .../quic-go/window_update_queue.go | 6 +- .../github.com/lucas-clemente/sync-files.sh | 2 +- .../github.com/marten-seemann/qtls/13.go | 2 +- .../github.com/marten-seemann/qtls/LICENSE | 0 .../github.com/marten-seemann/qtls/README.md | 2 +- .../github.com/marten-seemann/qtls/alert.go | 0 .../github.com/marten-seemann/qtls/auth.go | 0 .../marten-seemann/qtls/cipher_suites.go | 0 .../github.com/marten-seemann/qtls/common.go | 0 .../github.com/marten-seemann/qtls/conn.go | 0 .../marten-seemann/qtls/handshake_client.go | 0 .../marten-seemann/qtls/handshake_messages.go | 0 .../marten-seemann/qtls/handshake_server.go | 0 .../github.com/marten-seemann/qtls/hkdf.go | 0 .../marten-seemann/qtls/key_agreement.go | 0 .../github.com/marten-seemann/qtls/prf.go | 0 .../marten-seemann/qtls/subcerts.go | 0 .../github.com/marten-seemann/qtls/ticket.go | 0 .../github.com/marten-seemann/qtls/tls.go | 0 external/update-deps.sh | 25 +++ testing/coverage/coverall | 2 +- transport/internet/quic/conn.go | 2 +- transport/internet/quic/dialer.go | 2 +- transport/internet/quic/hub.go | 2 +- vendor/github.com/gorilla/websocket/README.md | 64 ------ .../ackhandler/received_packet_handler.go | 83 ------- .../mocks/ackhandler/sent_packet_handler.go | 202 ------------------ .../quic-go/internal/mocks/congestion.go | 140 ------------ .../mocks/connection_flow_controller.go | 112 ---------- .../quic-go/internal/mocks/crypto/aead.go | 72 ------- .../quic-go/internal/mocks/crypto_setup.go | 123 ----------- .../quic-go/internal/mocks/mockgen.go | 10 - .../quic-go/internal/mocks/opener.go | 58 ----- .../quic-go/internal/mocks/sealer.go | 69 ------ .../internal/mocks/stream_flow_controller.go | 124 ----------- .../lucas-clemente/quic-go/mockgen.go | 21 -- 203 files changed, 372 insertions(+), 1340 deletions(-) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cheekybits/genny/LICENSE (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cheekybits/genny/generic/doc.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cheekybits/genny/generic/generic.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/LICENSE (96%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/internal/arith/generic.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/internal/isogeny/curve_ops.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/internal/isogeny/types.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/internal/utils/cpu.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p503/arith_amd64.s (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p503/arith_arm64.s (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p503/arith_decl.go (94%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p503/arith_generic.go (96%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p503/consts.go (96%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p503/field_ops.go (99%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p751/arith_amd64.s (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p751/arith_arm64.s (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p751/arith_decl.go (94%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p751/arith_generic.go (96%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p751/consts.go (97%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/p751/field_ops.go (99%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/sidh/api.go (98%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/sidh/params.go (92%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/cloudflare/sidh/sidh/sidh.go (99%) rename {vendor => external}/github.com/gorilla/websocket/AUTHORS (100%) rename {vendor => external}/github.com/gorilla/websocket/LICENSE (100%) create mode 100644 external/github.com/gorilla/websocket/README.md rename {vendor => external}/github.com/gorilla/websocket/client.go (100%) rename {vendor => external}/github.com/gorilla/websocket/client_clone.go (100%) rename {vendor => external}/github.com/gorilla/websocket/conn.go (100%) rename {vendor => external}/github.com/gorilla/websocket/conn_write.go (100%) rename {vendor => external}/github.com/gorilla/websocket/doc.go (100%) rename {vendor => external}/github.com/gorilla/websocket/mask.go (100%) rename {vendor => external}/github.com/gorilla/websocket/mask_safe.go (100%) rename {vendor => external}/github.com/gorilla/websocket/server.go (100%) rename {vendor => external}/github.com/gorilla/websocket/util.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/Changelog.md (87%) rename {vendor => external}/github.com/lucas-clemente/quic-go/LICENSE (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/README.md (74%) rename {vendor => external}/github.com/lucas-clemente/quic-go/appveyor.yml (77%) rename {vendor => external}/github.com/lucas-clemente/quic-go/buffer_pool.go (93%) rename {vendor => external}/github.com/lucas-clemente/quic-go/client.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/codecov.yml (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/conn.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/crypto_stream.go (92%) rename {vendor => external}/github.com/lucas-clemente/quic-go/crypto_stream_manager.go (89%) rename {vendor => external}/github.com/lucas-clemente/quic-go/frame_sorter.go (96%) rename {vendor => external}/github.com/lucas-clemente/quic-go/framer.go (95%) rename {vendor => external}/github.com/lucas-clemente/quic-go/interface.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/gen.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/interfaces.go (92%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/packet.go (84%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_number_generator.go (92%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_handler.go (91%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_history.go (91%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_tracker.go (95%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/retransmittable.go (90%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/send_mode.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_handler.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_history.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/bandwidth.go (86%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/clock.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/cubic.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/cubic_sender.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/hybrid_slow_start.go (96%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/interface.go (93%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/prr_sender.go (96%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/rtt_stats.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/congestion/stats.go (61%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/crypto/AEAD.go (78%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/crypto/aesgcm_aead.go (95%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/crypto/hkdf.go (86%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/crypto/null_aead_aesgcm.go (94%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/flowcontrol/base_flow_controller.go (93%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/flowcontrol/connection_flow_controller.go (89%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/flowcontrol/interface.go (93%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/flowcontrol/stream_flow_controller.go (93%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/aead.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/cookie_generator.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/cookie_protector.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/crypto_setup.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/initial_aead.go (93%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/interface.go (91%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/qtls.go (96%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension.go (94%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_client.go (92%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_server.go (90%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/handshake/transport_parameters.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh (83%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/protocol/connection_id.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/protocol/encryption_level.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/protocol/packet_number.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/protocol/params.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/protocol/perspective.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/protocol/stream_id.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/protocol/version.go (96%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/qerr/error_codes.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/qerr/errorcode_string.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/qerr/quic_error.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/testdata/ca.pem (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/testdata/cert.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/testdata/cert.pem (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/testdata/priv.key (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/atomic_bool.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go (99%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/byteorder.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/byteorder_big_endian.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/gen.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/host.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md (70%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/linkedlist.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/log.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/minmax.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/packet_interval.go (67%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go (99%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/streamframe_interval.go (65%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/timer.go (100%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/varint.go (96%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/utils/varint_packetnumber.go (94%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/ack_frame.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go (76%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/connection_close_frame.go (90%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/crypto_frame.go (91%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/data_blocked_frame.go (84%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/extended_header.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/frame.go (71%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/frame_parser.go (92%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/header.go (95%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/log.go (89%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/max_data_frame.go (85%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/max_stream_data_frame.go (87%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/max_streams_frame.go (86%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/new_connection_id_frame.go (91%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/new_token_frame.go (85%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/path_challenge_frame.go (90%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/path_response_frame.go (90%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/ping_frame.go (86%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/reset_stream_frame.go (90%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/retire_connection_id_frame.go (83%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/stop_sending_frame.go (87%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/stream_data_blocked_frame.go (87%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/stream_frame.go (94%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/streams_blocked_frame.go (87%) rename {vendor => external}/github.com/lucas-clemente/quic-go/internal/wire/version_negotiation.go (86%) create mode 100644 external/github.com/lucas-clemente/quic-go/mockgen.go rename {vendor => external}/github.com/lucas-clemente/quic-go/mockgen_private.sh (54%) rename {vendor => external}/github.com/lucas-clemente/quic-go/multiplexer.go (95%) rename {vendor => external}/github.com/lucas-clemente/quic-go/packet_handler_map.go (96%) rename {vendor => external}/github.com/lucas-clemente/quic-go/packet_packer.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/packet_unpacker.go (90%) rename {vendor => external}/github.com/lucas-clemente/quic-go/receive_stream.go (95%) rename {vendor => external}/github.com/lucas-clemente/quic-go/send_stream.go (96%) rename {vendor => external}/github.com/lucas-clemente/quic-go/server.go (97%) rename {vendor => external}/github.com/lucas-clemente/quic-go/server_session.go (89%) rename {vendor => external}/github.com/lucas-clemente/quic-go/session.go (98%) rename {vendor => external}/github.com/lucas-clemente/quic-go/stream.go (95%) rename {vendor => external}/github.com/lucas-clemente/quic-go/streams_map.go (94%) rename {vendor => external}/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go (72%) rename {vendor => external}/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go (94%) rename {vendor => external}/github.com/lucas-clemente/quic-go/streams_map_incoming_generic.go (95%) rename {vendor => external}/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go (94%) rename {vendor => external}/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go (92%) rename {vendor => external}/github.com/lucas-clemente/quic-go/streams_map_outgoing_generic.go (93%) rename {vendor => external}/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go (92%) rename {vendor => external}/github.com/lucas-clemente/quic-go/window_update_queue.go (87%) rename {vendor => external}/github.com/lucas-clemente/sync-files.sh (60%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/13.go (99%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/LICENSE (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/README.md (97%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/alert.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/auth.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/cipher_suites.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/common.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/conn.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/handshake_client.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/handshake_messages.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/handshake_server.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/hkdf.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/key_agreement.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/prf.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/subcerts.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/ticket.go (100%) rename {vendor/github.com/lucas-clemente/quic-go/vendor => external}/github.com/marten-seemann/qtls/tls.go (100%) create mode 100644 external/update-deps.sh delete mode 100644 vendor/github.com/gorilla/websocket/README.md delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/ackhandler/received_packet_handler.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/ackhandler/sent_packet_handler.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/congestion.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/connection_flow_controller.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/crypto/aead.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/crypto_setup.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/mockgen.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/opener.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/sealer.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/internal/mocks/stream_flow_controller.go delete mode 100644 vendor/github.com/lucas-clemente/quic-go/mockgen.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/genny/LICENSE b/external/github.com/cheekybits/genny/LICENSE similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/genny/LICENSE rename to external/github.com/cheekybits/genny/LICENSE diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/genny/generic/doc.go b/external/github.com/cheekybits/genny/generic/doc.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/genny/generic/doc.go rename to external/github.com/cheekybits/genny/generic/doc.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/genny/generic/generic.go b/external/github.com/cheekybits/genny/generic/generic.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/genny/generic/generic.go rename to external/github.com/cheekybits/genny/generic/generic.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/LICENSE b/external/github.com/cloudflare/sidh/LICENSE similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/LICENSE rename to external/github.com/cloudflare/sidh/LICENSE index ea60699d7..b370b3de7 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/LICENSE +++ b/external/github.com/cloudflare/sidh/LICENSE @@ -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, , available +SIDH implementation, , available under the following license: ======================================================================== diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/arith/generic.go b/external/github.com/cloudflare/sidh/internal/arith/generic.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/arith/generic.go rename to external/github.com/cloudflare/sidh/internal/arith/generic.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/isogeny/curve_ops.go b/external/github.com/cloudflare/sidh/internal/isogeny/curve_ops.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/isogeny/curve_ops.go rename to external/github.com/cloudflare/sidh/internal/isogeny/curve_ops.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/isogeny/types.go b/external/github.com/cloudflare/sidh/internal/isogeny/types.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/isogeny/types.go rename to external/github.com/cloudflare/sidh/internal/isogeny/types.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/utils/cpu.go b/external/github.com/cloudflare/sidh/internal/utils/cpu.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/utils/cpu.go rename to external/github.com/cloudflare/sidh/internal/utils/cpu.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.go b/external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.go rename to external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s b/external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s rename to external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_amd64.s b/external/github.com/cloudflare/sidh/p503/arith_amd64.s similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_amd64.s rename to external/github.com/cloudflare/sidh/p503/arith_amd64.s diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_arm64.s b/external/github.com/cloudflare/sidh/p503/arith_arm64.s similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_arm64.s rename to external/github.com/cloudflare/sidh/p503/arith_arm64.s diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_decl.go b/external/github.com/cloudflare/sidh/p503/arith_decl.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_decl.go rename to external/github.com/cloudflare/sidh/p503/arith_decl.go index 96fb7d192..2929561d2 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_decl.go +++ b/external/github.com/cloudflare/sidh/p503/arith_decl.go @@ -3,7 +3,7 @@ package p503 import ( - . "github.com/cloudflare/sidh/internal/isogeny" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" ) // If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_generic.go b/external/github.com/cloudflare/sidh/p503/arith_generic.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_generic.go rename to external/github.com/cloudflare/sidh/p503/arith_generic.go index b14235c0f..ee8cc6e03 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/arith_generic.go +++ b/external/github.com/cloudflare/sidh/p503/arith_generic.go @@ -3,8 +3,8 @@ package p503 import ( - . "github.com/cloudflare/sidh/internal/arith" - . "github.com/cloudflare/sidh/internal/isogeny" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/arith" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" ) // Compute z = x + y (mod p). diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/consts.go b/external/github.com/cloudflare/sidh/p503/consts.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/consts.go rename to external/github.com/cloudflare/sidh/p503/consts.go index 06cb8ee23..7b80f05d1 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/consts.go +++ b/external/github.com/cloudflare/sidh/p503/consts.go @@ -1,8 +1,8 @@ package p503 import ( - . "github.com/cloudflare/sidh/internal/isogeny" - cpu "github.com/cloudflare/sidh/internal/utils" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" + cpu "v2ray.com/core/external/github.com/cloudflare/sidh/internal/utils" ) const ( @@ -25,7 +25,7 @@ const ( ) // CPU Capabilities. Those flags are referred by assembly code. According to -// https://github.com/golang/go/issues/28230, variables referred from the +// https://v2ray.com/core/external/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 ( diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/field_ops.go b/external/github.com/cloudflare/sidh/p503/field_ops.go similarity index 99% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/field_ops.go rename to external/github.com/cloudflare/sidh/p503/field_ops.go index d4b90cd8d..04223d608 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p503/field_ops.go +++ b/external/github.com/cloudflare/sidh/p503/field_ops.go @@ -1,7 +1,7 @@ package p503 import ( - . "github.com/cloudflare/sidh/internal/isogeny" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" ) type fp503Ops struct{} diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_amd64.s b/external/github.com/cloudflare/sidh/p751/arith_amd64.s similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_amd64.s rename to external/github.com/cloudflare/sidh/p751/arith_amd64.s diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_arm64.s b/external/github.com/cloudflare/sidh/p751/arith_arm64.s similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_arm64.s rename to external/github.com/cloudflare/sidh/p751/arith_arm64.s diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_decl.go b/external/github.com/cloudflare/sidh/p751/arith_decl.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_decl.go rename to external/github.com/cloudflare/sidh/p751/arith_decl.go index f262be979..6c48f4dd7 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_decl.go +++ b/external/github.com/cloudflare/sidh/p751/arith_decl.go @@ -3,7 +3,7 @@ package p751 import ( - . "github.com/cloudflare/sidh/internal/isogeny" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" ) // If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_generic.go b/external/github.com/cloudflare/sidh/p751/arith_generic.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_generic.go rename to external/github.com/cloudflare/sidh/p751/arith_generic.go index 4cc71eb57..017301127 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/arith_generic.go +++ b/external/github.com/cloudflare/sidh/p751/arith_generic.go @@ -3,8 +3,8 @@ package p751 import ( - . "github.com/cloudflare/sidh/internal/arith" - . "github.com/cloudflare/sidh/internal/isogeny" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/arith" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" ) // Compute z = x + y (mod p). diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/consts.go b/external/github.com/cloudflare/sidh/p751/consts.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/consts.go rename to external/github.com/cloudflare/sidh/p751/consts.go index 04a72d483..5ecdf3073 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/consts.go +++ b/external/github.com/cloudflare/sidh/p751/consts.go @@ -1,8 +1,8 @@ package p751 import ( - . "github.com/cloudflare/sidh/internal/isogeny" - cpu "github.com/cloudflare/sidh/internal/utils" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" + cpu "v2ray.com/core/external/github.com/cloudflare/sidh/internal/utils" ) const ( @@ -25,7 +25,7 @@ const ( ) // CPU Capabilities. Those flags are referred by assembly code. According to -// https://github.com/golang/go/issues/28230, variables referred from the +// https://v2ray.com/core/external/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 ( diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/field_ops.go b/external/github.com/cloudflare/sidh/p751/field_ops.go similarity index 99% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/field_ops.go rename to external/github.com/cloudflare/sidh/p751/field_ops.go index da48af879..c416c74ac 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/p751/field_ops.go +++ b/external/github.com/cloudflare/sidh/p751/field_ops.go @@ -1,6 +1,6 @@ package p751 -import . "github.com/cloudflare/sidh/internal/isogeny" +import . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" // 2*p751 var () diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/api.go b/external/github.com/cloudflare/sidh/sidh/api.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/api.go rename to external/github.com/cloudflare/sidh/sidh/api.go index 5e3c215d4..50dd13712 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/api.go +++ b/external/github.com/cloudflare/sidh/sidh/api.go @@ -2,7 +2,7 @@ package sidh import ( "errors" - . "github.com/cloudflare/sidh/internal/isogeny" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" "io" ) diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/params.go b/external/github.com/cloudflare/sidh/sidh/params.go similarity index 92% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/params.go rename to external/github.com/cloudflare/sidh/sidh/params.go index 4f050d60b..d1e2c3912 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/params.go +++ b/external/github.com/cloudflare/sidh/sidh/params.go @@ -1,9 +1,9 @@ package sidh import ( - . "github.com/cloudflare/sidh/internal/isogeny" - p503 "github.com/cloudflare/sidh/p503" - p751 "github.com/cloudflare/sidh/p751" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" + p503 "v2ray.com/core/external/github.com/cloudflare/sidh/p503" + p751 "v2ray.com/core/external/github.com/cloudflare/sidh/p751" ) // Keeps mapping: SIDH prime field ID to domain parameters diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/sidh.go b/external/github.com/cloudflare/sidh/sidh/sidh.go similarity index 99% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/sidh.go rename to external/github.com/cloudflare/sidh/sidh/sidh.go index 97b21afbf..17177484c 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/sidh/sidh/sidh.go +++ b/external/github.com/cloudflare/sidh/sidh/sidh.go @@ -1,7 +1,7 @@ package sidh import ( - . "github.com/cloudflare/sidh/internal/isogeny" + . "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny" ) // ----------------------------------------------------------------------------- diff --git a/vendor/github.com/gorilla/websocket/AUTHORS b/external/github.com/gorilla/websocket/AUTHORS similarity index 100% rename from vendor/github.com/gorilla/websocket/AUTHORS rename to external/github.com/gorilla/websocket/AUTHORS diff --git a/vendor/github.com/gorilla/websocket/LICENSE b/external/github.com/gorilla/websocket/LICENSE similarity index 100% rename from vendor/github.com/gorilla/websocket/LICENSE rename to external/github.com/gorilla/websocket/LICENSE diff --git a/external/github.com/gorilla/websocket/README.md b/external/github.com/gorilla/websocket/README.md new file mode 100644 index 000000000..76f5ba22b --- /dev/null +++ b/external/github.com/gorilla/websocket/README.md @@ -0,0 +1,64 @@ +# Gorilla WebSocket + +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) + +### 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) + +### Status + +The Gorilla WebSocket package provides a complete and tested implementation of +the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol. The +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 + +### 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). + +### Gorilla WebSocket compared with other packages + + + + + + + + + + + + + + + + + + +
v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorillagolang.org/x/net
RFC 6455 Features
Passes Autobahn Test SuiteYesNo
Receive fragmented messageYesNo, see note 1
Send close messageYesNo
Send pings and receive pongsYesNo
Get the type of a received data messageYesYes, see note 2
Other Features
Compression ExtensionsExperimentalNo
Read message using io.ReaderYesNo, see note 3
Write message using io.WriteCloserYesNo, see note 3
+ +Notes: + +1. Large messages are fragmented in [Chrome's new WebSocket implementation](http://www.ietf.org/mail-archive/web/hybi/current/msg10503.html). +2. The application can get the type of a received data message by implementing + a [Codec marshal](http://godoc.org/golang.org/x/net/websocket#Codec.Marshal) + function. +3. The go.net io.Reader and io.Writer operate across WebSocket frame boundaries. + Read returns when the input buffer is full or a frame boundary is + encountered. Each call to Write sends a single frame message. The Gorilla + io.Reader and io.WriteCloser operate on a single WebSocket message. + diff --git a/vendor/github.com/gorilla/websocket/client.go b/external/github.com/gorilla/websocket/client.go similarity index 100% rename from vendor/github.com/gorilla/websocket/client.go rename to external/github.com/gorilla/websocket/client.go diff --git a/vendor/github.com/gorilla/websocket/client_clone.go b/external/github.com/gorilla/websocket/client_clone.go similarity index 100% rename from vendor/github.com/gorilla/websocket/client_clone.go rename to external/github.com/gorilla/websocket/client_clone.go diff --git a/vendor/github.com/gorilla/websocket/conn.go b/external/github.com/gorilla/websocket/conn.go similarity index 100% rename from vendor/github.com/gorilla/websocket/conn.go rename to external/github.com/gorilla/websocket/conn.go diff --git a/vendor/github.com/gorilla/websocket/conn_write.go b/external/github.com/gorilla/websocket/conn_write.go similarity index 100% rename from vendor/github.com/gorilla/websocket/conn_write.go rename to external/github.com/gorilla/websocket/conn_write.go diff --git a/vendor/github.com/gorilla/websocket/doc.go b/external/github.com/gorilla/websocket/doc.go similarity index 100% rename from vendor/github.com/gorilla/websocket/doc.go rename to external/github.com/gorilla/websocket/doc.go diff --git a/vendor/github.com/gorilla/websocket/mask.go b/external/github.com/gorilla/websocket/mask.go similarity index 100% rename from vendor/github.com/gorilla/websocket/mask.go rename to external/github.com/gorilla/websocket/mask.go diff --git a/vendor/github.com/gorilla/websocket/mask_safe.go b/external/github.com/gorilla/websocket/mask_safe.go similarity index 100% rename from vendor/github.com/gorilla/websocket/mask_safe.go rename to external/github.com/gorilla/websocket/mask_safe.go diff --git a/vendor/github.com/gorilla/websocket/server.go b/external/github.com/gorilla/websocket/server.go similarity index 100% rename from vendor/github.com/gorilla/websocket/server.go rename to external/github.com/gorilla/websocket/server.go diff --git a/vendor/github.com/gorilla/websocket/util.go b/external/github.com/gorilla/websocket/util.go similarity index 100% rename from vendor/github.com/gorilla/websocket/util.go rename to external/github.com/gorilla/websocket/util.go diff --git a/vendor/github.com/lucas-clemente/quic-go/Changelog.md b/external/github.com/lucas-clemente/quic-go/Changelog.md similarity index 87% rename from vendor/github.com/lucas-clemente/quic-go/Changelog.md rename to external/github.com/lucas-clemente/quic-go/Changelog.md index cbc88e73e..9ddd0c03d 100644 --- a/vendor/github.com/lucas-clemente/quic-go/Changelog.md +++ b/external/github.com/lucas-clemente/quic-go/Changelog.md @@ -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/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. +- 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. - 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. diff --git a/vendor/github.com/lucas-clemente/quic-go/LICENSE b/external/github.com/lucas-clemente/quic-go/LICENSE similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/LICENSE rename to external/github.com/lucas-clemente/quic-go/LICENSE diff --git a/vendor/github.com/lucas-clemente/quic-go/README.md b/external/github.com/lucas-clemente/quic-go/README.md similarity index 74% rename from vendor/github.com/lucas-clemente/quic-go/README.md rename to external/github.com/lucas-clemente/quic-go/README.md index ae1fa9cd2..9dd4169fd 100644 --- a/vendor/github.com/lucas-clemente/quic-go/README.md +++ b/external/github.com/lucas-clemente/quic-go/README.md @@ -2,25 +2,25 @@ -[![Godoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/lucas-clemente/quic-go) +[![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) [![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://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://v2ray.com/core/external/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://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. +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. ## 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://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://v2ray.com/core/external/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://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://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. diff --git a/vendor/github.com/lucas-clemente/quic-go/appveyor.yml b/external/github.com/lucas-clemente/quic-go/appveyor.yml similarity index 77% rename from vendor/github.com/lucas-clemente/quic-go/appveyor.yml rename to external/github.com/lucas-clemente/quic-go/appveyor.yml index 5e44d0021..e8bcf5c66 100644 --- a/vendor/github.com/lucas-clemente/quic-go/appveyor.yml +++ b/external/github.com/lucas-clemente/quic-go/appveyor.yml @@ -10,7 +10,7 @@ environment: - GOARCH: 386 - GOARCH: amd64 -clone_folder: c:\gopath\src\github.com\lucas-clemente\quic-go +clone_folder: c:\gopath\src\v2ray.com/core/external/github.com\lucas-clemente\quic-go install: - rmdir c:\go /s /q @@ -19,8 +19,8 @@ install: - set PATH=%PATH%;%GOPATH%\bin\windows_%GOARCH%;%GOPATH%\bin - echo %PATH% - echo %GOPATH% - - go get github.com/onsi/ginkgo/ginkgo - - go get github.com/onsi/gomega + - go get v2ray.com/core/external/github.com/onsi/ginkgo/ginkgo + - go get v2ray.com/core/external/github.com/onsi/gomega - go version - go env - go get -v -t ./... diff --git a/vendor/github.com/lucas-clemente/quic-go/buffer_pool.go b/external/github.com/lucas-clemente/quic-go/buffer_pool.go similarity index 93% rename from vendor/github.com/lucas-clemente/quic-go/buffer_pool.go rename to external/github.com/lucas-clemente/quic-go/buffer_pool.go index 9240edf4b..2966dbd70 100644 --- a/vendor/github.com/lucas-clemente/quic-go/buffer_pool.go +++ b/external/github.com/lucas-clemente/quic-go/buffer_pool.go @@ -3,7 +3,7 @@ package quic import ( "sync" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" "v2ray.com/core/common/bytespool" ) diff --git a/vendor/github.com/lucas-clemente/quic-go/client.go b/external/github.com/lucas-clemente/quic-go/client.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/client.go rename to external/github.com/lucas-clemente/quic-go/client.go index 787fa89c1..18391fd4f 100644 --- a/vendor/github.com/lucas-clemente/quic-go/client.go +++ b/external/github.com/lucas-clemente/quic-go/client.go @@ -7,11 +7,11 @@ import ( "net" "sync" - "github.com/lucas-clemente/quic-go/internal/handshake" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/handshake" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type client struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/codecov.yml b/external/github.com/lucas-clemente/quic-go/codecov.yml similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/codecov.yml rename to external/github.com/lucas-clemente/quic-go/codecov.yml diff --git a/vendor/github.com/lucas-clemente/quic-go/conn.go b/external/github.com/lucas-clemente/quic-go/conn.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/conn.go rename to external/github.com/lucas-clemente/quic-go/conn.go diff --git a/vendor/github.com/lucas-clemente/quic-go/crypto_stream.go b/external/github.com/lucas-clemente/quic-go/crypto_stream.go similarity index 92% rename from vendor/github.com/lucas-clemente/quic-go/crypto_stream.go rename to external/github.com/lucas-clemente/quic-go/crypto_stream.go index 9007a2b03..806347f7d 100644 --- a/vendor/github.com/lucas-clemente/quic-go/crypto_stream.go +++ b/external/github.com/lucas-clemente/quic-go/crypto_stream.go @@ -5,9 +5,9 @@ import ( "fmt" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type cryptoStream interface { diff --git a/vendor/github.com/lucas-clemente/quic-go/crypto_stream_manager.go b/external/github.com/lucas-clemente/quic-go/crypto_stream_manager.go similarity index 89% rename from vendor/github.com/lucas-clemente/quic-go/crypto_stream_manager.go rename to external/github.com/lucas-clemente/quic-go/crypto_stream_manager.go index 330b26daf..526c98aa4 100644 --- a/vendor/github.com/lucas-clemente/quic-go/crypto_stream_manager.go +++ b/external/github.com/lucas-clemente/quic-go/crypto_stream_manager.go @@ -3,8 +3,8 @@ package quic import ( "fmt" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type cryptoDataHandler interface { diff --git a/vendor/github.com/lucas-clemente/quic-go/frame_sorter.go b/external/github.com/lucas-clemente/quic-go/frame_sorter.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/frame_sorter.go rename to external/github.com/lucas-clemente/quic-go/frame_sorter.go index e07dad47f..087265e2e 100644 --- a/vendor/github.com/lucas-clemente/quic-go/frame_sorter.go +++ b/external/github.com/lucas-clemente/quic-go/frame_sorter.go @@ -3,8 +3,8 @@ package quic import ( "errors" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) type frameSorter struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/framer.go b/external/github.com/lucas-clemente/quic-go/framer.go similarity index 95% rename from vendor/github.com/lucas-clemente/quic-go/framer.go rename to external/github.com/lucas-clemente/quic-go/framer.go index fbfe9bb76..88b14ad91 100644 --- a/vendor/github.com/lucas-clemente/quic-go/framer.go +++ b/external/github.com/lucas-clemente/quic-go/framer.go @@ -3,8 +3,8 @@ package quic import ( "sync" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type framer interface { diff --git a/vendor/github.com/lucas-clemente/quic-go/interface.go b/external/github.com/lucas-clemente/quic-go/interface.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/interface.go rename to external/github.com/lucas-clemente/quic-go/interface.go index 689647553..5b52e8366 100644 --- a/vendor/github.com/lucas-clemente/quic-go/interface.go +++ b/external/github.com/lucas-clemente/quic-go/interface.go @@ -6,8 +6,8 @@ import ( "net" "time" - "github.com/lucas-clemente/quic-go/internal/handshake" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/handshake" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // The StreamID is the ID of a QUIC stream. diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/gen.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/gen.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/gen.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/gen.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/interfaces.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/interfaces.go similarity index 92% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/interfaces.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/interfaces.go index 4ea8a3c02..b839cba1a 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/interfaces.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/interfaces.go @@ -3,8 +3,8 @@ package ackhandler import ( "time" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) // SentPacketHandler handles ACKs received for outgoing packets diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet.go similarity index 84% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet.go index 9673a85c7..53e668774 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet.go @@ -3,8 +3,8 @@ package ackhandler import ( "time" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) // A Packet is a packet diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go index bb74f4ef9..bf9b88f88 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://github.com/cheekybits/genny +// see https://v2ray.com/core/external/github.com/cheekybits/genny package ackhandler diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_number_generator.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_number_generator.go similarity index 92% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_number_generator.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_number_generator.go index 56fbf3d80..9d613792d 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_number_generator.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_number_generator.go @@ -4,8 +4,8 @@ import ( "crypto/rand" "math" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) // The packetNumberGenerator generates the packet number for the next packet diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_handler.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_handler.go similarity index 91% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_handler.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_handler.go index 1df64ea87..0b1719b29 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_handler.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_handler.go @@ -4,10 +4,10 @@ import ( "fmt" "time" - "github.com/lucas-clemente/quic-go/internal/congestion" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) const ( diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_history.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_history.go similarity index 91% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_history.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_history.go index 5a2218441..4519a1da7 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_history.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_history.go @@ -1,10 +1,10 @@ package ackhandler import ( - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) // The receivedPacketHistory stores if a packet number has already been received. diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_tracker.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_tracker.go similarity index 95% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_tracker.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_tracker.go index b7840490f..0863ab5ef 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_tracker.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/received_packet_tracker.go @@ -3,10 +3,10 @@ package ackhandler import ( "time" - "github.com/lucas-clemente/quic-go/internal/congestion" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type receivedPacketTracker struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/retransmittable.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/retransmittable.go similarity index 90% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/retransmittable.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/retransmittable.go index ae622afd5..18971750b 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/retransmittable.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/retransmittable.go @@ -1,6 +1,6 @@ package ackhandler -import "github.com/lucas-clemente/quic-go/internal/wire" +import "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" // Returns a new slice with all non-retransmittable frames deleted. func stripNonRetransmittableFrames(fs []wire.Frame) []wire.Frame { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/send_mode.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/send_mode.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/send_mode.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/send_mode.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_handler.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_handler.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_handler.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_handler.go index 0c67b0da4..83ddc8c99 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_handler.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_handler.go @@ -6,11 +6,11 @@ import ( "math" "time" - "github.com/lucas-clemente/quic-go/internal/congestion" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) const ( diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_history.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_history.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_history.go rename to external/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_history.go index e5e126636..0b85993f2 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_history.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/sent_packet_history.go @@ -3,7 +3,7 @@ package ackhandler import ( "fmt" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) type sentPacketHistory struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/bandwidth.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/bandwidth.go similarity index 86% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/bandwidth.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/bandwidth.go index 54269c567..aff34ddb6 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/bandwidth.go +++ b/external/github.com/lucas-clemente/quic-go/internal/congestion/bandwidth.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // Bandwidth of a connection diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/clock.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/clock.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/clock.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/clock.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/cubic.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/cubic.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/cubic.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/cubic.go index dcf91fc6d..6b32e9bd2 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/cubic.go +++ b/external/github.com/lucas-clemente/quic-go/internal/congestion/cubic.go @@ -4,8 +4,8 @@ import ( "math" "time" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // This cubic implementation is based on the one found in Chromiums's QUIC diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/cubic_sender.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/cubic_sender.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/cubic_sender.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/cubic_sender.go index 33ef491fc..9eb898644 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/cubic_sender.go +++ b/external/github.com/lucas-clemente/quic-go/internal/congestion/cubic_sender.go @@ -3,8 +3,8 @@ package congestion import ( "time" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) const ( diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/hybrid_slow_start.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/hybrid_slow_start.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/hybrid_slow_start.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/hybrid_slow_start.go index f41c1e5c3..890ee4069 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/hybrid_slow_start.go +++ b/external/github.com/lucas-clemente/quic-go/internal/congestion/hybrid_slow_start.go @@ -3,8 +3,8 @@ package congestion import ( "time" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // Note(pwestin): the magic clamping numbers come from the original code in diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/interface.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/interface.go similarity index 93% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/interface.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/interface.go index 7c27da64a..e3d80b425 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/interface.go +++ b/external/github.com/lucas-clemente/quic-go/internal/congestion/interface.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // A SendAlgorithm performs congestion control and calculates the congestion window diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/prr_sender.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/prr_sender.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/prr_sender.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/prr_sender.go index 5c807d190..3febd7bac 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/prr_sender.go +++ b/external/github.com/lucas-clemente/quic-go/internal/congestion/prr_sender.go @@ -1,7 +1,7 @@ package congestion import ( - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // PrrSender implements the Proportional Rate Reduction (PRR) per RFC 6937 diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/rtt_stats.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/rtt_stats.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/rtt_stats.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/rtt_stats.go index f0ebbb236..146f03d8e 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/rtt_stats.go +++ b/external/github.com/lucas-clemente/quic-go/internal/congestion/rtt_stats.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) const ( diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/stats.go b/external/github.com/lucas-clemente/quic-go/internal/congestion/stats.go similarity index 61% rename from vendor/github.com/lucas-clemente/quic-go/internal/congestion/stats.go rename to external/github.com/lucas-clemente/quic-go/internal/congestion/stats.go index ed669c146..7bb1942b2 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/congestion/stats.go +++ b/external/github.com/lucas-clemente/quic-go/internal/congestion/stats.go @@ -1,6 +1,6 @@ package congestion -import "github.com/lucas-clemente/quic-go/internal/protocol" +import "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" type connectionStats struct { slowstartPacketsLost protocol.PacketNumber diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/crypto/AEAD.go b/external/github.com/lucas-clemente/quic-go/internal/crypto/AEAD.go similarity index 78% rename from vendor/github.com/lucas-clemente/quic-go/internal/crypto/AEAD.go rename to external/github.com/lucas-clemente/quic-go/internal/crypto/AEAD.go index d1905159d..5c2dfd530 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/crypto/AEAD.go +++ b/external/github.com/lucas-clemente/quic-go/internal/crypto/AEAD.go @@ -1,6 +1,6 @@ package crypto -import "github.com/lucas-clemente/quic-go/internal/protocol" +import "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" // An AEAD implements QUIC's authenticated encryption and associated data type AEAD interface { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/crypto/aesgcm_aead.go b/external/github.com/lucas-clemente/quic-go/internal/crypto/aesgcm_aead.go similarity index 95% rename from vendor/github.com/lucas-clemente/quic-go/internal/crypto/aesgcm_aead.go rename to external/github.com/lucas-clemente/quic-go/internal/crypto/aesgcm_aead.go index d55974e62..961df50d9 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/crypto/aesgcm_aead.go +++ b/external/github.com/lucas-clemente/quic-go/internal/crypto/aesgcm_aead.go @@ -6,7 +6,7 @@ import ( "encoding/binary" "errors" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) type aeadAESGCM struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/crypto/hkdf.go b/external/github.com/lucas-clemente/quic-go/internal/crypto/hkdf.go similarity index 86% rename from vendor/github.com/lucas-clemente/quic-go/internal/crypto/hkdf.go rename to external/github.com/lucas-clemente/quic-go/internal/crypto/hkdf.go index 062289384..d8fea7ddd 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/crypto/hkdf.go +++ b/external/github.com/lucas-clemente/quic-go/internal/crypto/hkdf.go @@ -6,7 +6,7 @@ import ( "encoding/binary" ) -// copied from https://github.com/cloudflare/tls-tris/blob/master/hkdf.go +// copied from https://v2ray.com/core/external/github.com/cloudflare/tls-tris/blob/master/hkdf.go func hkdfExtract(hash crypto.Hash, secret, salt []byte) []byte { if salt == nil { salt = make([]byte, hash.Size()) @@ -19,7 +19,7 @@ func hkdfExtract(hash crypto.Hash, secret, salt []byte) []byte { return extractor.Sum(nil) } -// copied from https://github.com/cloudflare/tls-tris/blob/master/hkdf.go +// copied from https://v2ray.com/core/external/github.com/cloudflare/tls-tris/blob/master/hkdf.go func hkdfExpand(hash crypto.Hash, prk, info []byte, l int) []byte { var ( expander = hmac.New(hash.New, prk) diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/crypto/null_aead_aesgcm.go b/external/github.com/lucas-clemente/quic-go/internal/crypto/null_aead_aesgcm.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/internal/crypto/null_aead_aesgcm.go rename to external/github.com/lucas-clemente/quic-go/internal/crypto/null_aead_aesgcm.go index 7ef52f631..33687e312 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/crypto/null_aead_aesgcm.go +++ b/external/github.com/lucas-clemente/quic-go/internal/crypto/null_aead_aesgcm.go @@ -3,7 +3,7 @@ package crypto import ( "crypto" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) var quicVersion1Salt = []byte{0x9c, 0x10, 0x8f, 0x98, 0x52, 0x0a, 0x5c, 0x5c, 0x32, 0x96, 0x8e, 0x95, 0x0e, 0x8a, 0x2c, 0x5f, 0xe0, 0x6d, 0x6c, 0x38} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/base_flow_controller.go b/external/github.com/lucas-clemente/quic-go/internal/flowcontrol/base_flow_controller.go similarity index 93% rename from vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/base_flow_controller.go rename to external/github.com/lucas-clemente/quic-go/internal/flowcontrol/base_flow_controller.go index 6a0aa3c58..0091930b5 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/base_flow_controller.go +++ b/external/github.com/lucas-clemente/quic-go/internal/flowcontrol/base_flow_controller.go @@ -4,9 +4,9 @@ import ( "sync" "time" - "github.com/lucas-clemente/quic-go/internal/congestion" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) type baseFlowController struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/connection_flow_controller.go b/external/github.com/lucas-clemente/quic-go/internal/flowcontrol/connection_flow_controller.go similarity index 89% rename from vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/connection_flow_controller.go rename to external/github.com/lucas-clemente/quic-go/internal/flowcontrol/connection_flow_controller.go index e4dc4edc8..1dd3fb7a3 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/connection_flow_controller.go +++ b/external/github.com/lucas-clemente/quic-go/internal/flowcontrol/connection_flow_controller.go @@ -3,10 +3,10 @@ package flowcontrol import ( "fmt" - "github.com/lucas-clemente/quic-go/internal/congestion" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) type connectionFlowController struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/interface.go b/external/github.com/lucas-clemente/quic-go/internal/flowcontrol/interface.go similarity index 93% rename from vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/interface.go rename to external/github.com/lucas-clemente/quic-go/internal/flowcontrol/interface.go index 9f07c887a..5293e8771 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/interface.go +++ b/external/github.com/lucas-clemente/quic-go/internal/flowcontrol/interface.go @@ -1,6 +1,6 @@ package flowcontrol -import "github.com/lucas-clemente/quic-go/internal/protocol" +import "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" type flowController interface { // for sending diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/stream_flow_controller.go b/external/github.com/lucas-clemente/quic-go/internal/flowcontrol/stream_flow_controller.go similarity index 93% rename from vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/stream_flow_controller.go rename to external/github.com/lucas-clemente/quic-go/internal/flowcontrol/stream_flow_controller.go index 5e58b5662..7ae61d983 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol/stream_flow_controller.go +++ b/external/github.com/lucas-clemente/quic-go/internal/flowcontrol/stream_flow_controller.go @@ -3,10 +3,10 @@ package flowcontrol import ( "fmt" - "github.com/lucas-clemente/quic-go/internal/congestion" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) type streamFlowController struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/aead.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/aead.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/aead.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/aead.go index 07ce74f74..ba8ddbd3e 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/aead.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/aead.go @@ -4,7 +4,7 @@ import ( "crypto/cipher" "encoding/binary" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) type sealer struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/cookie_generator.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/cookie_generator.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/cookie_generator.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/cookie_generator.go index 6d1288ed6..ae77f3568 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/cookie_generator.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/cookie_generator.go @@ -6,7 +6,7 @@ import ( "net" "time" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) const ( diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/cookie_protector.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/cookie_protector.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/cookie_protector.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/cookie_protector.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/crypto_setup.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/crypto_setup.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/crypto_setup.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/crypto_setup.go index cb48ac0be..b06306ac6 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/crypto_setup.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/crypto_setup.go @@ -7,9 +7,9 @@ import ( "fmt" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/marten-seemann/qtls" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/marten-seemann/qtls" ) type messageType uint8 diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/initial_aead.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/initial_aead.go similarity index 93% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/initial_aead.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/initial_aead.go index 90334a1b0..92cce873c 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/initial_aead.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/initial_aead.go @@ -4,8 +4,8 @@ import ( "crypto" "crypto/aes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/marten-seemann/qtls" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/marten-seemann/qtls" ) var quicVersion1Salt = []byte{0xef, 0x4f, 0xb0, 0xab, 0xb4, 0x74, 0x70, 0xc4, 0x1b, 0xef, 0xcf, 0x80, 0x31, 0x33, 0x4f, 0xae, 0x48, 0x5e, 0x09, 0xa0} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/interface.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/interface.go similarity index 91% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/interface.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/interface.go index 38d8e4a60..3f6a6f8a0 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/interface.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/interface.go @@ -4,8 +4,8 @@ import ( "crypto/x509" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/marten-seemann/qtls" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/marten-seemann/qtls" ) // Opener opens a packet diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/qtls.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/qtls.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/qtls.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/qtls.go index 2cffd92bf..23543b5c0 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/qtls.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/qtls.go @@ -3,7 +3,7 @@ package handshake import ( "crypto/tls" - "github.com/marten-seemann/qtls" + "v2ray.com/core/external/github.com/marten-seemann/qtls" ) func tlsConfigToQtlsConfig(c *tls.Config) *qtls.Config { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension.go index 96b890bf2..894ad7e4d 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension.go @@ -6,8 +6,8 @@ import ( "errors" "fmt" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) const quicTLSExtensionType = 0xffa5 diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_client.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_client.go similarity index 92% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_client.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_client.go index 5e4e1c4d9..8a6869594 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_client.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_client.go @@ -4,10 +4,10 @@ import ( "errors" "fmt" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/marten-seemann/qtls" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/marten-seemann/qtls" ) type extensionHandlerClient struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_server.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_server.go similarity index 90% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_server.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_server.go index 732f8dc08..7159a2ff8 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_server.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension_handler_server.go @@ -3,10 +3,10 @@ package handshake import ( "errors" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/marten-seemann/qtls" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/marten-seemann/qtls" ) type extensionHandlerServer struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/transport_parameters.go b/external/github.com/lucas-clemente/quic-go/internal/handshake/transport_parameters.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/internal/handshake/transport_parameters.go rename to external/github.com/lucas-clemente/quic-go/internal/handshake/transport_parameters.go index 500be0084..2477c37a0 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/handshake/transport_parameters.go +++ b/external/github.com/lucas-clemente/quic-go/internal/handshake/transport_parameters.go @@ -8,8 +8,8 @@ import ( "sort" "time" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) type transportParameterID uint16 diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh b/external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh similarity index 83% rename from vendor/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh rename to external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh index a0f9112b7..5f91dfc90 100755 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh +++ b/external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh @@ -7,13 +7,13 @@ # Afterwards, it corrects the import paths (replaces internalpackage back to internal). TEMP_DIR=$(mktemp -d) -mkdir -p $TEMP_DIR/src/github.com/lucas-clemente/quic-go/internalpackage +mkdir -p $TEMP_DIR/src/v2ray.com/core/external/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/github.com/lucas-clemente/quic-go/internal/* $TEMP_DIR/src/github.com/lucas-clemente/quic-go/internalpackage +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 find $TEMP_DIR -type f -name "*.go" -exec sed -i '' 's/internal/internalpackage/g' {} \; export GOPATH="$TEMP_DIR:$GOPATH" diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/connection_id.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/connection_id.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/protocol/connection_id.go rename to external/github.com/lucas-clemente/quic-go/internal/protocol/connection_id.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/encryption_level.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/encryption_level.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/protocol/encryption_level.go rename to external/github.com/lucas-clemente/quic-go/internal/protocol/encryption_level.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/packet_number.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/packet_number.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/protocol/packet_number.go rename to external/github.com/lucas-clemente/quic-go/internal/protocol/packet_number.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/params.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/params.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/protocol/params.go rename to external/github.com/lucas-clemente/quic-go/internal/protocol/params.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/perspective.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/perspective.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/protocol/perspective.go rename to external/github.com/lucas-clemente/quic-go/internal/protocol/perspective.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go rename to external/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/stream_id.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/stream_id.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/protocol/stream_id.go rename to external/github.com/lucas-clemente/quic-go/internal/protocol/stream_id.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/version.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/version.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/internal/protocol/version.go rename to external/github.com/lucas-clemente/quic-go/internal/protocol/version.go index 3406cfa46..32003eb7a 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/protocol/version.go +++ b/external/github.com/lucas-clemente/quic-go/internal/protocol/version.go @@ -10,7 +10,7 @@ import ( // VersionNumber is a version number as int type VersionNumber uint32 -// gQUIC version range as defined in the wiki: https://github.com/quicwg/base-drafts/wiki/QUIC-Versions +// gQUIC version range as defined in the wiki: https://v2ray.com/core/external/github.com/quicwg/base-drafts/wiki/QUIC-Versions const ( gquicVersion0 = 0x51303030 maxGquicVersion = 0x51303439 diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/qerr/error_codes.go b/external/github.com/lucas-clemente/quic-go/internal/qerr/error_codes.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/qerr/error_codes.go rename to external/github.com/lucas-clemente/quic-go/internal/qerr/error_codes.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/qerr/errorcode_string.go b/external/github.com/lucas-clemente/quic-go/internal/qerr/errorcode_string.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/qerr/errorcode_string.go rename to external/github.com/lucas-clemente/quic-go/internal/qerr/errorcode_string.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/qerr/quic_error.go b/external/github.com/lucas-clemente/quic-go/internal/qerr/quic_error.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/qerr/quic_error.go rename to external/github.com/lucas-clemente/quic-go/internal/qerr/quic_error.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/testdata/ca.pem b/external/github.com/lucas-clemente/quic-go/internal/testdata/ca.pem similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/testdata/ca.pem rename to external/github.com/lucas-clemente/quic-go/internal/testdata/ca.pem diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/testdata/cert.go b/external/github.com/lucas-clemente/quic-go/internal/testdata/cert.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/testdata/cert.go rename to external/github.com/lucas-clemente/quic-go/internal/testdata/cert.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/testdata/cert.pem b/external/github.com/lucas-clemente/quic-go/internal/testdata/cert.pem similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/testdata/cert.pem rename to external/github.com/lucas-clemente/quic-go/internal/testdata/cert.pem diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/testdata/priv.key b/external/github.com/lucas-clemente/quic-go/internal/testdata/priv.key similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/testdata/priv.key rename to external/github.com/lucas-clemente/quic-go/internal/testdata/priv.key diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/atomic_bool.go b/external/github.com/lucas-clemente/quic-go/internal/utils/atomic_bool.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/atomic_bool.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/atomic_bool.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go b/external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go similarity index 99% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go index 096023ef2..9f92f72d7 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://github.com/cheekybits/genny +// see https://v2ray.com/core/external/github.com/cheekybits/genny package utils diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/byteorder.go b/external/github.com/lucas-clemente/quic-go/internal/utils/byteorder.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/byteorder.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/byteorder.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/byteorder_big_endian.go b/external/github.com/lucas-clemente/quic-go/internal/utils/byteorder_big_endian.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/byteorder_big_endian.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/byteorder_big_endian.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/gen.go b/external/github.com/lucas-clemente/quic-go/internal/utils/gen.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/gen.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/gen.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/host.go b/external/github.com/lucas-clemente/quic-go/internal/utils/host.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/host.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/host.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md b/external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md similarity index 70% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md rename to external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md index 15b46dce5..52470baff 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md @@ -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://github.com/cheekybits/genny) can be used to generate a typed linked +(https://v2ray.com/core/external/github.com/cheekybits/genny) can be used to generate a typed linked list. To generate, run diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/linkedlist.go b/external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/linkedlist.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/linkedlist.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/linkedlist.go index 74b815a81..06d32959c 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/linkedlist.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/linkedlist.go @@ -1,6 +1,6 @@ package linkedlist -import "github.com/cheekybits/genny/generic" +import "v2ray.com/core/external/github.com/cheekybits/genny/generic" // Linked list implementation from the Go standard library. diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/log.go b/external/github.com/lucas-clemente/quic-go/internal/utils/log.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/log.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/log.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/minmax.go b/external/github.com/lucas-clemente/quic-go/internal/utils/minmax.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/minmax.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/minmax.go index 84cbec7b9..d245ea7d3 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/minmax.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/minmax.go @@ -4,7 +4,7 @@ import ( "math" "time" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // InfDuration is a duration of infinite length diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/packet_interval.go b/external/github.com/lucas-clemente/quic-go/internal/utils/packet_interval.go similarity index 67% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/packet_interval.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/packet_interval.go index 62cc8b9cb..7e5707dcf 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/packet_interval.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/packet_interval.go @@ -1,6 +1,6 @@ package utils -import "github.com/lucas-clemente/quic-go/internal/protocol" +import "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" // PacketInterval is an interval from one PacketNumber to the other type PacketInterval struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go b/external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go similarity index 99% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go index b461e85a9..4fc9723e6 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://github.com/cheekybits/genny +// see https://v2ray.com/core/external/github.com/cheekybits/genny package utils diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/streamframe_interval.go b/external/github.com/lucas-clemente/quic-go/internal/utils/streamframe_interval.go similarity index 65% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/streamframe_interval.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/streamframe_interval.go index ec16d251b..b1bc82b5f 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/streamframe_interval.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/streamframe_interval.go @@ -1,6 +1,6 @@ package utils -import "github.com/lucas-clemente/quic-go/internal/protocol" +import "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" // ByteInterval is an interval from one ByteCount to the other type ByteInterval struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/timer.go b/external/github.com/lucas-clemente/quic-go/internal/utils/timer.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/timer.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/timer.go diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/varint.go b/external/github.com/lucas-clemente/quic-go/internal/utils/varint.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/varint.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/varint.go index 35e8674e2..2cf839298 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/varint.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/varint.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // taken from the QUIC draft diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/utils/varint_packetnumber.go b/external/github.com/lucas-clemente/quic-go/internal/utils/varint_packetnumber.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/internal/utils/varint_packetnumber.go rename to external/github.com/lucas-clemente/quic-go/internal/utils/varint_packetnumber.go index b05afd4b9..b220b4a24 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/utils/varint_packetnumber.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/varint_packetnumber.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // ReadVarIntPacketNumber reads a number in the QUIC varint packet number format diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/ack_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/ack_frame.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/ack_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/ack_frame.go index e2e8f471f..4af3de98e 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/ack_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/ack_frame.go @@ -6,8 +6,8 @@ import ( "sort" "time" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // TODO: use the value sent in the transport parameters diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go b/external/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go similarity index 76% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go index 0f4185801..a4d3dff6b 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go @@ -1,6 +1,6 @@ package wire -import "github.com/lucas-clemente/quic-go/internal/protocol" +import "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" // AckRange is an ACK range type AckRange struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/connection_close_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/connection_close_frame.go similarity index 90% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/connection_close_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/connection_close_frame.go index 60378a5d8..624f066d5 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/connection_close_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/connection_close_frame.go @@ -4,9 +4,9 @@ import ( "bytes" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A ConnectionCloseFrame is a CONNECTION_CLOSE frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/crypto_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/crypto_frame.go similarity index 91% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/crypto_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/crypto_frame.go index eeafea974..c3aacb728 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/crypto_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/crypto_frame.go @@ -4,8 +4,8 @@ import ( "bytes" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A CryptoFrame is a CRYPTO frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/data_blocked_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/data_blocked_frame.go similarity index 84% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/data_blocked_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/data_blocked_frame.go index 91c05ccfb..66b7760c6 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/data_blocked_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/data_blocked_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A DataBlockedFrame is a DATA_BLOCKED frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/extended_header.go b/external/github.com/lucas-clemente/quic-go/internal/wire/extended_header.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/extended_header.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/extended_header.go index 19a0b064e..814ddd280 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/extended_header.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/extended_header.go @@ -6,8 +6,8 @@ import ( "fmt" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // ExtendedHeader is the header of a QUIC packet. diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/frame.go similarity index 71% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/frame.go index 835905a41..4e2050071 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/frame.go @@ -3,7 +3,7 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // A Frame in QUIC diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/frame_parser.go b/external/github.com/lucas-clemente/quic-go/internal/wire/frame_parser.go similarity index 92% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/frame_parser.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/frame_parser.go index 59a8459d6..3762a3392 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/frame_parser.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/frame_parser.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" ) // ParseNextFrame parses the next frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/header.go b/external/github.com/lucas-clemente/quic-go/internal/wire/header.go similarity index 95% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/header.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/header.go index 5b0d6effb..68f652ab8 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/header.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/header.go @@ -5,9 +5,9 @@ import ( "errors" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // The Header is the version independent part of the header diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/log.go b/external/github.com/lucas-clemente/quic-go/internal/wire/log.go similarity index 89% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/log.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/log.go index cf627f2f5..8a72410bd 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/log.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/log.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // LogFrame logs a frame, either sent or received diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/max_data_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/max_data_frame.go similarity index 85% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/max_data_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/max_data_frame.go index c4a9be0df..ba0a3a25f 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/max_data_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/max_data_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A MaxDataFrame carries flow control information for the connection diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/max_stream_data_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/max_stream_data_frame.go similarity index 87% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/max_stream_data_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/max_stream_data_frame.go index 2566f1c9b..b13944e45 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/max_stream_data_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/max_stream_data_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A MaxStreamDataFrame is a MAX_STREAM_DATA frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/max_streams_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/max_streams_frame.go similarity index 86% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/max_streams_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/max_streams_frame.go index c7a3cd41c..63cfae257 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/max_streams_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/max_streams_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A MaxStreamsFrame is a MAX_STREAMS frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/new_connection_id_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/new_connection_id_frame.go similarity index 91% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/new_connection_id_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/new_connection_id_frame.go index 9a612aa6c..73893438c 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/new_connection_id_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/new_connection_id_frame.go @@ -5,9 +5,9 @@ import ( "fmt" "io" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // A NewConnectionIDFrame is a NEW_CONNECTION_ID frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/new_token_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/new_token_frame.go similarity index 85% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/new_token_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/new_token_frame.go index 2cf6fce5e..2cf4db636 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/new_token_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/new_token_frame.go @@ -4,8 +4,8 @@ import ( "bytes" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A NewTokenFrame is a NEW_TOKEN frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/path_challenge_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/path_challenge_frame.go similarity index 90% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/path_challenge_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/path_challenge_frame.go index d35ee3b54..074cc053c 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/path_challenge_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/path_challenge_frame.go @@ -4,7 +4,7 @@ import ( "bytes" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // A PathChallengeFrame is a PATH_CHALLENGE frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/path_response_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/path_response_frame.go similarity index 90% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/path_response_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/path_response_frame.go index 20d8fd721..2b385bc7d 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/path_response_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/path_response_frame.go @@ -4,7 +4,7 @@ import ( "bytes" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // A PathResponseFrame is a PATH_RESPONSE frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/ping_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/ping_frame.go similarity index 86% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/ping_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/ping_frame.go index aed6857b5..f9b0bfcd1 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/ping_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/ping_frame.go @@ -3,7 +3,7 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // A PingFrame is a PING frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/reset_stream_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/reset_stream_frame.go similarity index 90% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/reset_stream_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/reset_stream_frame.go index d3a40dcf9..b1ed65e05 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/reset_stream_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/reset_stream_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A ResetStreamFrame is a RESET_STREAM frame in QUIC diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/retire_connection_id_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/retire_connection_id_frame.go similarity index 83% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/retire_connection_id_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/retire_connection_id_frame.go index 9a715a4c4..50230f6d7 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/retire_connection_id_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/retire_connection_id_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A RetireConnectionIDFrame is a RETIRE_CONNECTION_ID frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/stop_sending_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/stop_sending_frame.go similarity index 87% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/stop_sending_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/stop_sending_frame.go index f9a5d60b0..f71a476c1 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/stop_sending_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/stop_sending_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A StopSendingFrame is a STOP_SENDING frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/stream_data_blocked_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/stream_data_blocked_frame.go similarity index 87% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/stream_data_blocked_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/stream_data_blocked_frame.go index 9f2e90be0..4c6e58058 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/stream_data_blocked_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/stream_data_blocked_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A StreamDataBlockedFrame is a STREAM_DATA_BLOCKED frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/stream_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/stream_frame.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/stream_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/stream_frame.go index 810ef06b8..2f5900ce8 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/stream_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/stream_frame.go @@ -5,9 +5,9 @@ import ( "errors" "io" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A StreamFrame of QUIC diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/streams_blocked_frame.go b/external/github.com/lucas-clemente/quic-go/internal/wire/streams_blocked_frame.go similarity index 87% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/streams_blocked_frame.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/streams_blocked_frame.go index b41d68f1b..516706af3 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/streams_blocked_frame.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/streams_blocked_frame.go @@ -3,8 +3,8 @@ package wire import ( "bytes" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // A StreamsBlockedFrame is a STREAMS_BLOCKED frame diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/wire/version_negotiation.go b/external/github.com/lucas-clemente/quic-go/internal/wire/version_negotiation.go similarity index 86% rename from vendor/github.com/lucas-clemente/quic-go/internal/wire/version_negotiation.go rename to external/github.com/lucas-clemente/quic-go/internal/wire/version_negotiation.go index 6e29d80c4..e09ebf758 100644 --- a/vendor/github.com/lucas-clemente/quic-go/internal/wire/version_negotiation.go +++ b/external/github.com/lucas-clemente/quic-go/internal/wire/version_negotiation.go @@ -4,8 +4,8 @@ import ( "bytes" "crypto/rand" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) // ComposeVersionNegotiation composes a Version Negotiation diff --git a/external/github.com/lucas-clemente/quic-go/mockgen.go b/external/github.com/lucas-clemente/quic-go/mockgen.go new file mode 100644 index 000000000..57b87ef8c --- /dev/null +++ b/external/github.com/lucas-clemente/quic-go/mockgen.go @@ -0,0 +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" diff --git a/vendor/github.com/lucas-clemente/quic-go/mockgen_private.sh b/external/github.com/lucas-clemente/quic-go/mockgen_private.sh similarity index 54% rename from vendor/github.com/lucas-clemente/quic-go/mockgen_private.sh rename to external/github.com/lucas-clemente/quic-go/mockgen_private.sh index 0ba5f64ef..63657ada4 100755 --- a/vendor/github.com/lucas-clemente/quic-go/mockgen_private.sh +++ b/external/github.com/lucas-clemente/quic-go/mockgen_private.sh @@ -5,23 +5,23 @@ # It then creates a mock for this public (alias) type. TEMP_DIR=$(mktemp -d) -mkdir -p $TEMP_DIR/src/github.com/lucas-clemente/quic-go/ +mkdir -p $TEMP_DIR/src/v2ray.com/core/external/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/github.com/lucas-clemente/quic-go/ $TEMP_DIR/src/github.com/lucas-clemente/quic-go/ +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/ # create a public alias for the interface, so that mockgen can process it -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 +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 export GOPATH="$TEMP_DIR:$GOPATH" mockgen -package $1 -self_package $1 -destination $2 $3 $INTERFACE_NAME -# mockgen imports quic-go as 'import quic_go github.com/lucas_clemente/quic-go' +# mockgen imports quic-go as 'import quic_go v2ray.com/core/external/github.com/lucas_clemente/quic-go' sed -i '' 's/quic_go.//g' $2 goimports -w $2 diff --git a/vendor/github.com/lucas-clemente/quic-go/multiplexer.go b/external/github.com/lucas-clemente/quic-go/multiplexer.go similarity index 95% rename from vendor/github.com/lucas-clemente/quic-go/multiplexer.go rename to external/github.com/lucas-clemente/quic-go/multiplexer.go index e8c3b7db4..3d5e2372e 100644 --- a/vendor/github.com/lucas-clemente/quic-go/multiplexer.go +++ b/external/github.com/lucas-clemente/quic-go/multiplexer.go @@ -5,7 +5,7 @@ import ( "net" "sync" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) var ( diff --git a/vendor/github.com/lucas-clemente/quic-go/packet_handler_map.go b/external/github.com/lucas-clemente/quic-go/packet_handler_map.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/packet_handler_map.go rename to external/github.com/lucas-clemente/quic-go/packet_handler_map.go index 6ce4e7fd3..3ea76d6ed 100644 --- a/vendor/github.com/lucas-clemente/quic-go/packet_handler_map.go +++ b/external/github.com/lucas-clemente/quic-go/packet_handler_map.go @@ -8,9 +8,9 @@ import ( "sync" "time" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type packetHandlerEntry struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/packet_packer.go b/external/github.com/lucas-clemente/quic-go/packet_packer.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/packet_packer.go rename to external/github.com/lucas-clemente/quic-go/packet_packer.go index 93a3bc3bc..406f54871 100644 --- a/vendor/github.com/lucas-clemente/quic-go/packet_packer.go +++ b/external/github.com/lucas-clemente/quic-go/packet_packer.go @@ -7,11 +7,11 @@ import ( "net" "time" - "github.com/lucas-clemente/quic-go/internal/ackhandler" - "github.com/lucas-clemente/quic-go/internal/handshake" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/ackhandler" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/handshake" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type packer interface { diff --git a/vendor/github.com/lucas-clemente/quic-go/packet_unpacker.go b/external/github.com/lucas-clemente/quic-go/packet_unpacker.go similarity index 90% rename from vendor/github.com/lucas-clemente/quic-go/packet_unpacker.go rename to external/github.com/lucas-clemente/quic-go/packet_unpacker.go index f3b5a2f77..2257503aa 100644 --- a/vendor/github.com/lucas-clemente/quic-go/packet_unpacker.go +++ b/external/github.com/lucas-clemente/quic-go/packet_unpacker.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" - "github.com/lucas-clemente/quic-go/internal/handshake" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/handshake" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type unpackedPacket struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/receive_stream.go b/external/github.com/lucas-clemente/quic-go/receive_stream.go similarity index 95% rename from vendor/github.com/lucas-clemente/quic-go/receive_stream.go rename to external/github.com/lucas-clemente/quic-go/receive_stream.go index 450d891bc..5d1999c91 100644 --- a/vendor/github.com/lucas-clemente/quic-go/receive_stream.go +++ b/external/github.com/lucas-clemente/quic-go/receive_stream.go @@ -6,10 +6,10 @@ import ( "sync" "time" - "github.com/lucas-clemente/quic-go/internal/flowcontrol" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/flowcontrol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type receiveStreamI interface { diff --git a/vendor/github.com/lucas-clemente/quic-go/send_stream.go b/external/github.com/lucas-clemente/quic-go/send_stream.go similarity index 96% rename from vendor/github.com/lucas-clemente/quic-go/send_stream.go rename to external/github.com/lucas-clemente/quic-go/send_stream.go index 948833927..97849b1cf 100644 --- a/vendor/github.com/lucas-clemente/quic-go/send_stream.go +++ b/external/github.com/lucas-clemente/quic-go/send_stream.go @@ -6,10 +6,10 @@ import ( "sync" "time" - "github.com/lucas-clemente/quic-go/internal/flowcontrol" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/flowcontrol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type sendStreamI interface { diff --git a/vendor/github.com/lucas-clemente/quic-go/server.go b/external/github.com/lucas-clemente/quic-go/server.go similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/server.go rename to external/github.com/lucas-clemente/quic-go/server.go index f1277838f..8ee500145 100644 --- a/vendor/github.com/lucas-clemente/quic-go/server.go +++ b/external/github.com/lucas-clemente/quic-go/server.go @@ -11,11 +11,11 @@ import ( "sync/atomic" "time" - "github.com/lucas-clemente/quic-go/internal/handshake" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/handshake" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) // packetHandler handles packets diff --git a/vendor/github.com/lucas-clemente/quic-go/server_session.go b/external/github.com/lucas-clemente/quic-go/server_session.go similarity index 89% rename from vendor/github.com/lucas-clemente/quic-go/server_session.go rename to external/github.com/lucas-clemente/quic-go/server_session.go index d1ab73a49..2c1fd4028 100644 --- a/vendor/github.com/lucas-clemente/quic-go/server_session.go +++ b/external/github.com/lucas-clemente/quic-go/server_session.go @@ -3,8 +3,8 @@ package quic import ( "fmt" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" ) type serverSession struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/session.go b/external/github.com/lucas-clemente/quic-go/session.go similarity index 98% rename from vendor/github.com/lucas-clemente/quic-go/session.go rename to external/github.com/lucas-clemente/quic-go/session.go index 899132ac9..dc75628ef 100644 --- a/vendor/github.com/lucas-clemente/quic-go/session.go +++ b/external/github.com/lucas-clemente/quic-go/session.go @@ -12,14 +12,14 @@ import ( "sync" "time" - "github.com/lucas-clemente/quic-go/internal/ackhandler" - "github.com/lucas-clemente/quic-go/internal/congestion" - "github.com/lucas-clemente/quic-go/internal/flowcontrol" - "github.com/lucas-clemente/quic-go/internal/handshake" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/utils" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/ackhandler" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/flowcontrol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/handshake" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type unpacker interface { diff --git a/vendor/github.com/lucas-clemente/quic-go/stream.go b/external/github.com/lucas-clemente/quic-go/stream.go similarity index 95% rename from vendor/github.com/lucas-clemente/quic-go/stream.go rename to external/github.com/lucas-clemente/quic-go/stream.go index dfd0cc6a1..80d2d9b39 100644 --- a/vendor/github.com/lucas-clemente/quic-go/stream.go +++ b/external/github.com/lucas-clemente/quic-go/stream.go @@ -5,9 +5,9 @@ import ( "sync" "time" - "github.com/lucas-clemente/quic-go/internal/flowcontrol" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/flowcontrol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) const errorCodeStopping protocol.ApplicationErrorCode = 0 diff --git a/vendor/github.com/lucas-clemente/quic-go/streams_map.go b/external/github.com/lucas-clemente/quic-go/streams_map.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/streams_map.go rename to external/github.com/lucas-clemente/quic-go/streams_map.go index b71953756..ceffbd17b 100644 --- a/vendor/github.com/lucas-clemente/quic-go/streams_map.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map.go @@ -5,10 +5,10 @@ import ( "fmt" "net" - "github.com/lucas-clemente/quic-go/internal/flowcontrol" - "github.com/lucas-clemente/quic-go/internal/handshake" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/flowcontrol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/handshake" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type streamOpenErr struct{ error } diff --git a/vendor/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go b/external/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go similarity index 72% rename from vendor/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go rename to external/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go index 692f093e4..b7235022c 100644 --- a/vendor/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go @@ -1,9 +1,9 @@ package quic import ( - "github.com/cheekybits/genny/generic" + "v2ray.com/core/external/github.com/cheekybits/genny/generic" - "github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) // In the auto-generated streams maps, we need to be able to close the streams. diff --git a/vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go rename to external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go index 8ee8ccdd6..32fea62cf 100644 --- a/vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://github.com/cheekybits/genny +// see https://v2ray.com/core/external/github.com/cheekybits/genny package quic @@ -8,8 +8,8 @@ import ( "fmt" "sync" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type incomingBidiStreamsMap struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_generic.go b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_generic.go similarity index 95% rename from vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_generic.go rename to external/github.com/lucas-clemente/quic-go/streams_map_incoming_generic.go index 0dc6d9fc3..3ab5a6cf8 100644 --- a/vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_generic.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_generic.go @@ -4,8 +4,8 @@ import ( "fmt" "sync" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) //go:generate genny -in $GOFILE -out streams_map_incoming_bidi.go gen "item=streamI Item=BidiStream streamTypeGeneric=protocol.StreamTypeBidi" diff --git a/vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go similarity index 94% rename from vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go rename to external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go index a1ceadd2a..37aa8d48f 100644 --- a/vendor/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://github.com/cheekybits/genny +// see https://v2ray.com/core/external/github.com/cheekybits/genny package quic @@ -8,8 +8,8 @@ import ( "fmt" "sync" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type incomingUniStreamsMap struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go similarity index 92% rename from vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go rename to external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go index 480d8d774..8cafcc457 100644 --- a/vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://github.com/cheekybits/genny +// see https://v2ray.com/core/external/github.com/cheekybits/genny package quic @@ -8,9 +8,9 @@ import ( "fmt" "sync" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type outgoingBidiStreamsMap struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_generic.go b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_generic.go similarity index 93% rename from vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_generic.go rename to external/github.com/lucas-clemente/quic-go/streams_map_outgoing_generic.go index e9cff98b9..0ac554793 100644 --- a/vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_generic.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_generic.go @@ -4,9 +4,9 @@ import ( "fmt" "sync" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) //go:generate genny -in $GOFILE -out streams_map_outgoing_bidi.go gen "item=streamI Item=BidiStream streamTypeGeneric=protocol.StreamTypeBidi" diff --git a/vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go similarity index 92% rename from vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go rename to external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go index 98456bfd1..63f9038ce 100644 --- a/vendor/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://github.com/cheekybits/genny +// see https://v2ray.com/core/external/github.com/cheekybits/genny package quic @@ -8,9 +8,9 @@ import ( "fmt" "sync" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/qerr" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type outgoingUniStreamsMap struct { diff --git a/vendor/github.com/lucas-clemente/quic-go/window_update_queue.go b/external/github.com/lucas-clemente/quic-go/window_update_queue.go similarity index 87% rename from vendor/github.com/lucas-clemente/quic-go/window_update_queue.go rename to external/github.com/lucas-clemente/quic-go/window_update_queue.go index 64b912a3f..808d6048f 100644 --- a/vendor/github.com/lucas-clemente/quic-go/window_update_queue.go +++ b/external/github.com/lucas-clemente/quic-go/window_update_queue.go @@ -3,9 +3,9 @@ package quic import ( "sync" - "github.com/lucas-clemente/quic-go/internal/flowcontrol" - "github.com/lucas-clemente/quic-go/internal/protocol" - "github.com/lucas-clemente/quic-go/internal/wire" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/flowcontrol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" + "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire" ) type windowUpdateQueue struct { diff --git a/vendor/github.com/lucas-clemente/sync-files.sh b/external/github.com/lucas-clemente/sync-files.sh similarity index 60% rename from vendor/github.com/lucas-clemente/sync-files.sh rename to external/github.com/lucas-clemente/sync-files.sh index e2992df3d..7fe6758f5 100755 --- a/vendor/github.com/lucas-clemente/sync-files.sh +++ b/external/github.com/lucas-clemente/sync-files.sh @@ -1,6 +1,6 @@ #!/bin/bash -rsync -rv "$GOPATH/src/github.com/lucas-clemente/quic-go/" "$GOPATH/src/v2ray.com/core/vendor/github.com/lucas-clemente/quic-go/" +rsync -rv "$GOPATH/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/" "$GOPATH/src/v2ray.com/core/vendor/v2ray.com/core/external/github.com/lucas-clemente/quic-go/" find . -name "*_test.go" -delete rm -rf ./quic-go/\.* rm -rf ./quic-go/benchmark diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/13.go b/external/github.com/marten-seemann/qtls/13.go similarity index 99% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/13.go rename to external/github.com/marten-seemann/qtls/13.go index 90ae05d87..715dc6157 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/13.go +++ b/external/github.com/marten-seemann/qtls/13.go @@ -22,7 +22,7 @@ import ( "sync/atomic" "time" - "github.com/cloudflare/sidh/sidh" + "v2ray.com/core/external/github.com/cloudflare/sidh/sidh" "golang.org/x/crypto/curve25519" ) diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/LICENSE b/external/github.com/marten-seemann/qtls/LICENSE similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/LICENSE rename to external/github.com/marten-seemann/qtls/LICENSE diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/README.md b/external/github.com/marten-seemann/qtls/README.md similarity index 97% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/README.md rename to external/github.com/marten-seemann/qtls/README.md index be5c08c1d..deb94b356 100644 --- a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/README.md +++ b/external/github.com/marten-seemann/qtls/README.md @@ -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://github.com/cloudflare/tls-tris.git +git clone https://v2ray.com/core/external/github.com/cloudflare/tls-tris.git cd tls-tris; cp _dev/utils/pre-commit .git/hooks/ make -f _dev/Makefile build-all ``` diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/alert.go b/external/github.com/marten-seemann/qtls/alert.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/alert.go rename to external/github.com/marten-seemann/qtls/alert.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/auth.go b/external/github.com/marten-seemann/qtls/auth.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/auth.go rename to external/github.com/marten-seemann/qtls/auth.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/cipher_suites.go b/external/github.com/marten-seemann/qtls/cipher_suites.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/cipher_suites.go rename to external/github.com/marten-seemann/qtls/cipher_suites.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/common.go b/external/github.com/marten-seemann/qtls/common.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/common.go rename to external/github.com/marten-seemann/qtls/common.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/conn.go b/external/github.com/marten-seemann/qtls/conn.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/conn.go rename to external/github.com/marten-seemann/qtls/conn.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/handshake_client.go b/external/github.com/marten-seemann/qtls/handshake_client.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/handshake_client.go rename to external/github.com/marten-seemann/qtls/handshake_client.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/handshake_messages.go b/external/github.com/marten-seemann/qtls/handshake_messages.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/handshake_messages.go rename to external/github.com/marten-seemann/qtls/handshake_messages.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/handshake_server.go b/external/github.com/marten-seemann/qtls/handshake_server.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/handshake_server.go rename to external/github.com/marten-seemann/qtls/handshake_server.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/hkdf.go b/external/github.com/marten-seemann/qtls/hkdf.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/hkdf.go rename to external/github.com/marten-seemann/qtls/hkdf.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/key_agreement.go b/external/github.com/marten-seemann/qtls/key_agreement.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/key_agreement.go rename to external/github.com/marten-seemann/qtls/key_agreement.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/prf.go b/external/github.com/marten-seemann/qtls/prf.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/prf.go rename to external/github.com/marten-seemann/qtls/prf.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/subcerts.go b/external/github.com/marten-seemann/qtls/subcerts.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/subcerts.go rename to external/github.com/marten-seemann/qtls/subcerts.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/ticket.go b/external/github.com/marten-seemann/qtls/ticket.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/ticket.go rename to external/github.com/marten-seemann/qtls/ticket.go diff --git a/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/tls.go b/external/github.com/marten-seemann/qtls/tls.go similarity index 100% rename from vendor/github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/qtls/tls.go rename to external/github.com/marten-seemann/qtls/tls.go diff --git a/external/update-deps.sh b/external/update-deps.sh new file mode 100644 index 000000000..f1b9fec8f --- /dev/null +++ b/external/update-deps.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +pushd $GOPATH/src/v2ray.com/core/external + +rsync -rv "$GOPATH/src/github.com/lucas-clemente/quic-go/" "./github.com/lucas-clemente/quic-go/" +rm -rf ./github.com/lucas-clemente/quic-go/\.* +rm -rf ./github.com/lucas-clemente/quic-go/benchmark +rm -rf ./github.com/lucas-clemente/quic-go/docs +rm -rf ./github.com/lucas-clemente/quic-go/example +rm -rf ./github.com/lucas-clemente/quic-go/h2quic +rm -rf ./github.com/lucas-clemente/quic-go/integrationtests +rm -rf ./github.com/lucas-clemente/quic-go/internal/mocks +rm ./github.com/lucas-clemente/quic-go/vendor/vendor.json + +rsync -rv "./github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/" "./github.com/cheekybits/" +rsync -rv "./github.com/lucas-clemente/quic-go/vendor/github.com/cloudflare/" "./github.com/cloudflare/" +rsync -rv "./github.com/lucas-clemente/quic-go/vendor/github.com/marten-seemann/" "./github.com/marten-seemann/" +rm -rf "./github.com/lucas-clemente/quic-go/vendor/" + +rsync -rv "$GOPATH/src/github.com/gorilla/websocket/" "$GOPATH/src/v2ray.com/core/external/github.com/gorilla/websocket/" + +find . -name "*_test.go" -delete +find . -type f -print0 | LC_ALL=C xargs -0 sed -i '' 's#github\.com#v2ray\.com/core/external/github\.com#g' + +popd diff --git a/testing/coverage/coverall b/testing/coverage/coverall index ed655fc20..bcb60a0e0 100755 --- a/testing/coverage/coverall +++ b/testing/coverage/coverall @@ -24,7 +24,7 @@ if [ -f ${TEST_FILES[0]} ]; then test_package "" fi -for DIR in $(find * -type d ! -path "*.git*" ! -path "*vendor*"); do +for DIR in $(find * -type d ! -path "*.git*" ! -path "*vendor*" ! -path "*external*"); do TEST_FILES=($DIR/*_test.go) if [ -f ${TEST_FILES[0]} ]; then test_package "/$DIR" diff --git a/transport/internet/quic/conn.go b/transport/internet/quic/conn.go index fc4f10f14..7627885c0 100644 --- a/transport/internet/quic/conn.go +++ b/transport/internet/quic/conn.go @@ -6,10 +6,10 @@ import ( "errors" "time" - quic "github.com/lucas-clemente/quic-go" "v2ray.com/core/common" "v2ray.com/core/common/buf" "v2ray.com/core/common/net" + quic "v2ray.com/core/external/github.com/lucas-clemente/quic-go" "v2ray.com/core/transport/internet" ) diff --git a/transport/internet/quic/dialer.go b/transport/internet/quic/dialer.go index d4296b56e..5f03a78ca 100644 --- a/transport/internet/quic/dialer.go +++ b/transport/internet/quic/dialer.go @@ -5,10 +5,10 @@ import ( "sync" "time" - quic "github.com/lucas-clemente/quic-go" "v2ray.com/core/common" "v2ray.com/core/common/net" "v2ray.com/core/common/task" + quic "v2ray.com/core/external/github.com/lucas-clemente/quic-go" "v2ray.com/core/transport/internet" "v2ray.com/core/transport/internet/tls" ) diff --git a/transport/internet/quic/hub.go b/transport/internet/quic/hub.go index 540a4743b..3c17ac0ea 100644 --- a/transport/internet/quic/hub.go +++ b/transport/internet/quic/hub.go @@ -4,11 +4,11 @@ import ( "context" "time" - quic "github.com/lucas-clemente/quic-go" "v2ray.com/core/common" "v2ray.com/core/common/net" "v2ray.com/core/common/protocol/tls/cert" "v2ray.com/core/common/signal/done" + quic "v2ray.com/core/external/github.com/lucas-clemente/quic-go" "v2ray.com/core/transport/internet" "v2ray.com/core/transport/internet/tls" ) diff --git a/vendor/github.com/gorilla/websocket/README.md b/vendor/github.com/gorilla/websocket/README.md deleted file mode 100644 index 20e391f86..000000000 --- a/vendor/github.com/gorilla/websocket/README.md +++ /dev/null @@ -1,64 +0,0 @@ -# Gorilla WebSocket - -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/github.com/gorilla/websocket?status.svg)](https://godoc.org/github.com/gorilla/websocket) - -### Documentation - -* [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 - -The Gorilla WebSocket package provides a complete and tested implementation of -the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol. The -package API is stable. - -### Installation - - 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://github.com/gorilla/websocket/tree/master/examples/autobahn). - -### Gorilla WebSocket compared with other packages - - - - - - - - - - - - - - - - - - -
github.com/gorillagolang.org/x/net
RFC 6455 Features
Passes Autobahn Test SuiteYesNo
Receive fragmented messageYesNo, see note 1
Send close messageYesNo
Send pings and receive pongsYesNo
Get the type of a received data messageYesYes, see note 2
Other Features
Compression ExtensionsExperimentalNo
Read message using io.ReaderYesNo, see note 3
Write message using io.WriteCloserYesNo, see note 3
- -Notes: - -1. Large messages are fragmented in [Chrome's new WebSocket implementation](http://www.ietf.org/mail-archive/web/hybi/current/msg10503.html). -2. The application can get the type of a received data message by implementing - a [Codec marshal](http://godoc.org/golang.org/x/net/websocket#Codec.Marshal) - function. -3. The go.net io.Reader and io.Writer operate across WebSocket frame boundaries. - Read returns when the input buffer is full or a frame boundary is - encountered. Each call to Write sends a single frame message. The Gorilla - io.Reader and io.WriteCloser operate on a single WebSocket message. - diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/ackhandler/received_packet_handler.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/ackhandler/received_packet_handler.go deleted file mode 100644 index 9e25010ca..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/ackhandler/received_packet_handler.go +++ /dev/null @@ -1,83 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/ackhandler (interfaces: ReceivedPacketHandler) - -// Package mockackhandler is a generated GoMock package. -package mockackhandler - -import ( - reflect "reflect" - time "time" - - gomock "github.com/golang/mock/gomock" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" - wire "github.com/lucas-clemente/quic-go/internal/wire" -) - -// MockReceivedPacketHandler is a mock of ReceivedPacketHandler interface -type MockReceivedPacketHandler struct { - ctrl *gomock.Controller - recorder *MockReceivedPacketHandlerMockRecorder -} - -// MockReceivedPacketHandlerMockRecorder is the mock recorder for MockReceivedPacketHandler -type MockReceivedPacketHandlerMockRecorder struct { - mock *MockReceivedPacketHandler -} - -// NewMockReceivedPacketHandler creates a new mock instance -func NewMockReceivedPacketHandler(ctrl *gomock.Controller) *MockReceivedPacketHandler { - mock := &MockReceivedPacketHandler{ctrl: ctrl} - mock.recorder = &MockReceivedPacketHandlerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockReceivedPacketHandler) EXPECT() *MockReceivedPacketHandlerMockRecorder { - return m.recorder -} - -// GetAckFrame mocks base method -func (m *MockReceivedPacketHandler) GetAckFrame(arg0 protocol.EncryptionLevel) *wire.AckFrame { - ret := m.ctrl.Call(m, "GetAckFrame", arg0) - ret0, _ := ret[0].(*wire.AckFrame) - return ret0 -} - -// GetAckFrame indicates an expected call of GetAckFrame -func (mr *MockReceivedPacketHandlerMockRecorder) GetAckFrame(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAckFrame", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAckFrame), arg0) -} - -// GetAlarmTimeout mocks base method -func (m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time { - ret := m.ctrl.Call(m, "GetAlarmTimeout") - ret0, _ := ret[0].(time.Time) - return ret0 -} - -// GetAlarmTimeout indicates an expected call of GetAlarmTimeout -func (mr *MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAlarmTimeout)) -} - -// IgnoreBelow mocks base method -func (m *MockReceivedPacketHandler) IgnoreBelow(arg0 protocol.PacketNumber) { - m.ctrl.Call(m, "IgnoreBelow", arg0) -} - -// IgnoreBelow indicates an expected call of IgnoreBelow -func (mr *MockReceivedPacketHandlerMockRecorder) IgnoreBelow(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IgnoreBelow", reflect.TypeOf((*MockReceivedPacketHandler)(nil).IgnoreBelow), arg0) -} - -// ReceivedPacket mocks base method -func (m *MockReceivedPacketHandler) ReceivedPacket(arg0 protocol.PacketNumber, arg1 protocol.EncryptionLevel, arg2 time.Time, arg3 bool) error { - ret := m.ctrl.Call(m, "ReceivedPacket", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(error) - return ret0 -} - -// ReceivedPacket indicates an expected call of ReceivedPacket -func (mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedPacket", reflect.TypeOf((*MockReceivedPacketHandler)(nil).ReceivedPacket), arg0, arg1, arg2, arg3) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/ackhandler/sent_packet_handler.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/ackhandler/sent_packet_handler.go deleted file mode 100644 index 658fc96fa..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/ackhandler/sent_packet_handler.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/ackhandler (interfaces: SentPacketHandler) - -// Package mockackhandler is a generated GoMock package. -package mockackhandler - -import ( - reflect "reflect" - time "time" - - gomock "github.com/golang/mock/gomock" - ackhandler "github.com/lucas-clemente/quic-go/internal/ackhandler" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" - wire "github.com/lucas-clemente/quic-go/internal/wire" -) - -// MockSentPacketHandler is a mock of SentPacketHandler interface -type MockSentPacketHandler struct { - ctrl *gomock.Controller - recorder *MockSentPacketHandlerMockRecorder -} - -// MockSentPacketHandlerMockRecorder is the mock recorder for MockSentPacketHandler -type MockSentPacketHandlerMockRecorder struct { - mock *MockSentPacketHandler -} - -// NewMockSentPacketHandler creates a new mock instance -func NewMockSentPacketHandler(ctrl *gomock.Controller) *MockSentPacketHandler { - mock := &MockSentPacketHandler{ctrl: ctrl} - mock.recorder = &MockSentPacketHandlerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockSentPacketHandler) EXPECT() *MockSentPacketHandlerMockRecorder { - return m.recorder -} - -// DequeuePacketForRetransmission mocks base method -func (m *MockSentPacketHandler) DequeuePacketForRetransmission() *ackhandler.Packet { - ret := m.ctrl.Call(m, "DequeuePacketForRetransmission") - ret0, _ := ret[0].(*ackhandler.Packet) - return ret0 -} - -// DequeuePacketForRetransmission indicates an expected call of DequeuePacketForRetransmission -func (mr *MockSentPacketHandlerMockRecorder) DequeuePacketForRetransmission() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DequeuePacketForRetransmission", reflect.TypeOf((*MockSentPacketHandler)(nil).DequeuePacketForRetransmission)) -} - -// DequeueProbePacket mocks base method -func (m *MockSentPacketHandler) DequeueProbePacket() (*ackhandler.Packet, error) { - ret := m.ctrl.Call(m, "DequeueProbePacket") - ret0, _ := ret[0].(*ackhandler.Packet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DequeueProbePacket indicates an expected call of DequeueProbePacket -func (mr *MockSentPacketHandlerMockRecorder) DequeueProbePacket() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DequeueProbePacket", reflect.TypeOf((*MockSentPacketHandler)(nil).DequeueProbePacket)) -} - -// GetAlarmTimeout mocks base method -func (m *MockSentPacketHandler) GetAlarmTimeout() time.Time { - ret := m.ctrl.Call(m, "GetAlarmTimeout") - ret0, _ := ret[0].(time.Time) - return ret0 -} - -// GetAlarmTimeout indicates an expected call of GetAlarmTimeout -func (mr *MockSentPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).GetAlarmTimeout)) -} - -// GetLowestPacketNotConfirmedAcked mocks base method -func (m *MockSentPacketHandler) GetLowestPacketNotConfirmedAcked() protocol.PacketNumber { - ret := m.ctrl.Call(m, "GetLowestPacketNotConfirmedAcked") - ret0, _ := ret[0].(protocol.PacketNumber) - return ret0 -} - -// GetLowestPacketNotConfirmedAcked indicates an expected call of GetLowestPacketNotConfirmedAcked -func (mr *MockSentPacketHandlerMockRecorder) GetLowestPacketNotConfirmedAcked() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLowestPacketNotConfirmedAcked", reflect.TypeOf((*MockSentPacketHandler)(nil).GetLowestPacketNotConfirmedAcked)) -} - -// OnAlarm mocks base method -func (m *MockSentPacketHandler) OnAlarm() error { - ret := m.ctrl.Call(m, "OnAlarm") - ret0, _ := ret[0].(error) - return ret0 -} - -// OnAlarm indicates an expected call of OnAlarm -func (mr *MockSentPacketHandlerMockRecorder) OnAlarm() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnAlarm", reflect.TypeOf((*MockSentPacketHandler)(nil).OnAlarm)) -} - -// PeekPacketNumber mocks base method -func (m *MockSentPacketHandler) PeekPacketNumber() (protocol.PacketNumber, protocol.PacketNumberLen) { - ret := m.ctrl.Call(m, "PeekPacketNumber") - ret0, _ := ret[0].(protocol.PacketNumber) - ret1, _ := ret[1].(protocol.PacketNumberLen) - return ret0, ret1 -} - -// PeekPacketNumber indicates an expected call of PeekPacketNumber -func (mr *MockSentPacketHandlerMockRecorder) PeekPacketNumber() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeekPacketNumber", reflect.TypeOf((*MockSentPacketHandler)(nil).PeekPacketNumber)) -} - -// PopPacketNumber mocks base method -func (m *MockSentPacketHandler) PopPacketNumber() protocol.PacketNumber { - ret := m.ctrl.Call(m, "PopPacketNumber") - ret0, _ := ret[0].(protocol.PacketNumber) - return ret0 -} - -// PopPacketNumber indicates an expected call of PopPacketNumber -func (mr *MockSentPacketHandlerMockRecorder) PopPacketNumber() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopPacketNumber", reflect.TypeOf((*MockSentPacketHandler)(nil).PopPacketNumber)) -} - -// ReceivedAck mocks base method -func (m *MockSentPacketHandler) ReceivedAck(arg0 *wire.AckFrame, arg1 protocol.PacketNumber, arg2 protocol.EncryptionLevel, arg3 time.Time) error { - ret := m.ctrl.Call(m, "ReceivedAck", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(error) - return ret0 -} - -// ReceivedAck indicates an expected call of ReceivedAck -func (mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedAck", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedAck), arg0, arg1, arg2, arg3) -} - -// SendMode mocks base method -func (m *MockSentPacketHandler) SendMode() ackhandler.SendMode { - ret := m.ctrl.Call(m, "SendMode") - ret0, _ := ret[0].(ackhandler.SendMode) - return ret0 -} - -// SendMode indicates an expected call of SendMode -func (mr *MockSentPacketHandlerMockRecorder) SendMode() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMode", reflect.TypeOf((*MockSentPacketHandler)(nil).SendMode)) -} - -// SentPacket mocks base method -func (m *MockSentPacketHandler) SentPacket(arg0 *ackhandler.Packet) { - m.ctrl.Call(m, "SentPacket", arg0) -} - -// SentPacket indicates an expected call of SentPacket -func (mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentPacket", reflect.TypeOf((*MockSentPacketHandler)(nil).SentPacket), arg0) -} - -// SentPacketsAsRetransmission mocks base method -func (m *MockSentPacketHandler) SentPacketsAsRetransmission(arg0 []*ackhandler.Packet, arg1 protocol.PacketNumber) { - m.ctrl.Call(m, "SentPacketsAsRetransmission", arg0, arg1) -} - -// SentPacketsAsRetransmission indicates an expected call of SentPacketsAsRetransmission -func (mr *MockSentPacketHandlerMockRecorder) SentPacketsAsRetransmission(arg0, arg1 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentPacketsAsRetransmission", reflect.TypeOf((*MockSentPacketHandler)(nil).SentPacketsAsRetransmission), arg0, arg1) -} - -// SetHandshakeComplete mocks base method -func (m *MockSentPacketHandler) SetHandshakeComplete() { - m.ctrl.Call(m, "SetHandshakeComplete") -} - -// SetHandshakeComplete indicates an expected call of SetHandshakeComplete -func (mr *MockSentPacketHandlerMockRecorder) SetHandshakeComplete() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHandshakeComplete", reflect.TypeOf((*MockSentPacketHandler)(nil).SetHandshakeComplete)) -} - -// ShouldSendNumPackets mocks base method -func (m *MockSentPacketHandler) ShouldSendNumPackets() int { - ret := m.ctrl.Call(m, "ShouldSendNumPackets") - ret0, _ := ret[0].(int) - return ret0 -} - -// ShouldSendNumPackets indicates an expected call of ShouldSendNumPackets -func (mr *MockSentPacketHandlerMockRecorder) ShouldSendNumPackets() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldSendNumPackets", reflect.TypeOf((*MockSentPacketHandler)(nil).ShouldSendNumPackets)) -} - -// TimeUntilSend mocks base method -func (m *MockSentPacketHandler) TimeUntilSend() time.Time { - ret := m.ctrl.Call(m, "TimeUntilSend") - ret0, _ := ret[0].(time.Time) - return ret0 -} - -// TimeUntilSend indicates an expected call of TimeUntilSend -func (mr *MockSentPacketHandlerMockRecorder) TimeUntilSend() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimeUntilSend", reflect.TypeOf((*MockSentPacketHandler)(nil).TimeUntilSend)) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/congestion.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/congestion.go deleted file mode 100644 index d07492524..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/congestion.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/congestion (interfaces: SendAlgorithm) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - time "time" - - gomock "github.com/golang/mock/gomock" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" -) - -// MockSendAlgorithm is a mock of SendAlgorithm interface -type MockSendAlgorithm struct { - ctrl *gomock.Controller - recorder *MockSendAlgorithmMockRecorder -} - -// MockSendAlgorithmMockRecorder is the mock recorder for MockSendAlgorithm -type MockSendAlgorithmMockRecorder struct { - mock *MockSendAlgorithm -} - -// NewMockSendAlgorithm creates a new mock instance -func NewMockSendAlgorithm(ctrl *gomock.Controller) *MockSendAlgorithm { - mock := &MockSendAlgorithm{ctrl: ctrl} - mock.recorder = &MockSendAlgorithmMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockSendAlgorithm) EXPECT() *MockSendAlgorithmMockRecorder { - return m.recorder -} - -// GetCongestionWindow mocks base method -func (m *MockSendAlgorithm) GetCongestionWindow() protocol.ByteCount { - ret := m.ctrl.Call(m, "GetCongestionWindow") - ret0, _ := ret[0].(protocol.ByteCount) - return ret0 -} - -// GetCongestionWindow indicates an expected call of GetCongestionWindow -func (mr *MockSendAlgorithmMockRecorder) GetCongestionWindow() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCongestionWindow", reflect.TypeOf((*MockSendAlgorithm)(nil).GetCongestionWindow)) -} - -// MaybeExitSlowStart mocks base method -func (m *MockSendAlgorithm) MaybeExitSlowStart() { - m.ctrl.Call(m, "MaybeExitSlowStart") -} - -// MaybeExitSlowStart indicates an expected call of MaybeExitSlowStart -func (mr *MockSendAlgorithmMockRecorder) MaybeExitSlowStart() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybeExitSlowStart", reflect.TypeOf((*MockSendAlgorithm)(nil).MaybeExitSlowStart)) -} - -// OnConnectionMigration mocks base method -func (m *MockSendAlgorithm) OnConnectionMigration() { - m.ctrl.Call(m, "OnConnectionMigration") -} - -// OnConnectionMigration indicates an expected call of OnConnectionMigration -func (mr *MockSendAlgorithmMockRecorder) OnConnectionMigration() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnConnectionMigration", reflect.TypeOf((*MockSendAlgorithm)(nil).OnConnectionMigration)) -} - -// OnPacketAcked mocks base method -func (m *MockSendAlgorithm) OnPacketAcked(arg0 protocol.PacketNumber, arg1, arg2 protocol.ByteCount, arg3 time.Time) { - m.ctrl.Call(m, "OnPacketAcked", arg0, arg1, arg2, arg3) -} - -// OnPacketAcked indicates an expected call of OnPacketAcked -func (mr *MockSendAlgorithmMockRecorder) OnPacketAcked(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPacketAcked", reflect.TypeOf((*MockSendAlgorithm)(nil).OnPacketAcked), arg0, arg1, arg2, arg3) -} - -// OnPacketLost mocks base method -func (m *MockSendAlgorithm) OnPacketLost(arg0 protocol.PacketNumber, arg1, arg2 protocol.ByteCount) { - m.ctrl.Call(m, "OnPacketLost", arg0, arg1, arg2) -} - -// OnPacketLost indicates an expected call of OnPacketLost -func (mr *MockSendAlgorithmMockRecorder) OnPacketLost(arg0, arg1, arg2 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPacketLost", reflect.TypeOf((*MockSendAlgorithm)(nil).OnPacketLost), arg0, arg1, arg2) -} - -// OnPacketSent mocks base method -func (m *MockSendAlgorithm) OnPacketSent(arg0 time.Time, arg1 protocol.ByteCount, arg2 protocol.PacketNumber, arg3 protocol.ByteCount, arg4 bool) { - m.ctrl.Call(m, "OnPacketSent", arg0, arg1, arg2, arg3, arg4) -} - -// OnPacketSent indicates an expected call of OnPacketSent -func (mr *MockSendAlgorithmMockRecorder) OnPacketSent(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPacketSent", reflect.TypeOf((*MockSendAlgorithm)(nil).OnPacketSent), arg0, arg1, arg2, arg3, arg4) -} - -// OnRetransmissionTimeout mocks base method -func (m *MockSendAlgorithm) OnRetransmissionTimeout(arg0 bool) { - m.ctrl.Call(m, "OnRetransmissionTimeout", arg0) -} - -// OnRetransmissionTimeout indicates an expected call of OnRetransmissionTimeout -func (mr *MockSendAlgorithmMockRecorder) OnRetransmissionTimeout(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnRetransmissionTimeout", reflect.TypeOf((*MockSendAlgorithm)(nil).OnRetransmissionTimeout), arg0) -} - -// SetNumEmulatedConnections mocks base method -func (m *MockSendAlgorithm) SetNumEmulatedConnections(arg0 int) { - m.ctrl.Call(m, "SetNumEmulatedConnections", arg0) -} - -// SetNumEmulatedConnections indicates an expected call of SetNumEmulatedConnections -func (mr *MockSendAlgorithmMockRecorder) SetNumEmulatedConnections(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNumEmulatedConnections", reflect.TypeOf((*MockSendAlgorithm)(nil).SetNumEmulatedConnections), arg0) -} - -// SetSlowStartLargeReduction mocks base method -func (m *MockSendAlgorithm) SetSlowStartLargeReduction(arg0 bool) { - m.ctrl.Call(m, "SetSlowStartLargeReduction", arg0) -} - -// SetSlowStartLargeReduction indicates an expected call of SetSlowStartLargeReduction -func (mr *MockSendAlgorithmMockRecorder) SetSlowStartLargeReduction(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSlowStartLargeReduction", reflect.TypeOf((*MockSendAlgorithm)(nil).SetSlowStartLargeReduction), arg0) -} - -// TimeUntilSend mocks base method -func (m *MockSendAlgorithm) TimeUntilSend(arg0 protocol.ByteCount) time.Duration { - ret := m.ctrl.Call(m, "TimeUntilSend", arg0) - ret0, _ := ret[0].(time.Duration) - return ret0 -} - -// TimeUntilSend indicates an expected call of TimeUntilSend -func (mr *MockSendAlgorithmMockRecorder) TimeUntilSend(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimeUntilSend", reflect.TypeOf((*MockSendAlgorithm)(nil).TimeUntilSend), arg0) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/connection_flow_controller.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/connection_flow_controller.go deleted file mode 100644 index 1a47362b9..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/connection_flow_controller.go +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/flowcontrol (interfaces: ConnectionFlowController) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" -) - -// MockConnectionFlowController is a mock of ConnectionFlowController interface -type MockConnectionFlowController struct { - ctrl *gomock.Controller - recorder *MockConnectionFlowControllerMockRecorder -} - -// MockConnectionFlowControllerMockRecorder is the mock recorder for MockConnectionFlowController -type MockConnectionFlowControllerMockRecorder struct { - mock *MockConnectionFlowController -} - -// NewMockConnectionFlowController creates a new mock instance -func NewMockConnectionFlowController(ctrl *gomock.Controller) *MockConnectionFlowController { - mock := &MockConnectionFlowController{ctrl: ctrl} - mock.recorder = &MockConnectionFlowControllerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockConnectionFlowController) EXPECT() *MockConnectionFlowControllerMockRecorder { - return m.recorder -} - -// AddBytesRead mocks base method -func (m *MockConnectionFlowController) AddBytesRead(arg0 protocol.ByteCount) { - m.ctrl.Call(m, "AddBytesRead", arg0) -} - -// AddBytesRead indicates an expected call of AddBytesRead -func (mr *MockConnectionFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesRead", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesRead), arg0) -} - -// AddBytesSent mocks base method -func (m *MockConnectionFlowController) AddBytesSent(arg0 protocol.ByteCount) { - m.ctrl.Call(m, "AddBytesSent", arg0) -} - -// AddBytesSent indicates an expected call of AddBytesSent -func (mr *MockConnectionFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesSent", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesSent), arg0) -} - -// GetWindowUpdate mocks base method -func (m *MockConnectionFlowController) GetWindowUpdate() protocol.ByteCount { - ret := m.ctrl.Call(m, "GetWindowUpdate") - ret0, _ := ret[0].(protocol.ByteCount) - return ret0 -} - -// GetWindowUpdate indicates an expected call of GetWindowUpdate -func (mr *MockConnectionFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockConnectionFlowController)(nil).GetWindowUpdate)) -} - -// IsNewlyBlocked mocks base method -func (m *MockConnectionFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) { - ret := m.ctrl.Call(m, "IsNewlyBlocked") - ret0, _ := ret[0].(bool) - ret1, _ := ret[1].(protocol.ByteCount) - return ret0, ret1 -} - -// IsNewlyBlocked indicates an expected call of IsNewlyBlocked -func (mr *MockConnectionFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockConnectionFlowController)(nil).IsNewlyBlocked)) -} - -// MaybeQueueWindowUpdate mocks base method -func (m *MockConnectionFlowController) MaybeQueueWindowUpdate() { - m.ctrl.Call(m, "MaybeQueueWindowUpdate") -} - -// MaybeQueueWindowUpdate indicates an expected call of MaybeQueueWindowUpdate -func (mr *MockConnectionFlowControllerMockRecorder) MaybeQueueWindowUpdate() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybeQueueWindowUpdate", reflect.TypeOf((*MockConnectionFlowController)(nil).MaybeQueueWindowUpdate)) -} - -// SendWindowSize mocks base method -func (m *MockConnectionFlowController) SendWindowSize() protocol.ByteCount { - ret := m.ctrl.Call(m, "SendWindowSize") - ret0, _ := ret[0].(protocol.ByteCount) - return ret0 -} - -// SendWindowSize indicates an expected call of SendWindowSize -func (mr *MockConnectionFlowControllerMockRecorder) SendWindowSize() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendWindowSize", reflect.TypeOf((*MockConnectionFlowController)(nil).SendWindowSize)) -} - -// UpdateSendWindow mocks base method -func (m *MockConnectionFlowController) UpdateSendWindow(arg0 protocol.ByteCount) { - m.ctrl.Call(m, "UpdateSendWindow", arg0) -} - -// UpdateSendWindow indicates an expected call of UpdateSendWindow -func (mr *MockConnectionFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockConnectionFlowController)(nil).UpdateSendWindow), arg0) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/crypto/aead.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/crypto/aead.go deleted file mode 100644 index 324a00cee..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/crypto/aead.go +++ /dev/null @@ -1,72 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/crypto (interfaces: AEAD) - -// Package mockcrypto is a generated GoMock package. -package mockcrypto - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" -) - -// MockAEAD is a mock of AEAD interface -type MockAEAD struct { - ctrl *gomock.Controller - recorder *MockAEADMockRecorder -} - -// MockAEADMockRecorder is the mock recorder for MockAEAD -type MockAEADMockRecorder struct { - mock *MockAEAD -} - -// NewMockAEAD creates a new mock instance -func NewMockAEAD(ctrl *gomock.Controller) *MockAEAD { - mock := &MockAEAD{ctrl: ctrl} - mock.recorder = &MockAEADMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockAEAD) EXPECT() *MockAEADMockRecorder { - return m.recorder -} - -// Open mocks base method -func (m *MockAEAD) Open(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) ([]byte, error) { - ret := m.ctrl.Call(m, "Open", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Open indicates an expected call of Open -func (mr *MockAEADMockRecorder) Open(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockAEAD)(nil).Open), arg0, arg1, arg2, arg3) -} - -// Overhead mocks base method -func (m *MockAEAD) Overhead() int { - ret := m.ctrl.Call(m, "Overhead") - ret0, _ := ret[0].(int) - return ret0 -} - -// Overhead indicates an expected call of Overhead -func (mr *MockAEADMockRecorder) Overhead() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Overhead", reflect.TypeOf((*MockAEAD)(nil).Overhead)) -} - -// Seal mocks base method -func (m *MockAEAD) Seal(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) []byte { - ret := m.ctrl.Call(m, "Seal", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].([]byte) - return ret0 -} - -// Seal indicates an expected call of Seal -func (mr *MockAEADMockRecorder) Seal(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seal", reflect.TypeOf((*MockAEAD)(nil).Seal), arg0, arg1, arg2, arg3) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/crypto_setup.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/crypto_setup.go deleted file mode 100644 index ebded3669..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/crypto_setup.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: CryptoSetup) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - handshake "github.com/lucas-clemente/quic-go/internal/handshake" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" -) - -// MockCryptoSetup is a mock of CryptoSetup interface -type MockCryptoSetup struct { - ctrl *gomock.Controller - recorder *MockCryptoSetupMockRecorder -} - -// MockCryptoSetupMockRecorder is the mock recorder for MockCryptoSetup -type MockCryptoSetupMockRecorder struct { - mock *MockCryptoSetup -} - -// NewMockCryptoSetup creates a new mock instance -func NewMockCryptoSetup(ctrl *gomock.Controller) *MockCryptoSetup { - mock := &MockCryptoSetup{ctrl: ctrl} - mock.recorder = &MockCryptoSetupMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockCryptoSetup) EXPECT() *MockCryptoSetupMockRecorder { - return m.recorder -} - -// Close mocks base method -func (m *MockCryptoSetup) Close() error { - ret := m.ctrl.Call(m, "Close") - ret0, _ := ret[0].(error) - return ret0 -} - -// Close indicates an expected call of Close -func (mr *MockCryptoSetupMockRecorder) Close() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockCryptoSetup)(nil).Close)) -} - -// ConnectionState mocks base method -func (m *MockCryptoSetup) ConnectionState() handshake.ConnectionState { - ret := m.ctrl.Call(m, "ConnectionState") - ret0, _ := ret[0].(handshake.ConnectionState) - return ret0 -} - -// ConnectionState indicates an expected call of ConnectionState -func (mr *MockCryptoSetupMockRecorder) ConnectionState() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectionState", reflect.TypeOf((*MockCryptoSetup)(nil).ConnectionState)) -} - -// GetOpener mocks base method -func (m *MockCryptoSetup) GetOpener(arg0 protocol.EncryptionLevel) (handshake.Opener, error) { - ret := m.ctrl.Call(m, "GetOpener", arg0) - ret0, _ := ret[0].(handshake.Opener) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetOpener indicates an expected call of GetOpener -func (mr *MockCryptoSetupMockRecorder) GetOpener(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpener", reflect.TypeOf((*MockCryptoSetup)(nil).GetOpener), arg0) -} - -// GetSealer mocks base method -func (m *MockCryptoSetup) GetSealer() (protocol.EncryptionLevel, handshake.Sealer) { - ret := m.ctrl.Call(m, "GetSealer") - ret0, _ := ret[0].(protocol.EncryptionLevel) - ret1, _ := ret[1].(handshake.Sealer) - return ret0, ret1 -} - -// GetSealer indicates an expected call of GetSealer -func (mr *MockCryptoSetupMockRecorder) GetSealer() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSealer", reflect.TypeOf((*MockCryptoSetup)(nil).GetSealer)) -} - -// GetSealerWithEncryptionLevel mocks base method -func (m *MockCryptoSetup) GetSealerWithEncryptionLevel(arg0 protocol.EncryptionLevel) (handshake.Sealer, error) { - ret := m.ctrl.Call(m, "GetSealerWithEncryptionLevel", arg0) - ret0, _ := ret[0].(handshake.Sealer) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetSealerWithEncryptionLevel indicates an expected call of GetSealerWithEncryptionLevel -func (mr *MockCryptoSetupMockRecorder) GetSealerWithEncryptionLevel(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSealerWithEncryptionLevel", reflect.TypeOf((*MockCryptoSetup)(nil).GetSealerWithEncryptionLevel), arg0) -} - -// HandleMessage mocks base method -func (m *MockCryptoSetup) HandleMessage(arg0 []byte, arg1 protocol.EncryptionLevel) bool { - ret := m.ctrl.Call(m, "HandleMessage", arg0, arg1) - ret0, _ := ret[0].(bool) - return ret0 -} - -// HandleMessage indicates an expected call of HandleMessage -func (mr *MockCryptoSetupMockRecorder) HandleMessage(arg0, arg1 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleMessage", reflect.TypeOf((*MockCryptoSetup)(nil).HandleMessage), arg0, arg1) -} - -// RunHandshake mocks base method -func (m *MockCryptoSetup) RunHandshake() error { - ret := m.ctrl.Call(m, "RunHandshake") - ret0, _ := ret[0].(error) - return ret0 -} - -// RunHandshake indicates an expected call of RunHandshake -func (mr *MockCryptoSetupMockRecorder) RunHandshake() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunHandshake", reflect.TypeOf((*MockCryptoSetup)(nil).RunHandshake)) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/mockgen.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/mockgen.go deleted file mode 100644 index c46ce5024..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/mockgen.go +++ /dev/null @@ -1,10 +0,0 @@ -package mocks - -//go:generate sh -c "../mockgen_internal.sh mocks sealer.go github.com/lucas-clemente/quic-go/internal/handshake Sealer" -//go:generate sh -c "../mockgen_internal.sh mocks opener.go github.com/lucas-clemente/quic-go/internal/handshake Opener" -//go:generate sh -c "../mockgen_internal.sh mocks crypto_setup.go github.com/lucas-clemente/quic-go/internal/handshake CryptoSetup" -//go:generate sh -c "../mockgen_internal.sh mocks stream_flow_controller.go github.com/lucas-clemente/quic-go/internal/flowcontrol StreamFlowController" -//go:generate sh -c "../mockgen_internal.sh mockackhandler ackhandler/sent_packet_handler.go github.com/lucas-clemente/quic-go/internal/ackhandler SentPacketHandler" -//go:generate sh -c "../mockgen_internal.sh mockackhandler ackhandler/received_packet_handler.go github.com/lucas-clemente/quic-go/internal/ackhandler ReceivedPacketHandler" -//go:generate sh -c "../mockgen_internal.sh mocks congestion.go github.com/lucas-clemente/quic-go/internal/congestion SendAlgorithm" -//go:generate sh -c "../mockgen_internal.sh mocks connection_flow_controller.go github.com/lucas-clemente/quic-go/internal/flowcontrol ConnectionFlowController" diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/opener.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/opener.go deleted file mode 100644 index dd9272898..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/opener.go +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: Opener) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" -) - -// MockOpener is a mock of Opener interface -type MockOpener struct { - ctrl *gomock.Controller - recorder *MockOpenerMockRecorder -} - -// MockOpenerMockRecorder is the mock recorder for MockOpener -type MockOpenerMockRecorder struct { - mock *MockOpener -} - -// NewMockOpener creates a new mock instance -func NewMockOpener(ctrl *gomock.Controller) *MockOpener { - mock := &MockOpener{ctrl: ctrl} - mock.recorder = &MockOpenerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockOpener) EXPECT() *MockOpenerMockRecorder { - return m.recorder -} - -// DecryptHeader mocks base method -func (m *MockOpener) DecryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) { - m.ctrl.Call(m, "DecryptHeader", arg0, arg1, arg2) -} - -// DecryptHeader indicates an expected call of DecryptHeader -func (mr *MockOpenerMockRecorder) DecryptHeader(arg0, arg1, arg2 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptHeader", reflect.TypeOf((*MockOpener)(nil).DecryptHeader), arg0, arg1, arg2) -} - -// Open mocks base method -func (m *MockOpener) Open(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) ([]byte, error) { - ret := m.ctrl.Call(m, "Open", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Open indicates an expected call of Open -func (mr *MockOpenerMockRecorder) Open(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockOpener)(nil).Open), arg0, arg1, arg2, arg3) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/sealer.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/sealer.go deleted file mode 100644 index de309e160..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/sealer.go +++ /dev/null @@ -1,69 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: Sealer) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" -) - -// MockSealer is a mock of Sealer interface -type MockSealer struct { - ctrl *gomock.Controller - recorder *MockSealerMockRecorder -} - -// MockSealerMockRecorder is the mock recorder for MockSealer -type MockSealerMockRecorder struct { - mock *MockSealer -} - -// NewMockSealer creates a new mock instance -func NewMockSealer(ctrl *gomock.Controller) *MockSealer { - mock := &MockSealer{ctrl: ctrl} - mock.recorder = &MockSealerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockSealer) EXPECT() *MockSealerMockRecorder { - return m.recorder -} - -// EncryptHeader mocks base method -func (m *MockSealer) EncryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) { - m.ctrl.Call(m, "EncryptHeader", arg0, arg1, arg2) -} - -// EncryptHeader indicates an expected call of EncryptHeader -func (mr *MockSealerMockRecorder) EncryptHeader(arg0, arg1, arg2 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptHeader", reflect.TypeOf((*MockSealer)(nil).EncryptHeader), arg0, arg1, arg2) -} - -// Overhead mocks base method -func (m *MockSealer) Overhead() int { - ret := m.ctrl.Call(m, "Overhead") - ret0, _ := ret[0].(int) - return ret0 -} - -// Overhead indicates an expected call of Overhead -func (mr *MockSealerMockRecorder) Overhead() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Overhead", reflect.TypeOf((*MockSealer)(nil).Overhead)) -} - -// Seal mocks base method -func (m *MockSealer) Seal(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) []byte { - ret := m.ctrl.Call(m, "Seal", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].([]byte) - return ret0 -} - -// Seal indicates an expected call of Seal -func (mr *MockSealerMockRecorder) Seal(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seal", reflect.TypeOf((*MockSealer)(nil).Seal), arg0, arg1, arg2, arg3) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/stream_flow_controller.go b/vendor/github.com/lucas-clemente/quic-go/internal/mocks/stream_flow_controller.go deleted file mode 100644 index 955f55096..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/internal/mocks/stream_flow_controller.go +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/lucas-clemente/quic-go/internal/flowcontrol (interfaces: StreamFlowController) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - protocol "github.com/lucas-clemente/quic-go/internal/protocol" -) - -// MockStreamFlowController is a mock of StreamFlowController interface -type MockStreamFlowController struct { - ctrl *gomock.Controller - recorder *MockStreamFlowControllerMockRecorder -} - -// MockStreamFlowControllerMockRecorder is the mock recorder for MockStreamFlowController -type MockStreamFlowControllerMockRecorder struct { - mock *MockStreamFlowController -} - -// NewMockStreamFlowController creates a new mock instance -func NewMockStreamFlowController(ctrl *gomock.Controller) *MockStreamFlowController { - mock := &MockStreamFlowController{ctrl: ctrl} - mock.recorder = &MockStreamFlowControllerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockStreamFlowController) EXPECT() *MockStreamFlowControllerMockRecorder { - return m.recorder -} - -// AddBytesRead mocks base method -func (m *MockStreamFlowController) AddBytesRead(arg0 protocol.ByteCount) { - m.ctrl.Call(m, "AddBytesRead", arg0) -} - -// AddBytesRead indicates an expected call of AddBytesRead -func (mr *MockStreamFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesRead", reflect.TypeOf((*MockStreamFlowController)(nil).AddBytesRead), arg0) -} - -// AddBytesSent mocks base method -func (m *MockStreamFlowController) AddBytesSent(arg0 protocol.ByteCount) { - m.ctrl.Call(m, "AddBytesSent", arg0) -} - -// AddBytesSent indicates an expected call of AddBytesSent -func (mr *MockStreamFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesSent", reflect.TypeOf((*MockStreamFlowController)(nil).AddBytesSent), arg0) -} - -// GetWindowUpdate mocks base method -func (m *MockStreamFlowController) GetWindowUpdate() protocol.ByteCount { - ret := m.ctrl.Call(m, "GetWindowUpdate") - ret0, _ := ret[0].(protocol.ByteCount) - return ret0 -} - -// GetWindowUpdate indicates an expected call of GetWindowUpdate -func (mr *MockStreamFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockStreamFlowController)(nil).GetWindowUpdate)) -} - -// IsNewlyBlocked mocks base method -func (m *MockStreamFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) { - ret := m.ctrl.Call(m, "IsNewlyBlocked") - ret0, _ := ret[0].(bool) - ret1, _ := ret[1].(protocol.ByteCount) - return ret0, ret1 -} - -// IsNewlyBlocked indicates an expected call of IsNewlyBlocked -func (mr *MockStreamFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockStreamFlowController)(nil).IsNewlyBlocked)) -} - -// MaybeQueueWindowUpdate mocks base method -func (m *MockStreamFlowController) MaybeQueueWindowUpdate() { - m.ctrl.Call(m, "MaybeQueueWindowUpdate") -} - -// MaybeQueueWindowUpdate indicates an expected call of MaybeQueueWindowUpdate -func (mr *MockStreamFlowControllerMockRecorder) MaybeQueueWindowUpdate() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybeQueueWindowUpdate", reflect.TypeOf((*MockStreamFlowController)(nil).MaybeQueueWindowUpdate)) -} - -// SendWindowSize mocks base method -func (m *MockStreamFlowController) SendWindowSize() protocol.ByteCount { - ret := m.ctrl.Call(m, "SendWindowSize") - ret0, _ := ret[0].(protocol.ByteCount) - return ret0 -} - -// SendWindowSize indicates an expected call of SendWindowSize -func (mr *MockStreamFlowControllerMockRecorder) SendWindowSize() *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendWindowSize", reflect.TypeOf((*MockStreamFlowController)(nil).SendWindowSize)) -} - -// UpdateHighestReceived mocks base method -func (m *MockStreamFlowController) UpdateHighestReceived(arg0 protocol.ByteCount, arg1 bool) error { - ret := m.ctrl.Call(m, "UpdateHighestReceived", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 -} - -// UpdateHighestReceived indicates an expected call of UpdateHighestReceived -func (mr *MockStreamFlowControllerMockRecorder) UpdateHighestReceived(arg0, arg1 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHighestReceived", reflect.TypeOf((*MockStreamFlowController)(nil).UpdateHighestReceived), arg0, arg1) -} - -// UpdateSendWindow mocks base method -func (m *MockStreamFlowController) UpdateSendWindow(arg0 protocol.ByteCount) { - m.ctrl.Call(m, "UpdateSendWindow", arg0) -} - -// UpdateSendWindow indicates an expected call of UpdateSendWindow -func (mr *MockStreamFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call { - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockStreamFlowController)(nil).UpdateSendWindow), arg0) -} diff --git a/vendor/github.com/lucas-clemente/quic-go/mockgen.go b/vendor/github.com/lucas-clemente/quic-go/mockgen.go deleted file mode 100644 index 1a882c358..000000000 --- a/vendor/github.com/lucas-clemente/quic-go/mockgen.go +++ /dev/null @@ -1,21 +0,0 @@ -package quic - -//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"