health

package
v0.0.0-...-efbd42f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

View Source
const (
	InfluxStatusOK = "pass"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check func(context.Context) error

func Influx

func Influx(client influxdb2.Client) Check

Influx do a healtheck in influx Cloud version.

func InfluxOSS

func InfluxOSS(client influxdb2.Client) Check

InfluxOSS do a healtheckIN influx OSS version.

func Mongo

func Mongo(db *mongo.Database) Check

func Redis

func Redis(client *redis.Client) Check

Redis does a ping.

func SNS

func SNS(config aws.Config, url string) Check

func SQS

func SQS(config aws.Config, url string) Check

type HealthCheck

type HealthCheck struct {
	Status string `json:"status"`
}

type ReadyCheck

type ReadyCheck struct {
	Ready string `json:"ready"`
}

Jump to

Keyboard shortcuts

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