Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Modsecurity ¶
type Modsecurity struct {
// contains filtered or unexported fields
}
func NewModsecurity ¶
func NewModsecurity() (*Modsecurity, error)
func (*Modsecurity) NewRuleSet ¶
func (m *Modsecurity) NewRuleSet() *RuleSet
func (*Modsecurity) SetServerLogCallback ¶
func (m *Modsecurity) SetServerLogCallback(callback func(string))
func (*Modsecurity) WhoAmI ¶
func (m *Modsecurity) WhoAmI() string
Return information about this ModSecurity version and platform.
type RuleSet ¶
type RuleSet struct {
// contains filtered or unexported fields
}
func (*RuleSet) NewTransaction ¶
Create a new transaction for a given configuration and ModSecurity core.
The transaction is the unit that will be used the inspect every request. It holds all the information for a given request.
Remember to cleanup the transaction when the transaction is complete using Cleanup()
Click to show internal directories.
Click to hide internal directories.