collector

package
v2.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Collect starts collecting on collect chan until ctx.Done() chan gets a signal
	Collect(ctx context.Context, wg *sync.WaitGroup, collect chan<- *monitoring.RawLog)
}

Collector is the interface implemented by collectors who wish to collect Raw Log data from WAF Instances.

type NAPCollector

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

NAPCollector lets you to Collect log data on given port.

func NewNAPCollector

func NewNAPCollector(cfg *NAPConfig) (napCollector *NAPCollector, err error)

NewNAPCollector gives you a NAP collector for the syslog server.

func (*NAPCollector) Collect

func (nap *NAPCollector) Collect(ctx context.Context, wg *sync.WaitGroup, collect chan<- *monitoring.RawLog)

Collect starts collecting on collect chan until done chan gets a signal.

type NAPConfig

type NAPConfig struct {
	SyslogIP   string
	SyslogPort int
	Logger     *logrus.Entry
}

NAPConfig holds the config for NAPConfig Collector.

Jump to

Keyboard shortcuts

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