Service
import type { Service } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.27.0/nats-base-client/internal_mod.ts";
interface Service extends ServiceGroup {
isStopped: boolean;
stopped: Promise<null | Error>;
info(): ServiceInfo;
ping(): ServiceIdentity;
reset(): void;
stats(): Promise<ServiceStats>;
stop(err?: Error): Promise<null | Error>;
}§Extends
§Properties
§Methods
§
info(): ServiceInfo
[src]Returns a service info for the service
§
ping(): ServiceIdentity
[src]Returns the identity used by this service
§
stats(): Promise<ServiceStats>
[src]Returns the stats for the service.