From f0f4940827bcc802d34fc11b2bb18cba13828660 Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Thu, 18 Jan 2024 18:55:42 -0500 Subject: [PATCH] Remove interfaces --- transport/{transport.go => doc.go} | 16 ---------------- 1 file changed, 16 deletions(-) rename transport/{transport.go => doc.go} (84%) diff --git a/transport/transport.go b/transport/doc.go similarity index 84% rename from transport/transport.go rename to transport/doc.go index 565bd7c1..f6dc74a8 100644 --- a/transport/transport.go +++ b/transport/doc.go @@ -45,19 +45,3 @@ then create a TLS StreamConn backed by the TCP StreamConn. A SOCKS5-over-TLS Dia to the proxy before doing the SOCKS5 connection to the target address. */ package transport - -// Endpoint is the interface that groups [StreamEndpoint] and [PacketEndpoint]. -// It encapsulates the notion that you can establish Stream or Packet connections -// with the same endpoint. -type Endpoint interface { - StreamEndpoint - PacketEndpoint -} - -// Dialer is the interface that groups [StreamDialer] and [PacketDialer]. -// It encapsulates the ability to dial both stream and packet connections, -// similar to [net.Dialer], but with strict types. -type Dialer interface { - StreamDialer - PacketDialer -}