package
2.0.0-rc2+incompatible
Repository: https://github.com/buger/goreplay.git
Documentation: pkg.go.dev
# Functions
NewMessageParser returns a new instance of message parser.
ParsePacket parse raw packets.
# Structs
Message is the representation of a tcp message.
MessageParser holds data of all tcp messages in progress(still receiving/sending packets).
Packet represent data and layers of packet.
Stats every message carry its own stats object.
# Type aliases
Emitter message handler.
ErrHdrExpected returned when header(s) are different from the one expected.
ErrHdrInvalid returned when header(s) are different from the one expected.
ErrHdrLength returned on short header length.
ErrHdrMissing returned on missing header(s).
HintEnd hints the parser to stop the session, see MessageParser.End when set, it will be executed before checking FIN or RST flag.
HintStart hints the parser to start the reassembling the message, see MessageParser.Start when set, it will be called after checking SYN flag.
TCPProtocol is a number to indicate type of protocol.