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

Function newConnectorLastSyncFunc

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

Source from the content-addressed store, hash-verified

27)
28
29func newConnectorLastSyncFunc(t Transport) ConnectorLastSync {
30 return func(body io.Reader, connector_id string, o ...func(*ConnectorLastSyncRequest)) (*Response, error) {
31 var r = ConnectorLastSyncRequest{Body: body, 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