correlate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Match      *vm.Program
	Identifier *vm.Program
	Clear      *vm.Program
}

type ConditionConfig

type ConditionConfig struct {
	Match       string
	Identifiers []string
	Clear       string
}

type Config

type Config struct {
	Enable           bool
	BackendURL       string `mapstructure:"backend_url"`
	TTL              helper.Duration
	CleanupInterval  helper.Duration `mapstructure:"cleanup_interval"`
	Timeout          helper.Duration
	ShutdownWaitTime helper.Duration `mapstructure:"shutdown_wait_time"`
	QueueSize        int             `mapstructure:"queue_size"`
	Workers          int
	Conditions       []ConditionConfig
	AutoRetry        helper.AutoRetry `mapstructure:"auto_retry"`
}

type Correlate

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

func NewCorrelate

func NewCorrelate(c Config, wg *sync.WaitGroup, fwdChan chan<- *snmp.Message) (*Correlate, error)

func (*Correlate) Close

func (c *Correlate) Close()

func (*Correlate) CorrelateWorker

func (c *Correlate) CorrelateWorker()

func (*Correlate) Retry

func (c *Correlate) Retry(m *snmp.Message, err error)

func (*Correlate) SendChannel

func (c *Correlate) SendChannel() chan<- *snmp.Message

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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