mongo

package
v0.0.0-...-a65505b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionNameRedeemRewards instance.CollectionName = "redeem_rewards"
	CollectionNameWebhooks      instance.CollectionName = "webhooks"
)

Variables

View Source
var ErrNoDocuments = mongo.ErrNoDocuments

Functions

func New

Types

type IndexModel

type IndexModel = mongo.IndexModel

type InsertOneModel

type InsertOneModel = mongo.InsertOneModel

type MongoInst

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

func (*MongoInst) Collection

func (i *MongoInst) Collection(name instance.CollectionName) *mongo.Collection

func (*MongoInst) Ping

func (i *MongoInst) Ping(ctx context.Context) error

func (*MongoInst) RawClient

func (i *MongoInst) RawClient() *mongo.Client

func (*MongoInst) RawDatabase

func (i *MongoInst) RawDatabase() *mongo.Database

type Pipeline

type Pipeline = mongo.Pipeline

type SetupOptions

type SetupOptions struct {
	URI      string
	Database string
	Direct   bool
}

type UpdateOneModel

type UpdateOneModel = mongo.UpdateOneModel

type WriteModel

type WriteModel = mongo.WriteModel

Jump to

Keyboard shortcuts

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