mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-10 18:48:44 +00:00
22 lines
347 B
Go
22 lines
347 B
Go
package policy
|
|
|
|
import (
|
|
"log/slog"
|
|
|
|
"github.com/TecharoHQ/anubis/lib/policy/config"
|
|
)
|
|
|
|
type CheckResult struct {
|
|
Name string
|
|
Rule config.Rule
|
|
Weight int
|
|
}
|
|
|
|
func (cr CheckResult) LogValue() slog.Value {
|
|
return slog.GroupValue(
|
|
slog.String("name", cr.Name),
|
|
slog.String("rule", string(cr.Rule)),
|
|
slog.Int("weight", cr.Weight),
|
|
)
|
|
}
|