Hierarchy

  • ConsulService

Implements

Constructors

Properties

config: IConfig<any>
discoveryService: ConsulDiscoveryService
log: ILogger

Methods

  • Get connection params by service name.

    Parameters

    • serviceName: string

    Returns Promise<undefined | {
        host: string;
        port: number;
    }>

    Host and port to connection