Documentation
¶
Overview ¶
Package frameworkadapter identifies adapters implemented by Foundry itself.
Feature boundaries isolate application adapters in an owned goroutine so a panic or runtime.Goexit cannot escape. Framework adapters never call runtime.Goexit, so their I/O can use the cheaper in-goroutine panic boundary. Application codecs, loaders and handlers always remain isolated.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Call ¶
Call runs adapter I/O under the cheapest boundary that still contains every failure the adapter can produce: Invoke for framework adapters, Isolated for application adapters. Both wait for the callback's actual exit.
func Is ¶
Is reports whether adapter's concrete type is a framework-owned implementation. The marker alone is not enough: a type declared outside the framework (an application, plugin or external test package) that embeds a framework adapter inherits the method by promotion, yet its own overriding methods are application code, so it stays isolated. Only the concrete type's defining package is inspected; no value is copied or compared.
func IsFrameworkType ¶
IsFrameworkType reports whether a concrete type is defined by the framework. It does not trust promoted methods or execute application code. Callers must separately establish the required method contract.