dumper

package
v0.23.9 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnMetadata added in v0.7.0

type ConnMetadata struct {
	DumpValues []DumpValue
	Internal   interface{} // internal metadata for dumper
	Fin        bool
}

ConnMetadata is metadada per TCP connection

type Direction

type Direction int

Direction of TCP commnication

const (
	// ClientToRemote is client->proxy->remote
	ClientToRemote Direction = iota
	// RemoteToClient is client<-proxy<-remote
	RemoteToClient
	// SrcToDst is src->dst
	SrcToDst
	// DstToSrc is dst->src
	DstToSrc
	// Unknown direction
	Unknown Direction = 9
)

func (Direction) String

func (d Direction) String() string

type DumpValue

type DumpValue struct {
	Key   string
	Value interface{}
}

DumpValue ...

type Dumper

type Dumper interface {
	Name() string
	Dump(in []byte, direction Direction, connMetadata *ConnMetadata, additional []DumpValue) error
	Read(in []byte, direction Direction, connMetadata *ConnMetadata) ([]DumpValue, error)
	Log(values []DumpValue)
	NewConnMetadata() *ConnMetadata
}

Dumper interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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