package
0.0.0-20230719143739-37de26ce6741
Repository: https://github.com/gobench-io/gobench.git
Documentation: pkg.go.dev
# Functions
And groups conditions with the AND operator.
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.
# Type aliases
The ApplicationFunc type is an adapter to allow the use of ordinary function as Application mutator.
Condition is a hook condition function.
The CounterFunc type is an adapter to allow the use of ordinary function as Counter mutator.
The GaugeFunc type is an adapter to allow the use of ordinary function as Gauge mutator.
The GraphFunc type is an adapter to allow the use of ordinary function as Graph mutator.
The GroupFunc type is an adapter to allow the use of ordinary function as Group mutator.
The HistogramFunc type is an adapter to allow the use of ordinary function as Histogram mutator.
The MetricFunc type is an adapter to allow the use of ordinary function as Metric mutator.
The TagFunc type is an adapter to allow the use of ordinary function as Tag mutator.