mimic

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator handles the logic for mimicking traffic patterns

func NewGenerator

func NewGenerator(preset *presets.Preset) *Generator

NewGenerator creates a new traffic mimicry generator

func (*Generator) NextPacketDelay

func (g *Generator) NextPacketDelay() time.Duration

NextPacketDelay calculates the delay before sending the next packet to simulate realistic traffic flow (e.g., reading time, video buffering)

func (*Generator) NextPacketSize

func (g *Generator) NextPacketSize() int

NextPacketSize returns a recommended size for the next packet payload

func (*Generator) SetPreset

func (g *Generator) SetPreset(p *presets.Preset)

SetPreset updates the current behavior profile

Jump to

Keyboard shortcuts

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