Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

README

internal/model

Пакет реализует entity-per-file model store в workspace:

  • upsert/remove entity и edge;
  • alias/canonical ID resolution;
  • deterministic collision policy (.repo-<repo-slug>);
  • semantic guardrails (например, owner linkage).

Model layer является deterministic baseline surface и защищён golden/scenario тестами.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyReport

type ApplyReport struct {
	UpsertedEntities int
	UpsertedEdges    int
	RemappedIDs      map[string]string
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(ws workspace.Root) Store

func (Store) ApplySemanticSnapshot

func (s Store) ApplySemanticSnapshot(snapshot contracts.SemanticSnapshot) (ApplyReport, error)

func (Store) ListEdges

func (s Store) ListEdges() ([]contracts.Edge, error)

func (Store) ListEntities

func (s Store) ListEntities() ([]contracts.Entity, error)

Jump to

Keyboard shortcuts

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