Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHeader ¶
ParseHeader parses raw header bytes into a user-defined struct with bmux tags, and extracts the field tagged with `bmux:"msg_id"` for routing. Supports protobuf messages if headerPtr implements proto.Message.
Types ¶
type PacketEnvelope ¶
func ParseEnvelope ¶
func ParseEnvelope(conn net.Conn) (*PacketEnvelope, error)
Click to show internal directories.
Click to hide internal directories.