mongo

package
v0.0.0-...-1081ff4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CollectionNameUsers instance.MongoCollectionName = "users"
	CollectionNameVods  instance.MongoCollectionName = "vods"
	CollectionNameChat  instance.MongoCollectionName = "chat"
)
View Source
const (
	CollectionUsers   instance.MongoCollectionName = "users"
	CollectionStreams instance.MongoCollectionName = "streams"
)

Variables

View Source
var (
	ErrNoDocuments = mongo.ErrNoDocuments
)

Functions

func New

Types

type IndexModel

type IndexModel = mongo.IndexModel

type IndexRef

type IndexRef struct {
	Collection instance.MongoCollectionName
	Index      mongo.IndexModel
}

type InsertOneModel

type InsertOneModel = mongo.InsertOneModel

type Pipeline

type Pipeline = mongo.Pipeline

type SetupOptions

type SetupOptions struct {
	URI      string
	Database string
	Direct   bool
	Indexes  []IndexRef
}

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