db

package
v0.0.0-...-6c7e677 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, envs *Environments) (*mongo.Database, error)

Connect - new connection

Types

type Environments

type Environments struct {
	Cluster  string `json:"cluster"`
	Database string `json:"database"`
	User     string `json:"user"`
	Password string `json:"password"`
	Mode     string `json:"mode"`
	Host     string `json:"host"`
}

Environments -

Jump to

Keyboard shortcuts

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