package
1.6.8
Repository: https://github.com/crowdsecurity/crowdsec.git
Documentation: pkg.go.dev

# Functions

And groups conditions with the AND operator.
FixedError is a hook returning a fixed error.
HasAddedFields is a condition validating `.AddedField` on fields.
HasClearedFields is a condition validating `.FieldCleared` on fields.
HasFields is a condition validating `.Field` on fields.
HasOp is a condition testing mutation operation.
If executes the given hook under condition.
NewChain creates a new chain of hooks.
Not negates a given condition.
On executes the given hook only for the given operation.
Or groups conditions with the OR operator.
Reject returns a hook that rejects all operations that match op.
Unless skips the given hook only for the given operation.

# Structs

Chain acts as a list of hooks and is effectively immutable.

# Type aliases

The AlertFunc type is an adapter to allow the use of ordinary function as Alert mutator.
The AllowListFunc type is an adapter to allow the use of ordinary function as AllowList mutator.
The AllowListItemFunc type is an adapter to allow the use of ordinary function as AllowListItem mutator.
The BouncerFunc type is an adapter to allow the use of ordinary function as Bouncer mutator.
Condition is a hook condition function.
The ConfigItemFunc type is an adapter to allow the use of ordinary function as ConfigItem mutator.
The DecisionFunc type is an adapter to allow the use of ordinary function as Decision mutator.
The EventFunc type is an adapter to allow the use of ordinary function as Event mutator.
The LockFunc type is an adapter to allow the use of ordinary function as Lock mutator.
The MachineFunc type is an adapter to allow the use of ordinary function as Machine mutator.
The MetaFunc type is an adapter to allow the use of ordinary function as Meta mutator.
The MetricFunc type is an adapter to allow the use of ordinary function as Metric mutator.