Hyperlinkv0.8.0-beta.28

FleetHealth

FleetHealth.serveconstsrc/FleetHealth.ts:365
<Self>(
  tag: FleetHealthTag<Self>,
  options?: FleetHealthOptions
): Layer.Layer<
  | Handler<"status">
  | Self
  | Hyperlink.Local<Self>
  | Handler<"local">
  | Handler<"byNode">,
  never,
  Hyperlink.PeersId<Self> | Hyperlink.SelfNodeId<Self>
>

Serve and grant the local instance — counterpart to Hyperlink.serve.

FleetHealth.serve(MeshHealth, { readiness }).pipe(
  Layer.provide(Hyperlink.peersLayer(MeshHealth, DropletEast)),
)
layers & servingHyperlink.serve
export const serve = <Self>(
  tag: FleetHealthTag<Self>,
  options?: FleetHealthOptions,
) => resourceServe(tag, buildImpl(tag, options));