tsbridge

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package tsbridge hands the version-agnostic document model from the root package to the tsgen subpackage. The root package assigns Generate at init; tsgen calls it. The indirection exists so the model never becomes public API surface — outside this module the variable is unreachable.

Index

Constants

This section is empty.

Variables

View Source
var Generate func(mux any, consume func(spec.SpecInput) []byte) ([]byte, error)

Generate builds the document model for a *stdocs.Mux (typed any to avoid an import cycle) and runs consume on it UNDER THE BUILD LOCK — the model holds the registry's live operation pointers, which concurrent builds mutate in place, so reading them outside the lock races. It shares Mux.JSON's fail-fast surface: tag panics and validation errors fire here the same way.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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