db

package
v0.0.0-...-ce46fae Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Db

func Db() *mongo.Database

Db returns a pointer to the database that is being used.

func Init

func Init(dbURI string) func(ctx context.Context) error

Init initializes the database service for the application. In the case of an initialization error, the application will exit with a error code 1. This is because the database service is needed for persisting data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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