mongodb

package
v0.0.0-...-05a0e05 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() (*mongo.Client, error)

func Collection

func Collection(client *mongo.Client) *mongo.Collection

func Drop

func Drop(collection *mongo.Collection) error

func Fill

func Fill(collection *mongo.Collection, subscribers []mongodb.Subscriber) error

func FillBatch

func FillBatch(collection *mongo.Collection, subscribers []mongodb.Subscriber) error

func FillBatchParallel

func FillBatchParallel(subscribers []mongodb.Subscriber) error

func Generate

func Generate(shift int32, workerCount, timezoneCount, limit int) []mongodb.Subscriber

func Index

func Index(collection *mongo.Collection) error

func Match

func Match(dst []mongodb.Subscriber, collection *mongo.Collection, workerID int, timezones []int, now int32, limit int) ([]mongodb.Subscriber, error)

func Max

func Max(collection *mongo.Collection) (uint32, error)

func Update

func Update(collection *mongo.Collection, ids []int32, notifyAfter int32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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