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

Method WithContext

esapi/api.cluster.info.go:174–178  ·  view source on GitHub ↗

WithContext sets the request context.

(v context.Context)

Source from the content-addressed store, hash-verified

172
173// WithContext sets the request context.
174func (f ClusterInfo) WithContext(v context.Context) func(*ClusterInfoRequest) {
175 return func(r *ClusterInfoRequest) {
176 r.ctx = v
177 }
178}
179
180// WithPretty makes the response body pretty-printed.
181func (f ClusterInfo) WithPretty() func(*ClusterInfoRequest) {

Callers 1

DoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected