mongo

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoStorage

func NewMongoStorage(log *logrus.Logger, c *config.Config) (storage.Storage, error)

NewMongoStorage returns a Storage implementation for the given config backed by MongoDB. The config.MongoConf should be populated with a connection URI. Before returning a connection to the MongoDB instance is made and a Ping operation performed to verify the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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