Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReportDef ¶
type ReportDef struct { // whether its a warning or error Method string `json:"method,omitempty" toml:"method,omitempty"` Path string `json:"path,omitempty" toml:"path,omitempty"` Message string `json:"message" toml:"message"` Headers []Headers `json:"headers,omitempty" toml:"headers,omitempty"` Metadata map[string]any `json:"metadata,omitempty" toml:"metadata,omitempty"` }
type ReportManager ¶
func New ¶
func New() ReportManager
func (ReportManager) GetTotalScore ¶
func (r ReportManager) GetTotalScore() []Score
func (ReportManager) PushReport ¶
func (r ReportManager) PushReport(ruleName string, data ReportDef)
func (ReportManager) SetScore ¶
func (r ReportManager) SetScore(ruleName string, score Score)
Click to show internal directories.
Click to hide internal directories.