Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Ping executes Elasticsearch ping request. // See: https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html Ping(ctx context.Context) error // Bulk executes Elasticsearch Bulk API request. // See: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html Bulk(ctx context.Context, reader io.Reader) (io.ReadCloser, error) // PrepareCreateOperation prepares insert operation definition for Bulk API query. PrepareCreateOperation(item sdk.Record) (metadata interface{}, payload interface{}, err error) // PrepareUpsertOperation prepares upsert operation definition for Bulk API query. PrepareUpsertOperation(key string, item sdk.Record) (metadata interface{}, payload interface{}, err error) // PrepareDeleteOperation prepares delete operation definition for Bulk API query. PrepareDeleteOperation(key string) (metadata interface{}, err error) }
Client describes Elasticsearch client interface
Click to show internal directories.
Click to hide internal directories.