references

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) builder.Jsonable

func ReplaceReferences added in v1.8.1

func ReplaceReferences(references config.RefMap, cb refFetcher)

ReplaceReferences swaps the reference store, bypassing the process-lifetime once semantics of SetReference. Long-lived embedders that execute many unrelated configs in a single process (e.g. the WASM playground, which never restarts the Go runtime between runs) call it before each run so every config gets exactly its own references instead of only ever seeing whichever config happened to run first. Not used by the native CLI/service/ MCP binaries, where SetReference's once-per-process semantics are intentional.

func SetReference

func SetReference(references config.RefMap, cb refFetcher)

Types

This section is empty.

Jump to

Keyboard shortcuts

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