MCPcopy Create free account
hub / github.com/DoNewsCode/core / Factory

Struct Factory

otes/factory.go:15–17  ·  view source on GitHub ↗

Factory is a *di.Factory that creates *elastic.Client using a specific configuration entry.

Source from the content-addressed store, hash-verified

13// Factory is a *di.Factory that creates *elastic.Client using a specific
14// configuration entry.
15type Factory struct {
16 *di.Factory
17}
18
19// Make creates *elastic.Client using a specific configuration entry.
20func (r Factory) Make(name string) (*elastic.Client, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected