Documentation ¶
Index ¶
- Variables
- func GetMongoDBInstance(mongoConfigs config.Mongo) (*mongo.Database, error)
- func GetRedisDBInstance(redisConfigs config.Redis) *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" )
Functions ¶
func GetMongoDBInstance ¶
func GetRedisDBInstance ¶
func IsDuplicateKeyError ¶
func IsRowExistsError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.