ready

package
v0.0.0-...-d841f61 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abort

func Abort(err error)

Abort log.Fatalf() when err != nil

func Check

func Check(checker func() error, name string, retryDelay time.Duration, retries int) error

Check calls checker function for a job to do. name is a dispaly string retryDelay is the time to sleep before doing another attempt retries is the max number of tries to attempt

func CheckAMQP

func CheckAMQP() error

CheckAMQP ...

func CheckInflux

func CheckInflux() error

CheckInflux ...

func CheckMongo

func CheckMongo() error

CheckMongo connects to mongo with mongo.Timeout

func CheckRedis

func CheckRedis() error

CheckRedis ...

func Timeout

func Timeout(t time.Duration)

Timeout is to be ran by a go routine, so when the duration goes out, timeout will call log.Fatal

Types

This section is empty.

Jump to

Keyboard shortcuts

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