grpcparser

package
v0.0.0-...-7f9e7d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(protoParser grpc.ProtoParser, servicePort int, guessPaths []string) (_ parser.Parser, err error)

Types

type ConnID

type ConnID = string

type HpackDecoder

type HpackDecoder struct {
	// contains filtered or unexported fields
}

func (*HpackDecoder) Clear

func (h *HpackDecoder) Clear(connID string)

func (*HpackDecoder) Decode

func (h *HpackDecoder) Decode(connID string, hf *http2.HeadersFrame) ([]hpack.HeaderField, error)

func (*HpackDecoder) DecodePartial

func (h *HpackDecoder) DecodePartial(p []byte) (hf []hpack.HeaderField)

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) Parse

func (p *Parser) Parse(packet gopacket.Packet) (messages []grpc.Message, err error)

type StreamID

type StreamID = uint32

type TCPSegment

type TCPSegment struct {
	gopacket.Packet
}

func (TCPSegment) ConnID

func (s TCPSegment) ConnID() string

func (TCPSegment) Dport

func (s TCPSegment) Dport() int

func (TCPSegment) Dst

func (s TCPSegment) Dst() string

func (TCPSegment) FIN

func (s TCPSegment) FIN() bool

func (TCPSegment) HasApplicationLayer

func (s TCPSegment) HasApplicationLayer() bool

func (TCPSegment) Payload

func (s TCPSegment) Payload() (payload []byte)

func (TCPSegment) RevConnID

func (s TCPSegment) RevConnID() string

func (TCPSegment) Sport

func (s TCPSegment) Sport() int

func (TCPSegment) Src

func (s TCPSegment) Src() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL