workers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: EUPL-1.2 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	URL              string
	Key              string
	Insecure         bool
	Period           []string
	Events           []int
	IDSIgnore        bool
	IDSExclude       bool
	PublishedInclude bool
	PublishedExclude bool
	Buffer           int
	WarningInclude   bool
	Tags             []string
	ThreatLevel      []string
	Keywords         []string
}

func (Options) AttributeFilter

func (o Options) AttributeFilter() map[string]interface{}

func (Options) Authorize

func (o Options) Authorize(req *http.Request)

func (Options) EventFilter

func (o Options) EventFilter() map[string]interface{}

func (Options) ObjectFilter

func (o Options) ObjectFilter() map[string]interface{}

func (Options) Validate

func (o Options) Validate() error

type Worker

type Worker interface {
	Enrich(events chan *event.Event) chan *event.Event
	Events() chan *event.Event
	Error() error
}

func New

func New(o *Options, l zerolog.Logger) (Worker, error)

Jump to

Keyboard shortcuts

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