Module: vertx-service-discovery-js/http_endpoint

Classes

HttpEndpoint

Methods

(static) HttpEndpoint.createRecord(name, ssl, host, port, root, metadata) → {Object}

Same as HttpEndpoint#createRecord but let you configure whether or not the service is using https.
Parameters:
Name Type Description
name string the service name
ssl boolean whether or not the service is using HTTPS
host string the host (IP or DNS name), it must be the _public_ IP / name
port number the port, it must be the _public_ port
root string the path of the service, "/" if not set
metadata Object additional metadata
Source:
Returns:
the created record
Type
Object

(static) HttpEndpoint.getClient(discovery, filter, conf, resultHandler)

Convenient method that looks for a HTTP endpoint and provides the configured . The async result is marked as failed is there are no matching services, or if the lookup fails. This method accepts a configuration for the HTTP client.
Parameters:
Name Type Description
discovery ServiceDiscovery The service discovery instance
filter todo The filter
conf Object the configuration of the client
resultHandler function The result handler
Source:

(static) HttpEndpoint.getWebClient(discovery, filter, conf, resultHandler)

Convenient method that looks for a HTTP endpoint and provides the configured . The async result is marked as failed is there are no matching services, or if the lookup fails. This method accepts a configuration for the HTTP client.
Parameters:
Name Type Description
discovery ServiceDiscovery The service discovery instance
filter todo The filter
conf Object the configuration of the client
resultHandler function The result handler
Source: