database

package
v0.0.0-...-d87c99c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

We use this package to handle databases

We use this package to handle databases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyMongoDB

type MyMongoDB struct {
	// contains filtered or unexported fields
}

func MongoDB

func MongoDB(host, port, user, password string) (*MyMongoDB, error)

func (*MyMongoDB) Detele_database

func (self *MyMongoDB) Detele_database(database_name string) error

func (*MyMongoDB) Get_database

func (self *MyMongoDB) Get_database(database_name string) (*mongo.Database, error)

func (*MyMongoDB) List_database

func (self *MyMongoDB) List_database() ([]string, error)

func (*MyMongoDB) Stop

func (self *MyMongoDB) Stop()

type MyRedis_Type

type MyRedis_Type struct {
	Redis_client redis.Client
	Context      context.Context
	// contains filtered or unexported fields
}

func MyRedis

func MyRedis(host string, port string, database_number string) MyRedis_Type

func (*MyRedis_Type) Get

func (self *MyRedis_Type) Get(key string) (string, error)

func (*MyRedis_Type) Set

func (self *MyRedis_Type) Set(key string, value string, timeout_in_milliseconds int) error

func (*MyRedis_Type) Stop

func (self *MyRedis_Type) Stop()

Jump to

Keyboard shortcuts

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