autocomply

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package autocomply provides automated protocol compliance management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Protocol   string      `json:"protocol"`
	Rules      []Rule      `json:"rules"`
	Violations []Violation `json:"violations"`
	Score      int         `json:"score"`
}

Report represents a compliance report.

func Check

func Check(protocol string, rules []Rule) *Report

Check checks a protocol against compliance rules.

func (*Report) GenerateReport

func (r *Report) GenerateReport() string

GenerateReport generates a formatted compliance report.

type Rule

type Rule struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Standard    string `json:"standard"`
	Severity    string `json:"severity"` // critical, high, medium, low
	Description string `json:"description"`
}

Rule represents a compliance rule.

func DefaultRules

func DefaultRules() []Rule

DefaultRules returns default compliance rules.

type Violation

type Violation struct {
	RuleID  string `json:"rule_id"`
	Field   string `json:"field"`
	Message string `json:"message"`
	Fix     string `json:"fix_suggestion"`
}

Violation represents a compliance violation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL