health

package
v3.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 5 Imported by: 9

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

type Collection

type Collection string

Collection a list of mongo types

type Database

type Database string

Database a list of mongo types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL