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

Function withTransportOption

options.go:181–186  ·  view source on GitHub ↗

--- internal helpers -------------------------------------------------------

(to elastictransport.Option)

Source from the content-addressed store, hash-verified

179// --- internal helpers -------------------------------------------------------
180
181func withTransportOption(to elastictransport.Option) Option {
182 return Option{apply: func(o *clientOptions) error {
183 o.transportOptions = append(o.transportOptions, to)
184 return nil
185 }}
186}
187
188// resolvedOptions holds the resolved settings produced by applying client
189// options. It is used by the public constructors to build the final client

Callers 9

WithAPIKeyFunction · 0.85
WithBasicAuthFunction · 0.85
WithServiceTokenFunction · 0.85
WithCACertFunction · 0.85
WithRetryFunction · 0.85
WithCompressionFunction · 0.85
WithInstrumentationFunction · 0.85
WithLoggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected