--- internal helpers -------------------------------------------------------
(to elastictransport.Option)
| 179 | // --- internal helpers ------------------------------------------------------- |
| 180 | |
| 181 | func 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 |
no outgoing calls
no test coverage detected