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

Function newConnectorCheckInFunc

esapi/api.connector.check_in.go:28–41  ·  view source on GitHub ↗
(t Transport)

Source from the content-addressed store, hash-verified

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

Callers 1

NewFunction · 0.85

Calls 2

DoMethod · 0.65

Tested by

no test coverage detected