Documentation
¶
Overview ¶
Package sigolyze provides interface to quick signature-based substring searching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
Compiler stores all pre-compiled signatures
func (*Compiler) LoadSignature ¶
LoadSignature loads new signature to compiler and compiles it
func (*Compiler) LoadSignatureFromJson ¶
LoadSignatureFromJson is warpper around LoadSignatureFrom to load signature from .json file
type Pattern ¶
type Signature ¶
type Signature struct {
Name string `json:"name"`
Patterns []Pattern `json:"patterns"`
Tags []string `json:"tags"`
Meta []MetaInfo `json:"meta"`
Matcher *ahocorasick.Matcher
// contains filtered or unexported fields
}
Signature contains pre-compiled ahocorasick mather and regex strings as well as some metainforamtion to define signature.
func Match ¶
Match searches matches in given data with all compiler's signatures. It returns all matched signatures.