db

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// database names in the config file
	POSTGRES = "postgres"
	MONGO    = "mongo"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	Mongo *mongo.Client
	Pg    *pgx.Conn
}

func Connect

func Connect(ctx context.Context, conf *config.Config) (*Clients, error)

Connect connects to the database and returns the connection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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