interface StaticDiscoveryOptions
extends CommonDiscoveryOptions
Since 0.2.0

The 'static' arm — a literal instance list, with no backend at all.

Properties

readonly
provider: "static"

Discriminant.

readonly
services: Readonly<Record<string, readonly StaticServiceDefinition[]>>

Service name to its instances. An unknown name resolves to [].

readonly
optional
watchIntervalMs: number

Milliseconds between watch() polls.

The list is immutable by construction, so a static watch fires once with it and never again — this exists so the option is uniform across the two poll-based arms, and the static watch reads it only to schedule that first delivery on the next tick.

Usage

import { type StaticDiscoveryOptions } from "service-discovery-plugin/src/index.ts";