Skip to content

Registry

Defined in: core/src/registry.ts:100

get(ref, opts?): Provider;

Defined in: core/src/registry.ts:106

A provider for a chain name, a "conn/model" ref or a bare "conn". Keep it as long as you like: it looks its chain up on every call, so update reaches it. Throws on a name it doesn’t know.

Parameter Type
ref string
opts? ViewOptions

Provider


remove(name): void;

Defined in: core/src/registry.ts:111

Delete a connection. A chain that names it fails on its next call.

Parameter Type
name string

void


status(): Record<string, ConnectionStatus>;

Defined in: core/src/registry.ts:112

Record<string, ConnectionStatus>


update(name, config): void;

Defined in: core/src/registry.ts:109

Add a connection, or replace one. An equal config changes nothing, so calling this on every request is cheap.

Parameter Type
name string
config ConnectionConfig

void