mongo

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MongoUpdateFromJSONPatch

func MongoUpdateFromJSONPatch(patches *[]JSONPatch, now *time.Time) (bson.A, error)

func NewMongoAdminClient

func NewMongoAdminClient(logger *logrus.Entry, ctx context.Context, env string) (*mongo.Client, *string, error)

func NewMongoCorpClient added in v1.2.0

func NewMongoCorpClient(logger *logrus.Entry, ctx context.Context, env string) (*mongo.Client, *string, error)

Types

type JSONPatch

type JSONPatch struct {
	OP    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
}

Jump to

Keyboard shortcuts

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