UNPKG

lemon-engine

Version:

Lemon Engine Module to Synchronize Node over DynamoDB + ElastiCache + Elasticsearch by [lemoncloud](https://lemoncloud.io)

29 lines (28 loc) 1.14 kB
/** * ElasticSearch Proxy Service Exports * - proxy call to elastic service. * * * * @author steve@lemoncloud.io * @date 2019-05-23 * @copyright (C) lemoncloud.io 2019 - All Rights Reserved. */ import { EnginePluggable, EnginePluginBuilder } from '../common/types'; export interface Elastic6Proxy extends EnginePluggable { /** * get the current endpoint address. */ endpoint: () => string; do_create_index_type: (index: string, type: string, options?: any) => any; do_delete_index_type: (index: string, type: string, options?: any) => any; do_create_item: (index: string, type: string, id: any, data: any) => any; do_push_item: (index: string, type: string, data: any, id?: any) => any; do_update_item: (index: string, type: string, id: any, data: any) => any; do_get_item: (index: string, type: string, id: any, data?: any) => any; do_delete_item: (index: string, type: string, id: any) => any; do_search_item: (index: string, type: string, param: any) => any; do_test_self: (that?: any) => any; } declare const maker: EnginePluginBuilder<Elastic6Proxy>; export default maker;