mongostore

package
v0.0.0-...-aa6b52a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoStore

type MongoStore struct {
	// contains filtered or unexported fields
}

func DefaultClient

func DefaultClient() *MongoStore

func DefaultClientWithDatabase

func DefaultClientWithDatabase(db string) *MongoStore

func (*MongoStore) Aggregate

func (ds *MongoStore) Aggregate(pipeline interface{}, dtype *[]interface{})

func (*MongoStore) Collection

func (ds *MongoStore) Collection(collection string) *MongoStore

func (*MongoStore) CreateOrReplaceOne

func (ds *MongoStore) CreateOrReplaceOne(data interface{}, filter interface{}) int64

func (*MongoStore) Database

func (ds *MongoStore) Database() *mongo.Database

func (*MongoStore) FindOneAndUpdate

func (ds *MongoStore) FindOneAndUpdate(update interface{}, filter interface{}) int

func (*MongoStore) InsertOrIgnore

func (ds *MongoStore) InsertOrIgnore(data []interface{}) int

Jump to

Keyboard shortcuts

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