method ConsulProvider.prototype.selfId
ConsulProvider.prototype.selfId(registration: SelfRegistration): string

The instance id used for both register and deregister.

Generated once per registration object rather than per call, because a fresh uuid on deregistration would target an id that was never registered.

Parameters

registration: SelfRegistration

The registration

Return Type

string

Its stable instance id

Usage

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