database

package
v0.0.0-...-a9081ec Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package database initialize all the needed database client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDatabase

func ConnectDatabase(ctx context.Context, logger *otelzap.Logger, conf *configs.Mariadb) *ent.Client

ConnectDatabase make connection to the database

func ConnectRedis

func ConnectRedis(ctx context.Context, logger *otelzap.Logger, conf *configs.Redis) *redis.Client

ConnectRedis make connection to the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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