mongodbclient

package
v0.0.0-...-7716863 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB     string
	Ctx    context.Context
	Client *mongo.Client
)

Functions

func Populate

func Populate()

func Set

func Set(collectionName string, id string, document interface{})

func Status

func Status() bool

Types

type DataSource

type DataSource struct {
	Id           string          `json:"id"`
	Title        string          `json:"title"`
	Description  string          `json:"description"`
	UserId       string          `json:"userId"`
	CreationDate string          `json:"creationDate"`
	Data         json.RawMessage `json:"data"`
}

func Get

func Get(name string, id string) (DataSource, error)

Jump to

Keyboard shortcuts

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