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

Function WithTransportOptions

options.go:172–177  ·  view source on GitHub ↗

--- Transport passthrough -------------------------------------------------- WithTransportOptions appends raw transport options for settings not covered by the convenience helpers above. Options are applied in order after all client-level options have been resolved.

(opts ...elastictransport.Option)

Source from the content-addressed store, hash-verified

170// by the convenience helpers above. Options are applied in order after all
171// client-level options have been resolved.
172func WithTransportOptions(opts ...elastictransport.Option) Option {
173 return Option{apply: func(o *clientOptions) error {
174 o.transportOptions = append(o.transportOptions, opts...)
175 return nil
176 }}
177}
178
179// --- internal helpers -------------------------------------------------------
180

Callers 15

TestNew_WithBasicAuthFunction · 0.85
TestNew_WithAPIKeyFunction · 0.85
TestNew_MetaHeaderFunction · 0.85
TestNewTyped_MetaHeaderFunction · 0.85
TestNew_CloseFunction · 0.85
TestNewBase_CloseFunction · 0.85
TestNewTyped_CloseFunction · 0.85
TestClientInterfaceFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestNew_WithBasicAuthFunction · 0.68
TestNew_WithAPIKeyFunction · 0.68
TestNew_MetaHeaderFunction · 0.68
TestNewTyped_MetaHeaderFunction · 0.68
TestNew_CloseFunction · 0.68
TestNewBase_CloseFunction · 0.68
TestNewTyped_CloseFunction · 0.68
TestClientInterfaceFunction · 0.68