Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING: Cleanup core transport library #165

Merged
merged 4 commits into from
Jan 19, 2024
Merged

BREAKING: Cleanup core transport library #165

merged 4 commits into from
Jan 19, 2024

Conversation

fortuna
Copy link
Contributor

@fortuna fortuna commented Jan 17, 2024

  • Rename methods of core interfaces to avoid conflicts, as per Rename Dial to DialStream and DialPacket #150
  • Documented transport package.
  • Removed some redundancy, like TCPStreamDialer -> TCPDialer, which is shorter and consistent with the already existing TCPEndpoint (same for UDP).
  • Introduced Endpoint and Dialer types that encapsulate TCP and UDP.

Rename Connect to Stream|Packet

Rename direct Dialers

Rename UDPPacketListener

Update x

Fix mod
@fortuna fortuna changed the title BREAKING: Rename methods of core interfaces to avoid conflicts BREAKING: Cleanup core transport library Jan 17, 2024
@fortuna fortuna requested a review from jyyi1 January 17, 2024 22:00
Copy link
Contributor

@jyyi1 jyyi1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code LGTM! Thanks!

transport/transport.go Outdated Show resolved Hide resolved
transport/transport.go Outdated Show resolved Hide resolved
transport/transport.go Outdated Show resolved Hide resolved
transport/transport.go Outdated Show resolved Hide resolved
fortuna and others added 2 commits January 18, 2024 18:13
Co-authored-by: J. Yi <93548144+jyyi1@users.noreply.github.com>
@fortuna
Copy link
Contributor Author

fortuna commented Jan 18, 2024

FYI, I removed the new Dialer and Endpoint interfaces that I was adding. They may be bloat, I don't really think we need them for now. We can easily add them later if we realize the need, but I'd rather keep things lean.

@fortuna fortuna merged commit 2395ae2 into main Jan 19, 2024
6 checks passed
@fortuna fortuna deleted the fortuna-rename branch January 19, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants