Versions in this module Expand all Collapse all v2 v2.2.0 Sep 3, 2023 Changes in this version + func SecretsMongoUrls(urls ...string) (res []string) v2.1.0 Feb 21, 2023 Changes in this version + func Bind(r io.Reader, v interface{}) error + func MakeTestConnectionWithColl(t *testing.T, cname string) (mg *driver.Client, coll *driver.Collection, teardown func()) + func PrepIndex(keys ...string) driver.IndexModel + func PrepSort(sort ...string) bson.D v2.0.0 Oct 7, 2019 Changes in this version + func Connect(ctx context.Context, opts *options.ClientOptions, url string, extras ...string) (*driver.Client, map[string]interface{}, error) + func MakeTestConnection(t *testing.T) (mg *driver.Client, coll *driver.Collection, teardown func()) + type BufferedWriter interface + Close func() error + Flush func() error + Write func(rec interface{}) error + type BufferedWriterMongo struct + func NewBufferedWriter(client *driver.Client, db, collection string, size int) *BufferedWriterMongo + func (bw *BufferedWriterMongo) Close() (err error) + func (bw *BufferedWriterMongo) Flush() error + func (bw *BufferedWriterMongo) WithAutoFlush(duration time.Duration) *BufferedWriterMongo + func (bw *BufferedWriterMongo) WithCollection(collection string) *BufferedWriterMongo + func (bw *BufferedWriterMongo) Write(rec interface{}) error Other modules containing this package github.com/go-pkgz/mongo