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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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