utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMysqlConnection

func GetMysqlConnection(ctx context.Context, user, password, host, port, database string, timeout time.Duration) (*sql.DB, error)

func GetPostgresDsn

func GetPostgresDsn(host, user, password, port, database, sslmode string) string

GetPostgresDsn generates

func Launch added in v1.0.0

func Launch(logger logger.AppLogger, wg *sync.WaitGroup, runnables ...runnable.Runnable)

func Notify

func Notify()

func PostgresConnection

func PostgresConnection(host, user, password, port, database, sslmode string) (*sql.DB, error)

PostgresConnection connects to postgres and if it does't connect panics

Types

This section is empty.

Jump to

Keyboard shortcuts

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