Documentation ¶
Index ¶
- func CollectionFind(ctx context.Context, uri, dbname, collection string, filter interface{}, ...) (cursor *mongo.Cursor, err error)
- func CollectionInsert(doc interface{}, uri, dbname, collection string) (err error)
- func CollectionInsertMany(docs []interface{}, uri, dbname, collection string) (err error)
- func CopyCollection(ctx context.Context, src, dst *mongo.Collection) (err error)
- func GetCollection(ctx context.Context, uri, dbname, collection string) (*mongo.Collection, error)
- func GetDB(ctx context.Context, uri, db string) (*mongo.Client, *mongo.Database, error)
- func GetLastDocByTimeStamp(ctx context.Context, stampname string, doc interface{}, ...) (ok bool, err error)
- func GetOrCreateCollection(ctx context.Context, db *mongo.Database, name string) (*mongo.Collection, error)
- func GetTimeStampRangeFilter(tsname string, start, end *time.Time) bson.M
- func PrintCollection(ctx context.Context, collection *mongo.Collection) (err error)
- func RemoveDupesByTimeStamp(ctx context.Context, stampname string, collection *mongo.Collection) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionFind ¶ added in v0.1.3
func CollectionInsert ¶ added in v0.1.2
func CollectionInsertMany ¶ added in v0.1.3
func CopyCollection ¶
func CopyCollection(ctx context.Context, src, dst *mongo.Collection) (err error)
func GetCollection ¶ added in v0.1.3
func GetLastDocByTimeStamp ¶ added in v0.1.5
func GetOrCreateCollection ¶
func GetTimeStampRangeFilter ¶ added in v0.1.12
func PrintCollection ¶
func PrintCollection(ctx context.Context, collection *mongo.Collection) (err error)
func RemoveDupesByTimeStamp ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.