modsecurity

package module
v0.0.0-...-34c9f54 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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) AddFile

func (r *RuleSet) AddFile(path string) error

func (*RuleSet) AddRules

func (r *RuleSet) AddRules(rules string) error

func (*RuleSet) NewTransaction

func (r *RuleSet) NewTransaction(remoteAddr, localAddr string) (*transaction, error)

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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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