Registry
Defined in: core/src/registry.ts:100
Methods
Section titled “Methods”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ref |
string |
opts? |
ViewOptions |
Returns
Section titled “Returns”remove()
Section titled “remove()”remove(name): void;Defined in: core/src/registry.ts:111
Delete a connection. A chain that names it fails on its next call.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
Returns
Section titled “Returns”void
status()
Section titled “status()”status(): Record<string, ConnectionStatus>;Defined in: core/src/registry.ts:112
Returns
Section titled “Returns”Record<string, ConnectionStatus>
update()
Section titled “update()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
config |
ConnectionConfig |
Returns
Section titled “Returns”void