logic

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logic

type Logic struct {
	*common.Base
	// contains filtered or unexported fields
}

func NewAND

func NewAND(payload string, adapter string, parseRule ParseRuleFunc) (*Logic, error)

func NewNOT

func NewNOT(payload string, adapter string, parseRule ParseRuleFunc) (*Logic, error)

func NewOR

func NewOR(payload string, adapter string, parseRule ParseRuleFunc) (*Logic, error)

func NewSubRule

func NewSubRule(payload, adapter string, subRules map[string][]C.Rule, parseRule ParseRuleFunc) (*Logic, error)

func (*Logic) Adapter

func (logic *Logic) Adapter() string

func (*Logic) Match

func (logic *Logic) Match(metadata *C.Metadata) (bool, string)

func (*Logic) Payload

func (logic *Logic) Payload() string

func (*Logic) RuleType

func (logic *Logic) RuleType() C.RuleType

func (*Logic) ShouldFindProcess

func (logic *Logic) ShouldFindProcess() bool

func (*Logic) ShouldResolveIP

func (logic *Logic) ShouldResolveIP() bool

type ParseRuleFunc

type ParseRuleFunc func(tp, payload, target string, params []string, subRules map[string][]C.Rule) (C.Rule, error)

type Range

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

Jump to

Keyboard shortcuts

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