Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveSymbol ¶
ResolveSymbol accepts either a direct implementation or a pointer to one.
Types ¶
type BuildSpec ¶
type BuildSpec[T any] struct { LogPrefix string AppDir string CacheDir string TempDir string HostPackageDir string ClonePrefix string SymbolName string DefaultGitRef string Resolver SymbolResolver[T] }
BuildSpec describes how a runtime extension should be cloned, compiled, cached, and opened inside the host module.
type Loader ¶
type Loader[T any] struct { // contains filtered or unexported fields }
Loader compiles and loads runtime extensions using a shared clone/build/cache/open flow.
func (*Loader[T]) CompileAndLoad ¶
CompileAndLoad clones repoURL, compiles the extension, caches the .so by commit, and loads it.
func (*Loader[T]) LoadCached ¶
LoadCached loads a previously compiled extension from the shared cache.
type Registry ¶
type Registry[T any] struct { // contains filtered or unexported fields }
Registry is a threadsafe named registry for runtime extensions.
type SymbolResolver ¶
SymbolResolver converts a looked-up plugin symbol into the requested runtime type.
Click to show internal directories.
Click to hide internal directories.