mongodb

package
v0.0.0-...-7c20d64 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CollectionHandler *mongo.Collection
View Source
var DatabaseHandler *mongo.Database
View Source
var PassHashKey string
View Source
var Sys_CollectionHandler *mongo.Collection

Functions

func Authenticate_user

func Authenticate_user(username string, password string) int

Authenticate user against DB entry Returns appropriate statusCodes

func ComputeHash

func ComputeHash(password string) string

func InitiateMongoDB

func InitiateMongoDB(m *mongo.Client) (*mongo.Collection, *mongo.Collection)

Types

type Config

type Config struct {
	Emails   []string `json:"emails"`
	Database DBConfig `json:"database"`
}

type DBConfig

type DBConfig struct {
	Name        string   `json:"name"`
	Collections []string `json:"collections"`
}

Jump to

Keyboard shortcuts

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