mongosrv

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GetCollections() map[string]*mgo.Collection
}

type ServiceImpl

type ServiceImpl struct {
	// contains filtered or unexported fields
}

func New

func New(url string, databaseName string, collectionsArray []string) (*ServiceImpl, error)

func (*ServiceImpl) GetCollections

func (mongosrv *ServiceImpl) GetCollections() map[string]*mgo.Collection

GetCollections returns the current mongodb collections of the mongosrv

Jump to

Keyboard shortcuts

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