Documentation
¶
Index ¶
- func ConnectClubsDB() *sql.DB
- func ConnectDB() *mongo.Client
- func GetAggregateLimit(query *bson.M, c *gin.Context) (map[string]bson.D, error)
- func GetClubsDBUri() string
- func GetCollection(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
- type DBSingleton
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectClubsDB ¶
func GetAggregateLimit ¶
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 GetEnvMongoURI ¶
func GetEnvMongoURI() string
func GetOptionLimit ¶
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
}
Click to show internal directories.
Click to hide internal directories.