MCPcopy Create free account
hub / github.com/Cyinx/einx / Close

Method Close

db/mongodb/mongodb.go:63–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (this *MongoDBMgr) Close() {
64 if this.session != nil {
65 this.session.DB("").Logout()
66 this.session.Close()
67 this.session = nil
68 slog.LogInfo("mongodb", "Disconnect mongodb url: ", this.dbcfg.String())
69 }
70}
71
72func (this *MongoDBMgr) Ping() error {
73 if this.session != nil {

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected