mongo

package
v0.0.0-...-d404fe0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 18

Documentation

Index

Constants

View Source
const (
	CollectionNameUsers          instance.CollectionName = "users"
	CollectionNameMessages       instance.CollectionName = "messages"
	CollectionNameTwitchRoles    instance.CollectionName = "twitch_roles"
	CollectionNameStreams        instance.CollectionName = "streams"
	CollectionNameCountDocuments instance.CollectionName = "count_documents"
)

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