configs

package
v0.0.0-...-51098ac Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB         = "upvotes"
	COLLECTION = "exchanges"
)

Variables

This section is empty.

Functions

func GetCollection

func GetCollection(collectionName *string) (*mongo.Collection, error)

getting database collections

func GetEnvVar

func GetEnvVar(key string) string

GetEnvVar returns an environment variable, given a key

func GetMongoClient

func GetMongoClient() (*mongo.Client, error)

GetMongoClient - Return mongodb connection to work with

func LoadEnv

func LoadEnv() error

LoadEnv loads a .env file to os.Environ()

Types

This section is empty.

Jump to

Keyboard shortcuts

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