// NewClientWithCollections returns a new health check client containing the collections using the given service
NewClientWithCollections returns a new health check client containing the collections using the given service
// NewClientWithCollections returns a new health check client containing the collections using the given service
func NewClientWithCollections(mongoConnection *mongoDriver.MongoConnection, clientDatabaseCollection map[Database][]Collection) *CheckMongoClient {
	c := client{
		mongoConnection:    mongoConnection,
		databaseCollection: clientDatabaseCollection,
	}
	return &CheckMongoClient{
		client:           c,
		healthcheck:      c.healthcheck,
		checkCollections: c.checkCollections,
	}
}
func NewClientWithCollections ( mongoConnection * mongoDriver . MongoConnection , clientDatabaseCollection map [ Database ] [ ] Collection ) * CheckMongoClient { c := client { mongoConnection : mongoConnection , databaseCollection : clientDatabaseCollection , } return & CheckMongoClient { client : c , healthcheck : c . healthcheck , checkCollections : c . checkCollections , } }
NewClientWithCollections returns a new health check client containing the collections using the given service
NewClientWithCollections returns a new health check client containing the collections using the given service