diff --git a/ackhandler/received_packet_history.go b/ackhandler/received_packet_history.go index d45fe6fd8..65968f3a4 100644 --- a/ackhandler/received_packet_history.go +++ b/ackhandler/received_packet_history.go @@ -4,7 +4,7 @@ import ( "github.com/lucas-clemente/quic-go/frames" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type receivedPacketHistory struct { diff --git a/ackhandler/received_packet_history_test.go b/ackhandler/received_packet_history_test.go index 0f794e1e5..7d397475b 100644 --- a/ackhandler/received_packet_history_test.go +++ b/ackhandler/received_packet_history_test.go @@ -3,7 +3,7 @@ package ackhandler import ( "github.com/lucas-clemente/quic-go/frames" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) diff --git a/ackhandler/sent_packet_handler.go b/ackhandler/sent_packet_handler.go index 3e371703e..3a07972e8 100644 --- a/ackhandler/sent_packet_handler.go +++ b/ackhandler/sent_packet_handler.go @@ -9,7 +9,7 @@ import ( "github.com/lucas-clemente/quic-go/frames" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) const ( diff --git a/client.go b/client.go index f9dddcd33..3bf686f70 100644 --- a/client.go +++ b/client.go @@ -11,7 +11,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type client struct { diff --git a/congestion/cubic.go b/congestion/cubic.go index 44595f020..62e735563 100644 --- a/congestion/cubic.go +++ b/congestion/cubic.go @@ -4,8 +4,8 @@ import ( "math" "time" + "github.com/lucas-clemente/quic-go/internal/utils" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" ) // This cubic implementation is based on the one found in Chromiums's QUIC diff --git a/congestion/cubic_sender.go b/congestion/cubic_sender.go index 34947d34c..8982b87ae 100644 --- a/congestion/cubic_sender.go +++ b/congestion/cubic_sender.go @@ -4,7 +4,7 @@ import ( "time" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) const ( diff --git a/congestion/hybrid_slow_start.go b/congestion/hybrid_slow_start.go index 29204ff27..179252b3d 100644 --- a/congestion/hybrid_slow_start.go +++ b/congestion/hybrid_slow_start.go @@ -4,7 +4,7 @@ import ( "time" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // Note(pwestin): the magic clamping numbers come from the original code in diff --git a/congestion/prr_sender.go b/congestion/prr_sender.go index f8e6d59c3..272f84eaa 100644 --- a/congestion/prr_sender.go +++ b/congestion/prr_sender.go @@ -4,7 +4,7 @@ import ( "time" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // PrrSender implements the Proportional Rate Reduction (PRR) per RFC 6937 diff --git a/congestion/prr_sender_test.go b/congestion/prr_sender_test.go index 0a6aa630f..61e6a17dc 100644 --- a/congestion/prr_sender_test.go +++ b/congestion/prr_sender_test.go @@ -5,7 +5,7 @@ import ( . "github.com/onsi/gomega" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) var _ = Describe("PRR sender", func() { diff --git a/congestion/rtt_stats.go b/congestion/rtt_stats.go index 0bf7b05dc..546c1cb98 100644 --- a/congestion/rtt_stats.go +++ b/congestion/rtt_stats.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) const ( diff --git a/congestion/rtt_stats_test.go b/congestion/rtt_stats_test.go index 3b722a605..6fae27956 100644 --- a/congestion/rtt_stats_test.go +++ b/congestion/rtt_stats_test.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) diff --git a/crypto/cert_compression.go b/crypto/cert_compression.go index 04b00f263..ea5ecff36 100644 --- a/crypto/cert_compression.go +++ b/crypto/cert_compression.go @@ -9,7 +9,7 @@ import ( "fmt" "hash/fnv" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type entryType uint8 diff --git a/crypto/key_derivation.go b/crypto/key_derivation.go index 470137f7c..33ca82353 100644 --- a/crypto/key_derivation.go +++ b/crypto/key_derivation.go @@ -6,7 +6,7 @@ import ( "io" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" "golang.org/x/crypto/hkdf" ) diff --git a/example/client/main.go b/example/client/main.go index 21bc5cefa..39aa2ed74 100644 --- a/example/client/main.go +++ b/example/client/main.go @@ -8,7 +8,7 @@ import ( "sync" "github.com/lucas-clemente/quic-go/h2quic" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) func main() { diff --git a/example/main.go b/example/main.go index 63f63bb5b..d6f330fc3 100644 --- a/example/main.go +++ b/example/main.go @@ -18,7 +18,7 @@ import ( _ "net/http/pprof" "github.com/lucas-clemente/quic-go/h2quic" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type binds []string diff --git a/flowcontrol/flow_control_manager.go b/flowcontrol/flow_control_manager.go index c5b4e7541..a1043a008 100644 --- a/flowcontrol/flow_control_manager.go +++ b/flowcontrol/flow_control_manager.go @@ -9,7 +9,7 @@ import ( "github.com/lucas-clemente/quic-go/handshake" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type flowControlManager struct { diff --git a/flowcontrol/flow_controller.go b/flowcontrol/flow_controller.go index e0946779e..a031ed545 100644 --- a/flowcontrol/flow_controller.go +++ b/flowcontrol/flow_controller.go @@ -7,7 +7,7 @@ import ( "github.com/lucas-clemente/quic-go/congestion" "github.com/lucas-clemente/quic-go/handshake" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type flowController struct { diff --git a/frames/ack_frame.go b/frames/ack_frame.go index 83f7e3174..42a8bfefa 100644 --- a/frames/ack_frame.go +++ b/frames/ack_frame.go @@ -6,7 +6,7 @@ import ( "time" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) var ( diff --git a/frames/blocked_frame.go b/frames/blocked_frame.go index b7e640c09..7285e1044 100644 --- a/frames/blocked_frame.go +++ b/frames/blocked_frame.go @@ -4,7 +4,7 @@ import ( "bytes" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A BlockedFrame in QUIC diff --git a/frames/connection_close_frame.go b/frames/connection_close_frame.go index 5681414c8..9cfaf544c 100644 --- a/frames/connection_close_frame.go +++ b/frames/connection_close_frame.go @@ -8,7 +8,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A ConnectionCloseFrame in QUIC diff --git a/frames/goaway_frame.go b/frames/goaway_frame.go index 7d452d5d5..4ea5a437a 100644 --- a/frames/goaway_frame.go +++ b/frames/goaway_frame.go @@ -6,7 +6,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A GoawayFrame is a GOAWAY frame diff --git a/frames/log.go b/frames/log.go index 1918db187..6b7fdcec4 100644 --- a/frames/log.go +++ b/frames/log.go @@ -1,6 +1,6 @@ package frames -import "github.com/lucas-clemente/quic-go/utils" +import "github.com/lucas-clemente/quic-go/internal/utils" // LogFrame logs a frame, either sent or received func LogFrame(frame Frame, sent bool) { diff --git a/frames/log_test.go b/frames/log_test.go index b0bf0c7ca..30959ad2c 100644 --- a/frames/log_test.go +++ b/frames/log_test.go @@ -7,7 +7,7 @@ import ( "time" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/frames/rst_stream_frame.go b/frames/rst_stream_frame.go index 87778754d..72d02569e 100644 --- a/frames/rst_stream_frame.go +++ b/frames/rst_stream_frame.go @@ -4,7 +4,7 @@ import ( "bytes" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A RstStreamFrame in QUIC diff --git a/frames/stop_waiting_frame.go b/frames/stop_waiting_frame.go index 71c7c7de5..eb6798f29 100644 --- a/frames/stop_waiting_frame.go +++ b/frames/stop_waiting_frame.go @@ -6,7 +6,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A StopWaitingFrame in QUIC diff --git a/frames/stream_frame.go b/frames/stream_frame.go index 4a78d2169..3536147de 100644 --- a/frames/stream_frame.go +++ b/frames/stream_frame.go @@ -6,7 +6,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A StreamFrame of QUIC diff --git a/frames/window_update_frame.go b/frames/window_update_frame.go index 93e7f8c35..c1eb9bf0d 100644 --- a/frames/window_update_frame.go +++ b/frames/window_update_frame.go @@ -4,7 +4,7 @@ import ( "bytes" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A WindowUpdateFrame in QUIC diff --git a/h2quic/client.go b/h2quic/client.go index d0bb96cc6..d7b93c93a 100644 --- a/h2quic/client.go +++ b/h2quic/client.go @@ -17,7 +17,7 @@ import ( quic "github.com/lucas-clemente/quic-go" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type roundTripperOpts struct { diff --git a/h2quic/request_writer.go b/h2quic/request_writer.go index 834ebbbe5..455da6f68 100644 --- a/h2quic/request_writer.go +++ b/h2quic/request_writer.go @@ -14,7 +14,7 @@ import ( quic "github.com/lucas-clemente/quic-go" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type requestWriter struct { diff --git a/h2quic/response_writer.go b/h2quic/response_writer.go index d38555a45..add157c81 100644 --- a/h2quic/response_writer.go +++ b/h2quic/response_writer.go @@ -9,7 +9,7 @@ import ( quic "github.com/lucas-clemente/quic-go" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" "golang.org/x/net/http2" "golang.org/x/net/http2/hpack" ) diff --git a/h2quic/server.go b/h2quic/server.go index f5b1e1b60..b998efb73 100644 --- a/h2quic/server.go +++ b/h2quic/server.go @@ -15,7 +15,7 @@ import ( quic "github.com/lucas-clemente/quic-go" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" "golang.org/x/net/http2" "golang.org/x/net/http2/hpack" ) diff --git a/handshake/connection_parameters_manager.go b/handshake/connection_parameters_manager.go index fc7121859..1127471b7 100644 --- a/handshake/connection_parameters_manager.go +++ b/handshake/connection_parameters_manager.go @@ -7,7 +7,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // ConnectionParametersManager negotiates and stores the connection parameters diff --git a/handshake/crypto_setup_client.go b/handshake/crypto_setup_client.go index 76ae41f79..d45496bbc 100644 --- a/handshake/crypto_setup_client.go +++ b/handshake/crypto_setup_client.go @@ -14,7 +14,7 @@ import ( "github.com/lucas-clemente/quic-go/crypto" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type cryptoSetupClient struct { diff --git a/handshake/crypto_setup_client_test.go b/handshake/crypto_setup_client_test.go index 706ddfc0e..2fc2bfc43 100644 --- a/handshake/crypto_setup_client_test.go +++ b/handshake/crypto_setup_client_test.go @@ -10,7 +10,7 @@ import ( "github.com/lucas-clemente/quic-go/crypto" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) diff --git a/handshake/crypto_setup_server.go b/handshake/crypto_setup_server.go index 68d50a16b..52a9f9abf 100644 --- a/handshake/crypto_setup_server.go +++ b/handshake/crypto_setup_server.go @@ -12,7 +12,7 @@ import ( "github.com/lucas-clemente/quic-go/crypto" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // KeyDerivationFunction is used for key derivation diff --git a/handshake/crypto_setup_server_test.go b/handshake/crypto_setup_server_test.go index ea5b04ddb..62cf054a3 100644 --- a/handshake/crypto_setup_server_test.go +++ b/handshake/crypto_setup_server_test.go @@ -9,7 +9,7 @@ import ( "github.com/lucas-clemente/quic-go/crypto" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/handshake/ephermal_cache.go b/handshake/ephermal_cache.go index dacf3a11a..608cf0d03 100644 --- a/handshake/ephermal_cache.go +++ b/handshake/ephermal_cache.go @@ -6,7 +6,7 @@ import ( "github.com/lucas-clemente/quic-go/crypto" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) var ( diff --git a/handshake/handshake_message.go b/handshake/handshake_message.go index 0a0de79ea..804dcd024 100644 --- a/handshake/handshake_message.go +++ b/handshake/handshake_message.go @@ -9,7 +9,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A HandshakeMessage is a handshake message diff --git a/handshake/server_config_client.go b/handshake/server_config_client.go index e3ee4f7d4..3de6f08ec 100644 --- a/handshake/server_config_client.go +++ b/handshake/server_config_client.go @@ -9,7 +9,7 @@ import ( "github.com/lucas-clemente/quic-go/crypto" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type serverConfigClient struct { diff --git a/integrationtests/handshake/rtt.go b/integrationtests/handshake/rtt.go index fe125eb11..33c7ff76c 100644 --- a/integrationtests/handshake/rtt.go +++ b/integrationtests/handshake/rtt.go @@ -11,7 +11,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" "github.com/lucas-clemente/quic-go/testdata" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/integrationtests/integrationtests_suite_test.go b/integrationtests/integrationtests_suite_test.go index d6e579e31..4319fd154 100644 --- a/integrationtests/integrationtests_suite_test.go +++ b/integrationtests/integrationtests_suite_test.go @@ -24,7 +24,7 @@ import ( "github.com/lucas-clemente/quic-go/h2quic" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/testdata" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" "github.com/tebeka/selenium" . "github.com/onsi/ginkgo" diff --git a/utils/_gen.go b/internal/utils/_gen.go similarity index 100% rename from utils/_gen.go rename to internal/utils/_gen.go diff --git a/utils/atomic_bool.go b/internal/utils/atomic_bool.go similarity index 100% rename from utils/atomic_bool.go rename to internal/utils/atomic_bool.go diff --git a/utils/atomic_bool_test.go b/internal/utils/atomic_bool_test.go similarity index 100% rename from utils/atomic_bool_test.go rename to internal/utils/atomic_bool_test.go diff --git a/utils/byteinterval_linkedlist.go b/internal/utils/byteinterval_linkedlist.go similarity index 100% rename from utils/byteinterval_linkedlist.go rename to internal/utils/byteinterval_linkedlist.go diff --git a/utils/connection_id.go b/internal/utils/connection_id.go similarity index 100% rename from utils/connection_id.go rename to internal/utils/connection_id.go diff --git a/utils/connection_id_test.go b/internal/utils/connection_id_test.go similarity index 100% rename from utils/connection_id_test.go rename to internal/utils/connection_id_test.go diff --git a/utils/float16.go b/internal/utils/float16.go similarity index 100% rename from utils/float16.go rename to internal/utils/float16.go diff --git a/utils/float16_test.go b/internal/utils/float16_test.go similarity index 100% rename from utils/float16_test.go rename to internal/utils/float16_test.go diff --git a/utils/host.go b/internal/utils/host.go similarity index 100% rename from utils/host.go rename to internal/utils/host.go diff --git a/utils/host_test.go b/internal/utils/host_test.go similarity index 100% rename from utils/host_test.go rename to internal/utils/host_test.go diff --git a/utils/log.go b/internal/utils/log.go similarity index 100% rename from utils/log.go rename to internal/utils/log.go diff --git a/utils/log_test.go b/internal/utils/log_test.go similarity index 100% rename from utils/log_test.go rename to internal/utils/log_test.go diff --git a/utils/minmax.go b/internal/utils/minmax.go similarity index 100% rename from utils/minmax.go rename to internal/utils/minmax.go diff --git a/utils/minmax_test.go b/internal/utils/minmax_test.go similarity index 100% rename from utils/minmax_test.go rename to internal/utils/minmax_test.go diff --git a/utils/packet_interval.go b/internal/utils/packet_interval.go similarity index 100% rename from utils/packet_interval.go rename to internal/utils/packet_interval.go diff --git a/utils/packetinterval_linkedlist.go b/internal/utils/packetinterval_linkedlist.go similarity index 100% rename from utils/packetinterval_linkedlist.go rename to internal/utils/packetinterval_linkedlist.go diff --git a/utils/streamframe_interval.go b/internal/utils/streamframe_interval.go similarity index 100% rename from utils/streamframe_interval.go rename to internal/utils/streamframe_interval.go diff --git a/utils/timer.go b/internal/utils/timer.go similarity index 100% rename from utils/timer.go rename to internal/utils/timer.go diff --git a/utils/timer_test.go b/internal/utils/timer_test.go similarity index 100% rename from utils/timer_test.go rename to internal/utils/timer_test.go diff --git a/utils/utils.go b/internal/utils/utils.go similarity index 100% rename from utils/utils.go rename to internal/utils/utils.go diff --git a/utils/utils_suite_test.go b/internal/utils/utils_suite_test.go similarity index 100% rename from utils/utils_suite_test.go rename to internal/utils/utils_suite_test.go diff --git a/utils/utils_test.go b/internal/utils/utils_test.go similarity index 100% rename from utils/utils_test.go rename to internal/utils/utils_test.go diff --git a/public_header.go b/public_header.go index 5aa036f36..80c816853 100644 --- a/public_header.go +++ b/public_header.go @@ -6,7 +6,7 @@ import ( "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) var ( diff --git a/public_reset.go b/public_reset.go index 2cbd98882..ae1bb4f34 100644 --- a/public_reset.go +++ b/public_reset.go @@ -7,7 +7,7 @@ import ( "github.com/lucas-clemente/quic-go/handshake" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type publicReset struct { diff --git a/qerr/quic_error.go b/qerr/quic_error.go index 6259476b8..f581ab14d 100644 --- a/qerr/quic_error.go +++ b/qerr/quic_error.go @@ -3,7 +3,7 @@ package qerr import ( "fmt" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // ErrorCode can be used as a normal error without reason. diff --git a/server.go b/server.go index fe5817a55..c373e99a8 100644 --- a/server.go +++ b/server.go @@ -11,7 +11,7 @@ import ( "github.com/lucas-clemente/quic-go/handshake" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // packetHandler handles packets diff --git a/server_test.go b/server_test.go index 35df8d31e..6d2892ad3 100644 --- a/server_test.go +++ b/server_test.go @@ -12,7 +12,7 @@ import ( "github.com/lucas-clemente/quic-go/handshake" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/session.go b/session.go index dfffccd48..6772c9cfd 100644 --- a/session.go +++ b/session.go @@ -14,7 +14,7 @@ import ( "github.com/lucas-clemente/quic-go/handshake" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type unpacker interface { diff --git a/stream.go b/stream.go index 5e2cbaf87..72bbb5915 100644 --- a/stream.go +++ b/stream.go @@ -8,7 +8,7 @@ import ( "github.com/lucas-clemente/quic-go/flowcontrol" "github.com/lucas-clemente/quic-go/frames" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) // A Stream assembles the data from StreamFrames and provides a super-convenient Read-Interface diff --git a/stream_frame_sorter.go b/stream_frame_sorter.go index 8db048cc5..f24324a16 100644 --- a/stream_frame_sorter.go +++ b/stream_frame_sorter.go @@ -5,7 +5,7 @@ import ( "github.com/lucas-clemente/quic-go/frames" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type streamFrameSorter struct { diff --git a/stream_frame_sorter_test.go b/stream_frame_sorter_test.go index 79962bed8..1e0333a14 100644 --- a/stream_frame_sorter_test.go +++ b/stream_frame_sorter_test.go @@ -5,7 +5,7 @@ import ( "github.com/lucas-clemente/quic-go/frames" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) diff --git a/stream_framer.go b/stream_framer.go index 45c072209..337ba72eb 100644 --- a/stream_framer.go +++ b/stream_framer.go @@ -4,7 +4,7 @@ import ( "github.com/lucas-clemente/quic-go/flowcontrol" "github.com/lucas-clemente/quic-go/frames" "github.com/lucas-clemente/quic-go/protocol" - "github.com/lucas-clemente/quic-go/utils" + "github.com/lucas-clemente/quic-go/internal/utils" ) type streamFramer struct { diff --git a/stream_test.go b/stream_test.go index fd716432d..34d894b14 100644 --- a/stream_test.go +++ b/stream_test.go @@ -8,7 +8,6 @@ import ( "github.com/lucas-clemente/quic-go/frames" "github.com/lucas-clemente/quic-go/internal/mocks/mocks_fc" "github.com/lucas-clemente/quic-go/protocol" - . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" )