Versions in this module Expand all Collapse all v0 v0.0.1 May 13, 2023 Changes in this version + type Mongo struct + func (m *Mongo) Disconnect() error + func (m *Mongo) FindOne(collection string, filter interface{}) *mongo.SingleResult + func (m *Mongo) FindOneAndDelete(collection string, filter interface{}) *mongo.SingleResult + func (m *Mongo) Upsert(collection string, filter interface{}, update interface{}) *mongo.SingleResult + type MongoImpl interface + Disconnect func() error + FindOne func(collection string, filter interface{}) *mongo.SingleResult + FindOneAndDelete func(collection string, filter interface{}) *mongo.SingleResult + Upsert func(collection string, filter interface{}, update interface{}) *mongo.SingleResult + func Setup(uri string, database string) (MongoImpl, error)