configs

package
v0.0.0-...-163b3eb Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectClubsDB

func ConnectClubsDB() *sql.DB

func ConnectDB

func ConnectDB() *mongo.Client

func GetAggregateLimit

func GetAggregateLimit(query *bson.M, c *gin.Context) (map[string]bson.D, error)

Returns the offsets and limit for pagination stage for aggregate endpoints pipeline

func GetClubsDBUri

func GetClubsDBUri() string

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. Produces an error if user-provided offset isn't able to be parsed.

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