Documentation
¶
Overview ¶
Package link lets SDK packages reach what public types keep private: the node behind a deps.Scope. deps installs the accessor at init.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APIs struct { Decl func(d any) (*backplanev1.API, error) Files func(d any) *routes.SchemaFiles GRPC func(opts any) routes.Managed HTTP func(opts any) routes.Managed WS func(opts any) routes.Managed }
APIs extracts what the public api package keeps private.
View Source
var ConfigState func(rt any) configrt.State
ConfigState returns the SDK view of a *config.Runtime[C].
View Source
var MountWS func(svc any, prefix string, h http.Handler, services []string, spec routes.Managed)
MountWS serves a ws-proto endpoint on a *backplane.Service.
View Source
var NodeOf func(scope any) *node.Node
NodeOf returns the node a deps.Scope wraps, or nil for a zero scope.
View Source
var Scope func(n *node.Node) any
Scope wraps a node as a deps.Component; the SDK uses it for the root.
View Source
var SetLive func(live, v any)
SetLive sets a *config.Live[T] to v (backplanetest).
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.