pcap

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

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

func NewCleaner

func NewCleaner(cleanPeriod time.Duration, maxDirectorySize, diskFreeSpaceMargin int64, baseDirectory string) *Cleaner

func (*Cleaner) GetPcapDataRetention

func (c *Cleaner) GetPcapDataRetention() time.Duration

func (*Cleaner) Start

func (c *Cleaner) Start()

func (*Cleaner) UpdatePcapDataRetention

func (c *Cleaner) UpdatePcapDataRetention(pcapDataRetention time.Duration)

type File

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

type FileLock

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

func New

func New(dir string) *FileLock

func (*FileLock) Lock

func (l *FileLock) Lock() error

func (*FileLock) Unlock

func (l *FileLock) Unlock() error

Jump to

Keyboard shortcuts

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