CompletableFuture<List<Endpoint>> endpoints(String serviceName, @Nullable String datacenter,
                                                @Nullable String filter) {
        requireNonNull(serviceName, "serviceName");
        return service(serviceName, datacenter, filter)
                .thenApply(nodes -> nodes.stream()
                                         .map(CatalogClient::toEndpoint)
                                         .filter(Objects::nonNull)
                                         .collect(toImmutableList()));
    }
Gets endpoint list by service name.
consul/src/main/java/com/linecorp/armeria/internal/consul/CatalogClient.java