Hyperlinkv0.8.0-beta.28

Hyperlink

Hyperlink.instanceconstsrc/Hyperlink.ts:3781
<Self, S extends Spec>(
  tag: HyperlinkTag<Self, S>,
  impl: WireServiceOf<S>
): HyperlinkInstance<S>

Pair a factory instance tag with its implementation, for Hyperlink.serveInstances.

Not how you serve a single custom resource on a shared node: this returns a HyperlinkInstance for the serveInstances family. To serve a custom Hyperlink.Tag alongside queues/processes, pass its Hyperlink.serve layer to Node.httpServer, then reach it with Hyperlink.client.

constructorsHyperlink.serveInstancesHyperlinkInstanceserveInstancesHyperlink.serveNode.httpServerHyperlink.client
Source src/Hyperlink.ts:37814 lines
const instance = <Self, S extends Spec>(
  tag: HyperlinkTag<Self, S>,
  impl: WireServiceOf<S>,
): HyperlinkInstance<S> => ({ key: tag.key, impl });