checkers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

type Mongo struct {
	// contains filtered or unexported fields
}

Mongo implements the ICheckable interface

func NewMongo

func NewMongo(config *MongoConfig) (*Mongo, error)

NewMongo creates a new MongoDB database checker

func (*Mongo) Status

func (mc *Mongo) Status() (interface{}, error)

Status checks MongoDB connection status

type MongoConfig

type MongoConfig struct {
	Pinger MongoPinger
}

MongoConfig configuration for MongoDB database check

type MongoPinger

type MongoPinger interface {
	Ping(ctx context.Context, rp *readpref.ReadPref) error
}

MongoPinger an interface that allows direct pinging of the database

Jump to

Keyboard shortcuts

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