memdetector

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DetectorMemType string = "detector_mem"
)

Variables

This section is empty.

Functions

func NewMemDetector

func NewMemDetector(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 MemDetector

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

func (*MemDetector) ConsumeChanEvents

func (mem *MemDetector) ConsumeChanEvents()

func (*MemDetector) ConsumeEvent

func (mem *MemDetector) ConsumeEvent(*model.SpyEvent) error

公共接口

func (*MemDetector) Init

func (mem *MemDetector) Init(cfg any) error

func (*MemDetector) Name

func (mem *MemDetector) Name() string

func (*MemDetector) OwnedEvents

func (mem *MemDetector) OwnedEvents() []string

hard code

func (*MemDetector) ProcessEvent

func (mem *MemDetector) ProcessEvent(e *model.SpyEvent) error

func (*MemDetector) Start

func (mem *MemDetector) Start() error

func (*MemDetector) Stop

func (mem *MemDetector) 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