Skip to content

Commit

Permalink
Remove interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna committed Jan 18, 2024
1 parent 1268333 commit f0f4940
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions transport/transport.go → transport/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f0f4940

Please sign in to comment.