databases

package
v0.0.0-...-364f0b1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	Database string
	Client   *mongo.Client
}

func ConnectToMongoDB

func ConnectToMongoDB(ctx context.Context, user, password, host, database, port string) (*MongoDB, error)

Connects to a running MongoDB instance

type RedisCache

type RedisCache struct {
	Client *redis.Client
}

func ConnectToRedis

func ConnectToRedis(ctx context.Context, password, host, port string) (*RedisCache, error)

Jump to

Keyboard shortcuts

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