Hyperlinkv0.9.0-beta.0

Gate

Gate.serveRemoteconstsrc/Gate.ts:965
<
  Self,
  I extends Schema.Top,
  A extends Schema.Top,
  E extends Schema.Top = Schema.Never,
  R = never
>(
  tag: HyperlinkTag<Self, InstanceSpec<I, A, E>, any>,
  config: LayerConfig<
    Schema.Schema.Type<I>,
    Schema.Schema.Type<A>,
    Schema.Schema.Type<E>,
    R
  >
): Layer.Layer<
  HandlerContextOf<InstanceSpec<I, A, E>> | Store.Storage,
  never,
  R
>

Serve this gate remotely (served-only) — RPC handlers without granting the local instance.

Soft-defaults Store.Storage. Override with Layer.provide / provideMerge(AppStore).

layers & servingStore.Storage
Source src/Gate.ts:96517 lines
export const serveRemote = <
  Self,
  I extends Schema.Top,
  A extends Schema.Top,
  E extends Schema.Top = typeof Schema.Never,
  R = never,
>(
  tag: HyperlinkTag<Self, InstanceSpec<I, A, E>, any>,
  config: LayerConfig<Schema.Schema.Type<I>, Schema.Schema.Type<A>, Schema.Schema.Type<E>, R>,
): Layer.Layer<HandlerContextOf<InstanceSpec<I, A, E>> | Store.Storage, never, R> =>
  withDefaultStoreBridge(
    Layer.unwrap(
      Effect.map(buildRunImpl(tag, config), (built) =>
        Hyperlink.serveRemoteDriver(tag, built),
      ),
    ),
  );
Referenced by 1 symbols