connector

package
v0.0.0-...-4822ebe Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BinanceClient *binance.Client

Redis global variable for access

View Source
var DB *gorm.DB

DB global variable to access gorm

View Source
var EsClient *elasticsearch.Client

Elastic search global variable for access

View Source
var RabbitMQConn *amqp.Connection

Redis global variable for access

Functions

func CloseMongoConn

func CloseMongoConn() *error

func CloseRabbitMQConn

func CloseRabbitMQConn() *error

func CloseRedisConn

func CloseRedisConn() error

func GetESClient

func GetESClient() *elasticsearch.Client

func GetMongoDBClient

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

func GetRdbmsDB

func GetRdbmsDB() *gorm.DB

GetRdbmsDB - get a connection

func GetRedisClient

func GetRedisClient() (*redis.Client, error)

func InitBinanceConn

func InitBinanceConn() error

func InitESConnection

func InitESConnection() *error

func InitMongoDBConn

func InitMongoDBConn() error

func InitRabbitMQConn

func InitRabbitMQConn() *error

func InitRdbmsDB

func InitRdbmsDB() *gorm.DB

InitRdbmsDB - function to initialize db

func InitRedisConn

func InitRedisConn() error

func OpenCollection

func OpenCollection(collectionName string) (*mongo.Collection, error)

func PingMongoConn

func PingMongoConn() error

func PingRedisConn

func PingRedisConn() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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