iodetector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DetectorIoType string = "detector_io"
)

Variables

This section is empty.

Functions

func NewIoDetector

func NewIoDetector(cfg any, consumers []consumer.Consumer) detector.Detector

Types

type Config

type Config struct {
	SessionInfos  []Session `mapstructure:"sessioninfo"`
	EventChanSize int
}

func NewConfig

func NewConfig() *Config

type IoDetector

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

func (*IoDetector) ConsumeChanEvents

func (io *IoDetector) ConsumeChanEvents()

func (*IoDetector) ConsumeEvent

func (io *IoDetector) ConsumeEvent(e *model.SpyEvent) error

公共接口

func (*IoDetector) Init

func (io *IoDetector) Init(cfg any) error

func (*IoDetector) Name

func (io *IoDetector) Name() string

func (*IoDetector) OwnedEvents

func (io *IoDetector) OwnedEvents() []string

hard code

func (*IoDetector) ProcessEvent

func (io *IoDetector) ProcessEvent(e *model.SpyEvent) error

func (*IoDetector) Start

func (io *IoDetector) Start() error

func (*IoDetector) Stop

func (io *IoDetector) Stop() error

type Session

type Session struct {
	Class  string            `mapstructure:"class"`
	Name   string            `mapstructure:"name"`
	Params map[string]string `mapstructure:"params"`
}

Jump to

Keyboard shortcuts

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