mongo

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 3 Imported by: 0

README

Nibbler Mongo

A Nibbler Mongo extension. Manages making an initial connection, then making a client available.

Configuration

If "Url" is not set on the extension instance, it will pull DB connection info and credentials from MONGO_URL. If not found, it will try DATABASE_URL.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension struct {
	nibbler.NoOpExtension
	Client *mongo.Client
	Url    string
}

func (*Extension) Init

func (s *Extension) Init(app *nibbler.Application) error

e.g. mongodb://foo:bar@localhost:27017

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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