Documentation ¶
Index ¶
- Variables
- func ConnectDB() *mongo.Client
- func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection
- func GetEnvLimit() int64
- func GetEnvLogin() (netID string, password string)
- func GetEnvMongoURI() string
- func GetOptionLimit(query *bson.M, c *gin.Context) (*options.FindOptions, error)
- func GetPortString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mongo.Client = ConnectDB()
Functions ¶
func GetCollection ¶
func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection
getting database collections
func GetEnvLimit ¶
func GetEnvLimit() int64
func GetEnvLogin ¶
func GetEnvMongoURI ¶
func GetEnvMongoURI() string
func GetOptionLimit ¶
Returns *options.FindOptions with a limit and offset applied. Returns error if any
func GetPortString ¶
func GetPortString() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.