Files
anubis-mirror/lib/policy/checkresult.go
2025-11-19 16:00:13 -05:00

22 lines
340 B
Go

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),
)
}