configs

package
v0.0.0-...-e39c697 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB() *mongo.Client

func GetCollection

func GetCollection(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

type DBSingleton

type DBSingleton struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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