Documentation ¶
Overview ¶
Package mongodb provides health checks for a MongoDB connection. This works on MongoDB as well as Microsoft Azure Cosmos DB.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Health ¶
func Health(componentID string, client *mongo.Client, timeout time.Duration, threshold time.Duration) health.ChecksProvider
Health returns a ChecksProvider for health checks about the process uptime. Note that it does not really return the process uptime, but the time since calling this function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.