database

package
v0.0.0-...-82f49f0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(duration time.Duration) context.Context

NewContext returns a context with given duration

Types

type Database

type Database struct {
	Db *mongo.Database
}

Database wraps a cdnv3 database

func New

func New(url string) *Database

New constructs a new database object

func (Database) GetNode

func (d Database) GetNode(id string) bson.M

GetNode looks up a node by string ID

Jump to

Keyboard shortcuts

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