mongo

package
v0.0.0-...-f537024 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CollectionNameUsers           instance.MongoCollectionName = "users"
	CollectionNameDotaGames       instance.MongoCollectionName = "dota_games"
	CollectionNameDotaGamePlayers instance.MongoCollectionName = "dota_game_players"
)

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