-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): implement FrameConn interface using quic-go (#642)
# Description Implement new two frame-related interfaces below using quic-go. ```go // Listener accepts FrameConns. type Listener interface { // Accept accepts FrameConns. Accept(context.Context) (FrameConn, error) // Close closes listener, // If listener be closed, all FrameConn accepted will be unavailable. Close() error } // FrameConn is a connection that transmits data in frame format. type FrameConn interface { // Context returns FrameConn.Context. // The Context can be used to manage the lifecycle of connection and // retrieve error using `context.Cause(conn.Context())` after calling `CloseWithError()`. Context() context.Context // WriteFrame writes a frame to connection. WriteFrame(frame.Frame) error // ReadFrame returns a channel from which frames can be received. ReadFrame() (frame.Frame, error) // RemoteAddr returns the remote address of connection. RemoteAddr() net.Addr // LocalAddr returns the local address of connection. LocalAddr() net.Addr // CloseWithError closes the connection with an error message. // It will be unavailable if the connection is closed. the error message should be written to the conn.Context(). CloseWithError(string) error } ```
- Loading branch information
Showing
12 changed files
with
539 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a628936
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
yomo – ./
yomo-git-master-yomorun.vercel.app
yomo.vercel.app
yomo.run
yomo-yomorun.vercel.app
www.yomo.run