db

package
v0.0.0-...-992afa1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	Database   string
	Collection string
}

Table defines a database and collection pair.

func NewTable

func NewTable(database, collection string) Table

NewTable returns a new table.

type Util

type Util struct {
}

Util provides Mongo db related functions.

func (*Util) Ping

func (d *Util) Ping() bool

Ping sends a ping to the client, and returns true if there are no errors.

Jump to

Keyboard shortcuts

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