database

package
v0.0.0-...-89459e6 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() *mongo.Client

Client returns a MongoDB client ready to connect to the server at the configured address.

func Close

func Close()

Close closes connection on the MongoDB client, if it exists.

func Database

func Database(opts ...*options.DatabaseOptions) *mongo.Database

Database returns the taalapi database handle with given options, if any.

func ParseOperationError

func ParseOperationError(err error, msg string) models.APIError

ParseOperationError returns an API error value depending on the nature of the given error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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