grpchelper

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderPartiallyParsed ExtKey = "header_partial"
	DataDirection         ExtKey = "data_direction"
	DataGuessed           ExtKey = "data_guessed"
	DataPath              ExtKey = "data_path"

	C2S string = "client_to_service"
	S2C string = "service_to_client"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtKey

type ExtKey string

type Message

type Message struct {
	Meta
	Type
	Header map[string]string
	Data   *dynamic.Message

	Ext map[ExtKey]string
}

type Meta

type Meta struct {
	PacketNumber int
	gopacket.CaptureInfo
	Src, Dst     string
	Sport, Dport int
	HTTP2Header  http2.FrameHeader
}

type ProtoParser

type ProtoParser interface {
	MarshalRequest(path string, message []byte) (*dynamic.Message, error)
	MarshalResponse(path string, message []byte) (*dynamic.Message, error)
	GetPathFilenames() map[string]string
	GetAllPaths() []string
}

func NewProtoParser

func NewProtoParser(filenames []string) (_ ProtoParser, err error)

type Type

type Type int
const (
	HeaderType Type = iota
	DataType
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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