mongodb

package
v0.0.0-...-24a8c69 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, cfg database.Config) (*mongo.Client, error)

Connect returns a connected mongodb instance.

Types

type Aggregation

type Aggregation mongo.Pipeline

func (Aggregation) MarshalLogArray

func (agn Aggregation) MarshalLogArray(enc zapcore.ArrayEncoder) error

func (Aggregation) MarshalLogObject

func (agn Aggregation) MarshalLogObject(enc zapcore.ObjectEncoder) error

type Query

type Query map[string]interface{}

Query represents mongodb query.

func (Query) MarshalLogObject

func (qry Query) MarshalLogObject(enc zapcore.ObjectEncoder) error

Jump to

Keyboard shortcuts

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