UNPKG

@qdrant/js-client-rest

Version:

This repository contains the REST client for the [Qdrant](https://github.com/qdrant/qdrant) vector search engine.

26 lines (25 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createClusterApi = void 0; function createClusterApi(client) { return { /** * Get information about the current state and composition of the cluster */ clusterStatus: client.path('/cluster').method('get').create(), /** * Get cluster information for a collection */ collectionClusterInfo: client.path('/collections/{collection_name}/cluster').method('get').create(), recoverCurrentPeer: client.path('/cluster/recover').method('post').create(), /** * Tries to remove peer from the cluster. Will return an error if peer has shards on it. */ removePeer: client.path('/cluster/peer/{peer_id}').method('delete').create({ force: true }), updateCollectionCluster: client .path('/collections/{collection_name}/cluster') .method('post') .create({ timeout: true }), }; } exports.createClusterApi = createClusterApi;