mongo

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A []interface{}

type D

type D []DocElem

type DocElem

type DocElem struct {
	Name  string
	Value interface{}
}

type E

type E DocElem

type M

type M map[string]interface{}

type MgoClient

type MgoClient struct {
	*mongo.Client
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *MgoClient

func (*MgoClient) DbCollection

func (c *MgoClient) DbCollection() *mongo.Collection

type Option

type Option func(client *MgoClient)

func Addr

func Addr(addr string) Option

func Collection

func Collection(cl string) Option

func Database

func Database(db string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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