Versions in this module Expand all Collapse all v0 v0.1.2 Aug 6, 2021 v0.1.1 Jul 8, 2021 Changes in this version + var LOGGER = logging.MustGetLogger("database") + func InitializeAtlasConnection(username string, password string, id string) (*mongo.Client, error) + func ParseResult(cursor *mongo.Cursor, ctx context.Context) ([]byte, error) + type MongoClient struct + Session *mongo.Client + func InitializeIbmCloudConnection() (*MongoClient, error) + func (client *MongoClient) GetCollection() (*mongo.Collection, context.Context) + func (client *MongoClient) GetSpecificCollection(dbName, dbCollection string) (*mongo.Collection, context.Context) + type MongoDBConnect struct + func InitializeConnection(addrs []string, timeout int, authDatabase string, username string, ...) (conn MongoDBConnect, err error) + func (mongoDBConnect MongoDBConnect) CloseSession() + func (mongoDBConnection MongoDBConnect) GetCollection(session *mgo.Session, collectionName string) (collection *mgo.Collection) + func (mongoDBConnection MongoDBConnect) GetSocketConn() (session *mgo.Session) + type PaymentData struct + CreatedTimeStamp int64 + InstructionID *string + ResId *string + TxData *string + TxDetail *transaction.Payment + TxDetail64 *string + TxStatus *string + UpdatedTimeStamp int64 + type PostgreDatabaseClient struct + Dbname string + Host string + Password string + Port int + Tablename string + User string + func (dbc *PostgreDatabaseClient) CloseConnection() + func (dbc *PostgreDatabaseClient) CreateConnection() error + func (dbc *PostgreDatabaseClient) CreateTx(input *PaymentData) error + func (dbc *PostgreDatabaseClient) GetTx(instructionId string) (*PaymentData, error) + func (dbc *PostgreDatabaseClient) UpdateTx(input *PaymentData) error