none

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package none implements the built-in `none` graph-backend adapter (graph-backend-adapter-contract §13.1).

The `none` adapter is the null backend: it declares no note types and no edge types, and its impact radius returns the changed nodes themselves with no expansion (max_depth 0). It is the smallest adapter that proves the contract end-to-end — schema validation, registry resolution, lockfile init, and impact-radius routing all run against it without any real domain logic.

Index

Constants

View Source
const Name = "none"

Name is the adapter's short name.

Variables

This section is empty.

Functions

func Register

func Register(reg *registry.Registry) error

Register adds the `none` adapter to reg. It is the single registration entry point built-in wiring calls.

Types

type Adapter

type Adapter struct{}

Adapter is the built-in `none` adapter. The zero value is usable.

func New

func New() Adapter

New returns the `none` adapter.

func (Adapter) ImpactRadius

ImpactRadius returns the changed ids unchanged — the null impact radius (max_depth 0, no neighborhood expansion) of §13.1. nil input yields an empty (non-nil) result slice so callers can range without a nil guard.

func (Adapter) Name

func (a Adapter) Name() string

Name returns the adapter name.

func (Adapter) Schema

func (Adapter) Schema() registry.Schema

Schema parses and returns the embedded §13.1 schema. The embedded YAML is validated at load time; a malformed embed is a build-time-fixable bug, so Schema panics rather than returning an error (it cannot fail at runtime for a shipped binary).

Jump to

Keyboard shortcuts

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