netdetector

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 (
	DetectorNetType string = "detector_net"
)

Variables

This section is empty.

Functions

func NewNetDetector

func NewNetDetector(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 NetDetector

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

func (*NetDetector) ConsumeChanEvents

func (n *NetDetector) ConsumeChanEvents()

func (*NetDetector) ConsumeEvent

func (n *NetDetector) ConsumeEvent(e *model.SpyEvent) error

公共接口

func (*NetDetector) Init

func (n *NetDetector) Init(cfg any) error

func (*NetDetector) Name

func (n *NetDetector) Name() string

func (*NetDetector) OwnedEvents

func (n *NetDetector) OwnedEvents() []string

hard code

func (*NetDetector) ProcessEvent

func (n *NetDetector) ProcessEvent(e *model.SpyEvent) error

func (*NetDetector) Start

func (n *NetDetector) Start() error

func (*NetDetector) Stop

func (n *NetDetector) 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