link

package
v0.6.54 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 5 Imported by: 0

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) error

SetLive applies and sets a *config.Live[T] to v (backplanetest).

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