Versions in this module Expand all Collapse all v0 v0.3.2 Feb 26, 2024 v0.3.1 Jan 6, 2023 Changes in this version + var DelayGrace = 100 * time.Microsecond + func DumpSetJSON(path string, set PcapSet) error + func FindPcapFiles(dir, suffix string) ([]string, error) + func Open(path string) (io.ReadCloser, error) + type Config struct + Ctx context.Context + DisableWait bool + FilterRegex *regexp.Regexp + OutBpf string + Reorder bool + ScaleDuration time.Duration + ScaleEnabled bool + ScalePerFile bool + Set PcapSet + SkipMTU int + SkipOutOfOrder bool + TimeFrom time.Time + TimeTo time.Time + WriteInterface string + func (c Config) Validate() error + type Content int + const Bzip + const Gzip + const Octet + const Plaintext + const Utf16 + const Utf8 + const Xz + type Handle struct + FileSet PcapSet + func NewHandle(c Config) (*Handle, error) + func (h *Handle) Play() error + type MapConfig struct + Directory string + Pattern string + Suffix string + Workers int + type Pcap struct + Delay time.Duration + DelayHuman string + Path string + Snaplen uint32 + type PcapSet struct + Files []*Pcap + func LoadSetJSON(path string) (*PcapSet, error) + func NewPcapSet(c MapConfig) (*PcapSet, error) + func (s *PcapSet) FilterFilesByRegex(pattern *regexp.Regexp) error + func (s *PcapSet) FilterFilesByTime(ts time.Time, beginning bool) error + func (s *PcapSet) UpdateDelay() error + func (s PcapSet) Validate() error