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.
Platform and version are two questions that community will ask prior to provide support. Making it available internally and to the connector as well.
TODO: This always appear to return an empty string. I'm probably missing Something as msc->whoAmi().c_str() does actually contain a string, but it appears to not to be able to cgo barrier?
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()