database

package
Version: v0.0.0-...-7a7783f Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	*pgxpool.Pool
}

Postgres stores the connection to the connection pool

func NewPostgres

func NewPostgres(dbConfig config.PostgreSQLConfig) (*Postgres, error)

NewPostgres creates new Postgres connection using connection config

type Redis

type Redis struct {
	*redis.Client
}

Redis stores the connection to Redis

func NewRedis

func NewRedis(dbConfig config.RedisConfig) (*Redis, error)

NewRedis creates a connection to Redis using the given connection config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL