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

Method Make

otmongo/factory.go:20–26  ·  view source on GitHub ↗

Make creates *mongo.Client using a specific configuration entry.

(name string)

Source from the content-addressed store, hash-verified

18
19// Make creates *mongo.Client using a specific configuration entry.
20func (r Factory) Make(name string) (*mongo.Client, error) {
21 client, err := r.Factory.Make(name)
22 if err != nil {
23 return nil, err
24 }
25 return client.(*mongo.Client), nil
26}

Callers

nothing calls this directly

Calls 1

MakeMethod · 0.65

Tested by

no test coverage detected