Documentation
¶
Index ¶
- type YaraRules
- func (yr *YaraRules) Compile(purpose int, failOnCompileWarning bool) error
- func (yr *YaraRules) DefineVariable(name string, value any) error
- func (yr *YaraRules) NewScanner() (*yara.Scanner, error)
- func (yr *YaraRules) ScanFileDescriptor(fd uintptr, flags yara.ScanFlags, timeout time.Duration, cb yara.ScanCallback) error
- func (yr *YaraRules) ScanMem(buf []byte, flags yara.ScanFlags, timeout time.Duration, cb yara.ScanCallback) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YaraRules ¶
type YaraRules struct { RulesPath string // contains filtered or unexported fields }
NOTE:::Do not expose the rules Instead add a wrapper here protected with mutex
func (*YaraRules) DefineVariable ¶
func (*YaraRules) ScanFileDescriptor ¶
Click to show internal directories.
Click to hide internal directories.