package
2.3.0
Repository: https://github.com/elastic/go-docappender.git
Documentation: pkg.go.dev

# Functions

AssertOTelMetrics asserts OTel metrics using a closure.
DecodeBulkRequest decodes a /_bulk request's body, returning the decoded documents and a response body.
DecodeBulkRequestWithStats decodes a /_bulk request's body, returning the decoded documents and a response body and stats about request.
DecodeBulkRequestWithStatsAndDynamicTemplates decodes a /_bulk request's body, returning the decoded documents and a response body and stats about request, and per-request dynamic templates.
HandleBulk registers bulkHandler with mux for handling /_bulk requests, wrapping bulkHandler to conform with go-elasticsearch version checking.
NewAssertCounter returns a function that canbe used to assert counter metrics.
NewMockElasticsearchClient returns an elasticsearch.Client which sends /_bulk requests to bulkHandler.
NewMockElasticsearchClientConfig starts an httptest.Server, and returns an elasticsearch.Config which sends /_bulk requests to bulkHandler.

# Constants

TimestampFormat holds the time format for formatting timestamps according to Elasticsearch's strict_date_optional_time date format, which includes a fractional seconds component.

# Structs

No description provided by the author