database

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

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartConnection

func StartConnection(opts *Opts) (*mongo.Database, error)

StartConnection creates connection to a MongoDB database.

Types

type Opts

type Opts struct {
	Host     string
	Port     string
	Database string
	URI      string
}

Opts is the information to connnect to the database. If URI is set, it overwrites all other connection configuration.

Jump to

Keyboard shortcuts

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