MCPcopy
hub / github.com/elastic/go-elasticsearch / WithContext

Method WithContext

esapi/api.indices.exists.go:204–208  ·  view source on GitHub ↗

WithContext sets the request context.

(v context.Context)

Source from the content-addressed store, hash-verified

202
203// WithContext sets the request context.
204func (f IndicesExists) WithContext(v context.Context) func(*IndicesExistsRequest) {
205 return func(r *IndicesExistsRequest) {
206 r.ctx = v
207 }
208}
209
210// WithAllowNoIndices - whether to allow (1) wildcard index expressions that match no indices and (2) requests where the final resolved set is empty..
211func (f IndicesExists) WithAllowNoIndices(v bool) func(*IndicesExistsRequest) {

Callers 1

DoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected