httpassembly

package
v0.0.0-...-f77230d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpAssembler

type HttpAssembler struct {
	Log *slog.Logger
	// contains filtered or unexported fields
}

func NewAssembler

func NewAssembler(factory HttpStreamFactory) *HttpAssembler

func (*HttpAssembler) Assemble

func (a *HttpAssembler) Assemble(p gopacket.Packet)

func (*HttpAssembler) FlushCloseOlderThan

func (a *HttpAssembler) FlushCloseOlderThan(t time.Time)

func (*HttpAssembler) ReassembleJob

func (a *HttpAssembler) ReassembleJob(ctx context.Context, wg *sync.WaitGroup)

type HttpStream

type HttpStream interface {
	ReassembledRequestResponse(req []byte, res []byte, duration float64)
}

type HttpStreamFactory

type HttpStreamFactory interface {
	New() HttpStream
}

Jump to

Keyboard shortcuts

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