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

Function newConnectorGetFunc

esapi/api.connector.get.go:29–42  ·  view source on GitHub ↗
(t Transport)

Source from the content-addressed store, hash-verified

27)
28
29func newConnectorGetFunc(t Transport) ConnectorGet {
30 return func(connector_id string, o ...func(*ConnectorGetRequest)) (*Response, error) {
31 var r = ConnectorGetRequest{ConnectorID: connector_id}
32 for _, f := range o {
33 f(&r)
34 }
35
36 if transport, ok := t.(Instrumented); ok {
37 r.Instrument = transport.InstrumentationEnabled()
38 }
39
40 return r.Do(r.ctx, t)
41 }
42}
43
44// ----- API Definition -------------------------------------------------------
45

Callers 1

NewFunction · 0.85

Calls 2

DoMethod · 0.65

Tested by

no test coverage detected