Documentation ¶
Index ¶
- func RegisterSuricataRuleLoader(h SuricataRuleLoaderType)
- type Group
- func (g *Group) FeedFrame(raw []byte)
- func (g *Group) FeedHTTPFlow(src, dst string, srcPort, dstPort int, req *http.Request, rsp *http.Response)
- func (g *Group) FeedHTTPFlowBytes(req, rsp []byte)
- func (g *Group) FeedHTTPRequestBytes(reqBytes []byte)
- func (g *Group) FeedHTTPResponseBytes(rsp []byte)
- func (g *Group) LoadRule(r *rule.Rule)
- func (g *Group) LoadRules(r ...*rule.Rule)
- func (g *Group) LoadRulesWithQuery(query string) error
- func (g *Group) SetLoader(loader SuricataRuleLoaderType)
- func (g *Group) Wait()
- type GroupOption
- type HttpFlow
- type Matcher
- type SuricataRuleLoaderType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSuricataRuleLoader ¶ added in v1.2.7
func RegisterSuricataRuleLoader(h SuricataRuleLoaderType)
Types ¶
type Group ¶ added in v1.2.7
type Group struct { HTTPMatcher []*sync.Pool OrdinaryMatcher []*sync.Pool // contains filtered or unexported fields }
Group is a group of rules
func NewGroup ¶ added in v1.2.7
func NewGroup(opt ...GroupOption) *Group
func (*Group) FeedHTTPFlow ¶ added in v1.2.7
func (*Group) FeedHTTPFlowBytes ¶ added in v1.2.7
func (*Group) FeedHTTPRequestBytes ¶ added in v1.2.7
func (*Group) FeedHTTPResponseBytes ¶ added in v1.2.7
func (*Group) LoadRulesWithQuery ¶ added in v1.2.7
func (*Group) SetLoader ¶ added in v1.2.7
func (g *Group) SetLoader(loader SuricataRuleLoaderType)
type GroupOption ¶ added in v1.2.7
type GroupOption func(group *Group)
func WithGroupOnMatchedCallback ¶ added in v1.2.7
func WithGroupOnMatchedCallback(cb func(packet gopacket.Packet, match *rule.Rule)) GroupOption
type HttpFlow ¶ added in v1.2.7
type HttpFlow struct { ReqInstance *http.Request Src string SrcPort int Dst string DstPort int Req []byte Rsp []byte // contains filtered or unexported fields }
func (*HttpFlow) ToRequestPacket ¶ added in v1.2.7
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func (*Matcher) MatchHTTPFlow ¶ added in v1.2.7
Click to show internal directories.
Click to hide internal directories.