data

package
v0.0.0-...-098fe98 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBHelper

type DBHelper struct {
}

DBHelper The database query helper

func NewDBHelper

func NewDBHelper() *DBHelper

NewDBHelper Inits new db helper

func (*DBHelper) GetRequestFirewallRules

func (h *DBHelper) GetRequestFirewallRules(targetID string) []*models.Rule

GetRequestFirewallRules Gets the firewall rule

func (*DBHelper) GetResponseFirewallRules

func (h *DBHelper) GetResponseFirewallRules(targetID string) []*models.Rule

GetResponseFirewallRules Gets the firewall rule

func (*DBHelper) GetTarget

func (h *DBHelper) GetTarget(domain string) *models.Target

GetTarget Reads the Target from database

func (*DBHelper) LogHTTPRequest

func (h *DBHelper) LogHTTPRequest(log *models.HTTPLog)

LogHTTPRequest ...

func (*DBHelper) LogMatchResult

func (h *DBHelper) LogMatchResult(
	ruleExecutionResult *models.RuleExecutionResult,
	ruleID string,
	target *models.Target,
	requestURI string,
	forResponse bool)

LogMatchResult ...

func (*DBHelper) LogThrottleRequest

func (h *DBHelper) LogThrottleRequest(ipAddress string)

LogThrottleRequest ...

Jump to

Keyboard shortcuts

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