This commit is contained in:
matiashik committed 2026-05-01 13:50:38 +00:00
commit 37107940ef
654 files changed
+67122

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
package policy
import (
"log/slog"
"github.com/TecharoHQ/anubis/lib/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),
)
}