util

package
v0.0.0-...-3b7a923 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandExecLogger

func CommandExecLogger(cmd *exec.Cmd) error

CommandExecLogger wrap exec.Command to log to stdoutPipe and stderrPipe

func DebugStruct

func DebugStruct(c interface{})

func Download

func Download(filepath string, uri string) (err error)

func GenerateID

func GenerateID() string

func GetCaller

func GetCaller() string

func GetEnv

func GetEnv(key, fallback string) string

func GetVersionEndpoint

func GetVersionEndpoint(router *chi.Mux, gitCommit string)

func InitHealthCheck

func InitHealthCheck(cfg *config.Configuration, mongoClient *mongo.Client, rabbitClient *amqp.Connection, rabbitmqUri string)

Run this on goroutine, since http server will block main goroutine

func MongoDBPingCheck

func MongoDBPingCheck(mongoClient *mongo.Client, timeout time.Duration) hc.Check

func RabbitPingCheck

func RabbitPingCheck(connection *amqp.Connection, rabbitUri string) hc.Check

func Upload

func Upload(uri string, values map[string]io.Reader) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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