Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ServicesAPI

import type { ServicesAPI } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.27.0/nats-base-client/internal_mod.ts";
interface ServicesAPI {
add(config: ServiceConfig): Promise<Service>;
client(opts?: RequestManyOptions, prefix?: string): ServiceClient;
}

§Methods

§
add(config: ServiceConfig): Promise<Service>
[src]

Adds a Service

@param config
§
client(opts?: RequestManyOptions, prefix?: string): ServiceClient
[src]

Returns a ServiceClient that can be used to interact with the observability aspects of the service (discovery, monitoring)

@param opts
@param prefix