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

Function NewDefaultClient

elasticsearch.go:226–228  ·  view source on GitHub ↗

NewDefaultClient creates a new client with default options. It will use http://localhost:9200 as the default address. It will use the ELASTICSEARCH_URL environment variable, if set, to configure the addresses; use a comma to separate multiple URLs. Deprecated: Use [New] with no arguments instead.

()

Source from the content-addressed store, hash-verified

224//
225// Deprecated: Use [New] with no arguments instead.
226func NewDefaultClient() (*Client, error) {
227 return NewClient(Config{})
228}
229
230// NewClient creates a new client with configuration from cfg.
231//

Callers

nothing calls this directly

Calls 1

NewClientFunction · 0.70

Tested by

no test coverage detected