Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckMongoClient ¶
type CheckMongoClient struct {
// contains filtered or unexported fields
}
CheckMongoClient provides a healthcheck.Client implementation for health checking the service
func NewClient ¶
func NewClient(mongoConnection *mongoDriver.MongoConnection) *CheckMongoClient
NewClient returns a new health check client using the given service
func NewClientWithCollections ¶
func NewClientWithCollections(mongoConnection *mongoDriver.MongoConnection, clientDatabaseCollection map[Database][]Collection) *CheckMongoClient
NewClientWithCollections returns a new health check client containing the collections using the given service
func (*CheckMongoClient) Checker ¶
func (c *CheckMongoClient) Checker(ctx context.Context, state *healthcheck.CheckState) error
Checker calls an api health endpoint and updates the provided CheckState accordingly
Click to show internal directories.
Click to hide internal directories.