Documentation ¶
Index ¶
- func CommandExecLogger(cmd *exec.Cmd) error
- func DebugStruct(c interface{})
- func Download(filepath string, uri string) (err error)
- func GenerateID() string
- func GetCaller() string
- func GetEnv(key, fallback string) string
- func GetVersionEndpoint(router *chi.Mux, gitCommit string)
- func InitHealthCheck(cfg *config.Configuration, mongoClient *mongo.Client, ...)
- func MongoDBPingCheck(mongoClient *mongo.Client, timeout time.Duration) hc.Check
- func RabbitPingCheck(connection *amqp.Connection, rabbitUri string) hc.Check
- func Upload(uri string, values map[string]io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandExecLogger ¶
CommandExecLogger wrap exec.Command to log to stdoutPipe and stderrPipe
func DebugStruct ¶
func DebugStruct(c interface{})
func GenerateID ¶
func GenerateID() string
func GetVersionEndpoint ¶
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 RabbitPingCheck ¶
func RabbitPingCheck(connection *amqp.Connection, rabbitUri string) hc.Check
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.