configs

package
v0.0.0-...-2ef02f2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ConnectDB

func ConnectDB() *mongo.Client

func GetCollection

func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection

getting database collections

func GetEnvLimit

func GetEnvLimit() int64

func GetEnvLogin

func GetEnvLogin() (netID string, password string)

func GetEnvMongoURI

func GetEnvMongoURI() string

func GetOptionLimit

func GetOptionLimit(query *bson.M, c *gin.Context) (*options.FindOptions, error)

Returns *options.FindOptions with a limit and offset applied. Returns error if any

func GetPortString

func GetPortString() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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