Documentation ¶
Index ¶
- Variables
- func ConfigureCollections(db *mongo.Database)
- func GetMongoDBInstance(uri, dbName string) (*mongo.Database, error)
- func GetMongoDBTestInstance(callback func(db *mongo.Database))
- func GetRedisDBInstance(redisConfigs config.Redis) *redis.Client
- func GetRedisTestInstance(callback func(redisClient *redis.Client))
- func IsDuplicateKeyError(err error) bool
- func IsRowExistsError(err error) bool
- func NewMongoDBConnectionString(host string, port int, username string, password string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UsersCollection = "users" ChatsCollection = "chats" MessagesCollection = "messages" AuthCollection = "user_auth" )
Functions ¶
func ConfigureCollections ¶
func GetMongoDBTestInstance ¶
func GetRedisDBInstance ¶
func GetRedisTestInstance ¶
func GetRedisTestInstance(callback func(redisClient *redis.Client))
func IsDuplicateKeyError ¶
func IsRowExistsError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.