corpus

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxJSONBytes = 4 << 20

Variables

This section is empty.

Functions

func ReadJSON

func ReadJSON(path string) ([]byte, error)

Types

type Catalog

type Catalog struct {
	Entries []Entry
	SHA256  string
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*Catalog, error)

func (*Catalog) Close

func (c *Catalog) Close() error

func (*Catalog) Documents

func (c *Catalog) Documents(entry Entry) ([]spam.Document, error)

type Document

type Document struct {
	Path   string `json:"path"`
	Member string `json:"member"`
}

type Entry

type Entry struct {
	Registry   string     `json:"registry"`
	Name       string     `json:"name"`
	Version    string     `json:"version"`
	Label      string     `json:"label"`
	Group      string     `json:"evaluation_group"`
	SplitGroup string     `json:"split_group"`
	Documents  []Document `json:"documents"`
}

func (Entry) PURL

func (e Entry) PURL() string

Jump to

Keyboard shortcuts

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