package
1.19.7
Repository: https://github.com/yomorun/yomo.git
Documentation: pkg.go.dev

# Functions

IsReservedTag returns error when write a reserved tag.
NewErrConnClosed returns an ErrConnClosed.
NewFrame creates a new frame from Type.

# Constants

TypeConnectToFrame is the type of ConnectToFrame.
TypeDataFrame is the type of DataFrame.
TypeGoawayFrame is the type of GoawayFrame.
TypeHandshakeAckFrame is the type of HandshakeAckFrame.
TypeHandshakeFrame is the type of HandshakeFrame.
TypeRejectedFrame is the type of RejectedFrame.

# Variables

ErrReservedTag is returned when write a reserved tag.

# Structs

ConnectToFrame is is used by server to notify client to connect a new endpoint.
DataFrame carries tagged data to transmit across connection.
ErrConnClosed is returned when the connection be closed by remote or local.
GoawayFrame is is used by server to evict a connection.
HandshakeAckFrame is used to ack handshake, If handshake successful, The server will send HandshakeAckFrame to the client.
The HandshakeFrame is the frame through which the client obtains a new connection from the server.
RejectedFrame is used to reject a client request.

# Interfaces

Codec encodes and decodes byte array to frame.
Conn is a connection that transmits data in frame format.
Frame is the minimum unit required for Yomo to run.
Listener accepts Conns.
PacketReadWriter reads packets from the io.Reader and writes packets to the io.Writer.
Writer is the interface that wraps the WriteFrame method, it writes frame to the underlying connection.

# Type aliases

Tag tags data and can be used for data routing.
Type defined The type of frame.