Documentation ¶
Index ¶
- func DecodeMessage[T any](data []byte) (T, error)
- func EncodeMessage(message any) ([]byte, error)
- func ReadMessage(conn net.Conn) ([]byte, error)
- func WriteHeartbeatRequest(conn net.Conn) error
- func WriteHeartbeatResponse(conn net.Conn, id string) error
- func WriteMessage(conn net.Conn, msg []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeMessage ¶
DecodeMessage decodes a message.
func EncodeMessage ¶
EncodeMessage encodes a message.
func WriteHeartbeatRequest ¶
WriteHeartbeatRequest writes a heartbeat request.
func WriteHeartbeatResponse ¶
WriteHeartbeatResponse writes a heartbeat response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.