method IServiceDiscovery.resolveUrl
IServiceDiscovery.resolveUrl(
serviceName: string,
path?: string,
options?: PickOptions
): Promise<string | null>

Formats IServiceDiscovery.pick's choice as an absolute URL.

Parameters

serviceName: string

Logical service name

optional
path: string

Path appended to the instance's origin

optional
options: PickOptions

Per-call strategy override

Return Type

Promise<string | null>

The URL, or null when the service has no instance

Usage

import { type IServiceDiscovery } from "common/src/index.ts";