importer

package
v0.0.0-...-167e9fd Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_EXECUTABLE_PATH = "tcpdump"
View Source
const DEFAULT_PCAP_INPUT_PATH = "/nsm/import"
View Source
const DEFAULT_PCAP_OUTPUT_PATH = "/nsm/pcapout"
View Source
const DEFAULT_TIMEOUT_MS = 1200000

Variables

This section is empty.

Functions

This section is empty.

Types

type Importer

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

func NewImporter

func NewImporter(agt *agent.Agent) *Importer

func (*Importer) CleanupJob

func (importer *Importer) CleanupJob(job *model.Job)

func (*Importer) GetDataEpoch

func (importer *Importer) GetDataEpoch() time.Time

func (*Importer) Init

func (importer *Importer) Init(cfg module.ModuleConfig) error

func (*Importer) IsRunning

func (importer *Importer) IsRunning() bool

func (*Importer) PrerequisiteModules

func (lag *Importer) PrerequisiteModules() []string

func (*Importer) ProcessJob

func (importer *Importer) ProcessJob(job *model.Job, reader io.ReadCloser) (io.ReadCloser, error)

func (*Importer) Start

func (importer *Importer) Start() error

func (*Importer) Stop

func (importer *Importer) Stop() error

Jump to

Keyboard shortcuts

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