Versions in this module Expand all Collapse all v0 v0.1.0 Apr 22, 2020 Changes in this version + var LayerTypeHTTP2 = gopacket.RegisterLayerType(12345, gopacket.LayerTypeMetadata{ ... }) + var State = &HeadersState + func Headers(h2 HTTP2) map[string]string + type HTTP2 struct + func (h *HTTP2) CanDecode() gopacket.LayerClass + func (h *HTTP2) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error + func (h *HTTP2) Frames() []http2.Frame + func (h *HTTP2) NextLayerType() gopacket.LayerType + func (h *HTTP2) Payload() []byte + func (h HTTP2) LayerType() gopacket.LayerType + func (h HTTP2) String() string + type HeadersState struct + func (s *HeadersState) Headers(srcip string, srctcp uint16, dstip string, dsttcp uint16) map[string]string + func (s *HeadersState) SetHeaders(srcip string, srctcp uint16, dstip string, dsttcp uint16, key string, ...) + func (s *HeadersState) UpdateState(srcip string, srctcp uint16, dstip string, dsttcp uint16, ...) + type InterceptedPacket struct + DstIP net.IP + DstTCP layers.TCPPort + HTTP2 HTTP2 + SrcIP net.IP + SrcTCP layers.TCPPort + type PacketInterceptor struct + func NewPacketInterceptor(device string, snapshotLen int32, isPromiscuous bool, timeout time.Duration) *PacketInterceptor + func (i *PacketInterceptor) Close() + func (i *PacketInterceptor) Packets() chan InterceptedPacket