certify

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: 4 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 certify provides protocol compliance certification framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCertificate

func FormatCertificate(cert *Certificate) string

FormatCertificate formats a certificate as text.

Types

type Certificate

type Certificate struct {
	Protocol  string       `json:"protocol"`
	Level     Level        `json:"level"`
	Standard  string       `json:"standard"` // "IETF", "IEEE", "3GPP", "custom"
	IssuedAt  time.Time    `json:"issued_at"`
	ExpiresAt time.Time    `json:"expires_at"`
	Tests     []TestResult `json:"tests"`
	PassRate  float64      `json:"pass_rate"`
}

Certificate represents a protocol compliance certificate.

type Certifier

type Certifier struct{}

Certifier runs compliance certification tests.

func NewCertifier

func NewCertifier() *Certifier

NewCertifier creates a new certifier.

func (*Certifier) Certify

func (c *Certifier) Certify(s *schema.ProtocolSchema, standard string) *Certificate

Certify runs certification tests on a protocol schema.

type Level

type Level string

Level represents certification level.

const (
	Bronze Level = "Bronze"
	Silver Level = "Silver"
	Gold   Level = "Gold"
)

type TestResult

type TestResult struct {
	Name    string `json:"name"`
	Passed  bool   `json:"passed"`
	Details string `json:"details"`
}

TestResult represents a single certification test result.

Jump to

Keyboard shortcuts

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