database

package
v0.0.0-...-0406d23 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client *typesense.Client
)
View Source
var (
	Database *mongo.Database
)
View Source
var (
	Redis *redis.Client
)

Functions

func ConnectDB

func ConnectDB() (*mongo.Client, error)

func ConnectRedis

func ConnectRedis() *redis.Client

func ConnectTypesense

func ConnectTypesense() *typesense.Client

func GetEmail

func GetEmail(ctx context.Context, code string) (string, error)

func SetEmail

func SetEmail(ctx context.Context, email string) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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