Hierarchy

  • IDiscoverable
    • IConsulService

Methods

  • Get connection params by service name.

    Parameters

    • serviceName: string

    Returns Promise<undefined | IConnectionParams>

    Host and port to connection

  • Get value by key from storage

    Parameters

    • key: string

    Returns Promise<INormalizedConsulKvValue>

    Value by key

  • Register service in consul.

    Returns IPromise<any, any>

  • Set key-value in storage

    Parameters

    • data: IConsulKvSetOptions

    Returns IPromise<boolean, any>