mongo

package
v0.0.0-...-6bba06c Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoGameWriter

func NewMongoGameWriter(client *MongoClient) *mongoGameWriter

Types

type DatabaseOldPromotionFilter

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

func NewDatabaseOldPromotionFilter

func NewDatabaseOldPromotionFilter(client *MongoClient) *DatabaseOldPromotionFilter

func (*DatabaseOldPromotionFilter) Filter

func (f *DatabaseOldPromotionFilter) Filter(ctx context.Context, games <-chan data.XboxStoreGame) <-chan data.XboxStoreGame

type MongoClient

type MongoClient struct {
	*mongo.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, connectionString, database, collection string) (*MongoClient, error)

func (*MongoClient) Close

func (c *MongoClient) Close(ctx context.Context)

func (*MongoClient) GetCollection

func (c *MongoClient) GetCollection() *mongo.Collection

Jump to

Keyboard shortcuts

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