clients

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgreSQL

func NewPostgreSQL(config *viper.Viper, logger *logrus.Logger) (*pg.DB, error)

func NewPostgreSQLForMigrations added in v1.5.0

func NewPostgreSQLForMigrations(config *viper.Viper) (*sql.DB, error)

NewPostgreSQLForMigrations is a connection that is used for migrations. Migrations are implemented with `goose`, which supports only `*sql.DB`.

func NewRedis

func NewRedis(config *viper.Viper) (*redis.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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