An open API service for producing an overview of a list of open source projects.

https://github.com/mongodb/mongo-go-driver

database driver go golang golang-library mongodb

Score: 38.246979471635704

Last synced: about 18 hours ago
JSON representation

Repository metadata:

The Official Golang driver for MongoDB


Owner metadata:


GitHub Events

Total
Last Year

Committers metadata

Last synced: 4 days ago

Total Commits: 2,747
Total Committers: 185
Avg Commits per committer: 14.849
Development Distribution Score (DDS): 0.857

Commits in past year: 260
Committers in past year: 24
Avg Commits per committer in past year: 10.833
Development Distribution Score (DDS) in past year: 0.8

Name Email Commits
Divjot Arora d****a@1****m 392
Matt Dale 9****e 291
Preston Vasquez p****z@i****m 241
Steven Silvester s****r@i****g 202
Benjamin Rewis 3****s 170
Qingyang Hu 1****u 165
Kris Brandow k****s@m****m 157
iwysiu i****u@1****m 125
Saghm Rossi s****i@g****m 113
dependabot[bot] 4****] 96
Craig Wilson c****n@g****m 92
Kevin Albertson k****n@m****m 62
Isabella Siu i****u@m****m 50
mongodb-dbx-release-bot[bot] 1****] 35
Rafael Cenzano 3****o 24
David Golden x****g@x****e 24
Roland Fong r****2@g****m 24
Wisdom Omuya d****t@g****m 21
mongodb-drivers-pr-bot[bot] 1****] 18
Emmanuel m****r@m****m 18
Igor Kryvenko k****r@g****m 17
Andreas Braun a****n@m****m 16
Sam Kleinman s****m@1****m 16
Connie Yu c****u@1****m 15
Jeff Yemin j****n@1****m 14
Joy Wang 4****g 14
Eric Daniels e****c@e****m 11
roman.tarasov r****v@b****m 11
Matthew Chiaravalloti m****i@m****m 10
Gabriela Asuncion g****n@m****m 10
and 155 more...

Issue and Pull Request metadata

Last synced: 4 days ago

Total issues: 5
Total pull requests: 1,495
Average time to close issues: 3 days
Average time to close pull requests: 10 days
Total issue authors: 5
Total pull request authors: 78
Average comments per issue: 1.0
Average comments per pull request: 1.12
Merged pull request: 1,075
Bot issues: 0
Bot pull requests: 282

Past year issues: 1
Past year pull requests: 283
Past year average time to close issues: 3 days
Past year average time to close pull requests: 7 days
Past year issue authors: 1
Past year pull request authors: 28
Past year average comments per issue: 1.0
Past year average comments per pull request: 1.65
Past year merged pull request: 138
Past year bot issues: 0
Past year bot pull requests: 85

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/mongodb/mongo-go-driver

Top Issue Authors

  • blink1073 (1)
  • qingyang-hu (1)
  • alcaeus (1)
  • matthewdale (1)
  • prestonvasquez (1)

Top Pull Request Authors

  • prestonvasquez (268)
  • matthewdale (249)
  • blink1073 (245)
  • qingyang-hu (211)
  • dependabot[bot] (156)
  • mongodb-drivers-pr-bot[bot] (126)
  • joyjwang (28)
  • alcaeus (24)
  • timothy-kim-mongo (15)
  • pmeredit (14)
  • zhouselena (14)
  • RafaelCenzano (13)
  • kevinAlbs (13)
  • isopov (7)
  • FGasper (7)

Top Issue Labels

  • priority-1-high (2)
  • ignore-for-release (1)
  • review-priority-normal (1)
  • priority-3-low (1)

Top Pull Request Labels

  • priority-3-low (557)
  • dependencies (214)
  • go (99)
  • priority-1-high (88)
  • documentation (75)
  • review-priority-normal (73)
  • priority-2-medium (51)
  • enhancement (38)
  • submodules (38)
  • ignore-for-release (36)
  • ci/cd (34)
  • github_actions (25)
  • bug (21)
  • review-priority-low (14)
  • feature (14)
  • review-priority-urgent (11)

Package metadata

ubuntu-24.04: golang-mongodb-mongo-driver

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Licenses: apache-2.0
  • Latest release: 1.12.1+ds1-2 (published 5 months ago)
  • Last Synced: 2026-03-06T18:56:20.964Z (4 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.064%
    • Stargazers count: 0.121%
    • Forks count: 0.134%
debian-12: golang-mongodb-mongo-driver

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://packages.debian.org/bookworm/golang-mongodb-mongo-driver
  • Licenses: apache-2.0
  • Latest release: 1.8.4+ds1-3 (published 4 months ago)
  • Last Synced: 2026-03-14T00:38:57.984Z (3 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.166%
    • Stargazers count: 0.288%
    • Forks count: 0.374%
proxy.golang.org: go.mongodb.org/mongo-driver

proxy.golang.org: github.com/mongodb/mongo-go-driver

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/github.com/mongodb/mongo-go-driver#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published 4 months ago)
  • Last Synced: 2026-06-17T00:30:22.602Z (4 days ago)
  • Versions: 138
  • Dependent Packages: 387
  • Dependent Repositories: 324
  • Docker Downloads: 912
  • Rankings:
    • Dependent packages count: 0.217%
    • Dependent repos count: 0.373%
    • Stargazers count: 0.767%
    • Average: 0.787%
    • Forks count: 0.937%
    • Docker downloads count: 1.642%
proxy.golang.org: github.com/mongodb/Mongo-go-driver

  • Homepage: https://github.com/mongodb/Mongo-go-driver
  • Documentation: https://pkg.go.dev/github.com/mongodb/Mongo-go-driver#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published 4 months ago)
  • Last Synced: 2026-06-15T23:21:06.802Z (5 days ago)
  • Versions: 137
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 0.518%
    • Forks count: 0.626%
    • Average: 4.372%
    • Dependent packages count: 6.999%
    • Dependent repos count: 9.346%
proxy.golang.org: github.com/MongoDB/mongo-go-driver

  • Homepage: https://github.com/MongoDB/mongo-go-driver
  • Documentation: https://pkg.go.dev/github.com/MongoDB/mongo-go-driver#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published 4 months ago)
  • Last Synced: 2026-06-15T23:21:02.726Z (5 days ago)
  • Versions: 137
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 0.518%
    • Forks count: 0.626%
    • Average: 4.372%
    • Dependent packages count: 6.999%
    • Dependent repos count: 9.346%
proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/aws

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/csfle

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/httputil

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/logger

Package logger provides the internal logging solution for the MongoDB Go Driver.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/aws/awserr

Package awserr represents API error interface accessors for the SDK.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/event

Package event is a library for monitoring events from the MongoDB Go driver. Monitors can be set for commands sent to the MongoDB cluster, connection pool changes, or changes on the MongoDB cluster. Monitoring commands requires specifying a CommandMonitor when constructing a mongo.Client. A CommandMonitor can be set to monitor started, succeeded, and/or failed events. A CommandStartedEvent can be correlated to its matching CommandSucceededEvent or CommandFailedEvent through the RequestID field. For example, the following code collects the names of started events: Monitoring the connection pool requires specifying a PoolMonitor when constructing a mongo.Client. The following code tracks the number of checked out connections: Monitoring server changes specifying a ServerMonitor object when constructing a mongo.Client. Different functions can be set on the ServerMonitor to monitor different kinds of events. See ServerMonitor for more details. The following code appends ServerHeartbeatStartedEvents to a slice:

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/event#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v2.6.0 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:44.921Z (5 days ago)
  • Versions: 20
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.751%
    • Average: 4.91%
    • Dependent repos count: 5.07%
proxy.golang.org: go.mongodb.org/mongo-driver/v2/bson

Package bson is a library for reading, writing, and manipulating BSON. BSON is a binary serialization format used to store documents and make remote procedure calls in MongoDB. For more information about the Go BSON library, including usage examples, check out the Work with BSON page in the Go Driver docs site. For more information about BSON, see https://bsonspec.org. The D and M types defined in this package can be used to build representations of BSON using native Go types. D is a slice and M is a map. For more information about the use cases for these types, see the documentation on the type definitions. Note that a D should not be constructed with duplicate key names, as that can cause undefined server behavior. Example: When decoding BSON to a D or M, the following type mappings apply when unmarshaling: The above mappings also apply when marshaling a D or M to BSON. Some other useful marshaling mappings are: Structs can be marshaled/unmarshaled to/from BSON or Extended JSON. When transforming structs to/from BSON or Extended JSON, the following rules apply: Only exported fields in structs will be marshaled or unmarshaled. When marshaling a struct, each field will be lowercased to generate the key for the corresponding BSON element. For example, a struct field named "Foo" will generate key "foo". This can be overridden via a struct tag (e.g. `bson:"fooField"` to generate key "fooField" instead). An embedded struct field is marshaled as a subdocument. The key will be the lowercased name of the field's type. A pointer field is marshaled as the underlying type if the pointer is non-nil. If the pointer is nil, it is marshaled as a BSON null value. When unmarshaling, a field of type any will follow the D/M type mappings listed above. BSON documents unmarshaled into an any field will be unmarshaled as a D. The encoding of each struct field can be customized by the "bson" struct tag. The "bson" tag gives the name of the field, followed by a comma-separated list of options. The name may be omitted in order to specify options without overriding the default field name. The following options can be used to configure behavior: omitempty: If the "omitempty" struct tag is specified on a field, the field will not be marshaled if it is set to an "empty" value. Numbers, booleans, and strings are considered empty if their value is equal to the zero value for the type (i.e. 0 for numbers, false for booleans, and "" for strings). Slices, maps, and arrays are considered empty if they are of length zero. Interfaces and pointers are considered empty if their value is nil. By default, structs are only considered empty if the struct type implements Zeroer and the "IsZero" method returns true. Struct types that do not implement Zeroer are never considered empty and will be marshaled as embedded documents. NOTE: It is recommended that this tag be used for all slice and map fields. minsize: If the minsize struct tag is specified on a field of type int64, uint, uint32, or uint64 and the value of the field can fit in a signed int32, the field will be serialized as a BSON int32 rather than a BSON int64. For other types, this tag is ignored. truncate: If the truncate struct tag is specified on a field with a non-float numeric type, BSON doubles unmarshaled into that field will be truncated at the decimal point. For example, if 3.14 is unmarshaled into a field of type int, it will be unmarshaled as 3. If this tag is not specified, the decoder will throw an error if the value cannot be decoded without losing precision. For float64 or non-numeric types, this tag is ignored. inline: If the inline struct tag is specified for a struct or map field, the field will be "flattened" when marshaling and "un-flattened" when unmarshaling. This means that all of the fields in that struct/map will be pulled up one level and will become top-level fields rather than being fields in a nested document. For example, if a map field named "Map" with value map[string]any{"foo": "bar"} is inlined, the resulting document will be {"foo": "bar"} instead of {"map": {"foo": "bar"}}. There can only be one inlined map field in a struct. If there are duplicated fields in the resulting document when an inlined struct is marshaled, the inlined field will be overwritten. If there are duplicated fields in the resulting document when an inlined map is marshaled, an error will be returned. This tag can be used with fields that are pointers to structs. If an inlined pointer field is nil, it will not be marshaled. For fields that are not maps or structs, this tag is ignored. The Raw family of types is used to validate and retrieve elements from a slice of bytes. This type is most useful when you want do lookups on BSON bytes without unmarshaling it into another type. Example: The Go BSON library uses a Registry to define encoding and decoding behavior for different data types. The default encoding and decoding behavior can be customized or extended by using a modified Registry. The custom registry system is composed of two parts: 1) ValueEncoder and ValueDecoder that handle encoding and decoding Go values to and from BSON representations. 2) A Registry that holds these ValueEncoders and ValueDecoders and provides methods for retrieving them. To use a custom Registry, use Encoder.SetRegistry or Decoder.SetRegistry.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/bson#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v2.6.0 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:50.043Z (5 days ago)
  • Versions: 20
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.751%
    • Average: 4.91%
    • Dependent repos count: 5.07%
proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/handshake

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/bsonutil

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/aws/signer/v4

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/codecutil

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/bsoncoreutil

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/binaryutil

Package binaryutil provides utility functions for working with binary data. Package binaryutil provides functions for reading binary primitives from byte slices. It is used internally for BSON parsing and wire protocol operations. The functions in this package are designed for use in BSON operations. Signed integer functions (ReadI32, ReadI64) use manual bit-shifting rather than encoding/binary to avoid unsafe signed/unsigned conversions and comply with gosec G115. Bounds-check elimination (BCE) hints help the compiler inline these functions. Benchmarking across different ARM64 architectures (Apple M-series) revealed non-deterministic performance discrepancies between using the "encoding/binary" standard library and manual bit-shifting ("straight-lining"). Without Loss of Generality (WLOG), benchmarking observed that: Further testing showed that "straight-lining" the ReadU32 implementation to match ReadI32 normalized performance to ~0.03ns on the M4 Max, even though the generated assembly for both approaches is virtually equivalent. The generated assembly is nearly identical for both approaches. These sub-nanosecond variations likely stem from microarchitecture differences (instruction caching, branch prediction) rather than the code itself. Since network I/O dominates driver latency, these differences do not have a significant impact on driver performance. The implementation favors security compliance and readability over hardware-specific tuning.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/credproviders

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/mongocrypt/options

Package options is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/mongo

Package mongo provides a MongoDB Driver API for Go. Basic usage of the driver starts with creating a Client from a connection string. To do so, call Connect: This will create a new client and start monitoring the MongoDB server on localhost. The Database and Collection types can be used to access the database: A Collection can be used to query the database or insert documents: Several methods return a cursor, which can be used like this: Cursor.All will decode all of the returned elements at once: Methods that only return a single document will return a *SingleResult, which works like a *sql.Row: All Client, Collection, and Database methods that take parameters of type any will return ErrNilDocument if nil is passed in for an any. Additional examples can be found under the examples directory in the driver's repository and on the MongoDB website. Errors from the MongoDB server will implement the ServerError interface, which has functions to check for specific error codes, labels, and message substrings. These can be used to check for and handle specific errors. Some methods, like InsertMany and BulkWrite, can return an error representing multiple errors, and in those cases the ServerError functions will return true if any of the contained errors satisfy the check. There are also helper functions to check for certain specific types of errors: Building with Go 1.11+ and using connection strings with the "mongodb+srv"[1] scheme is unfortunately incompatible with some DNS servers in the wild due to the change introduced in https://github.com/golang/go/issues/10622. You may receive an error with the message "cannot unmarshal DNS message" while running an operation when using DNS servers that non-compliantly compress SRV records. Old versions of kube-dns and the native DNS resolver (systemd-resolver) on Ubuntu 18.04 are known to be non-compliant in this manner. We suggest using a different DNS server (8.8.8.8 is the common default), and, if that's not possible, avoiding the "mongodb+srv" scheme. MongoDB provides two approaches to In-Use Encryption: Queryable Encryption (QE) and Client-Side Field Level Encryption (CSFLE). The Queryable Encryption and CSFLE features share much of the same API with some exceptions. - AutoEncryptionOptions.SetEncryptedFieldsMap only applies to Queryable Encryption. - AutoEncryptionOptions.SetSchemaMap only applies to CSFLE. In-use encryption is a new feature in MongoDB 4.2 that allows specific data fields to be encrypted. Using this feature requires specifying the "cse" build tag during compilation: Note: Auto encryption is an enterprise- and Atlas-only feature. The libmongocrypt C library is required when using in-use encryption. Specific versions of libmongocrypt are required for different versions of the Go Driver: - Go Driver v1.2.0 requires libmongocrypt v1.0.0 or higher - Go Driver v1.5.0 requires libmongocrypt v1.1.0 or higher - Go Driver v1.8.0 requires libmongocrypt v1.3.0 or higher - Go Driver v1.10.0 requires libmongocrypt v1.5.0 or higher. There is a severe bug when calling RewrapManyDataKey with libmongocrypt versions less than 1.5.2. This bug may result in data corruption. Please use libmongocrypt 1.5.2 or higher when calling RewrapManyDataKey. - Go Driver v1.12.0 requires libmongocrypt v1.8.0 or higher. To install libmongocrypt, follow the instructions for your operating system: 1. Linux: follow the instructions listed at https://github.com/mongodb/libmongocrypt#installing-libmongocrypt-from-distribution-packages to install the correct deb/rpm package. 2. Mac: Follow the instructions listed at https://github.com/mongodb/libmongocrypt#installing-libmongocrypt-on-macos to install packages via brew and compile the libmongocrypt source code. 3. Windows: libmongocrypt communicates with the mongocryptd process or mongo_crypt shared library for automatic encryption. See AutoEncryptionOpts.SetExtraOptions for options to configure use of mongocryptd or mongo_crypt. [1] See https://www.mongodb.com/docs/manual/reference/connection-string/#dns-seedlist-connection-format

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/mongo#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v2.6.0 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:56.344Z (5 days ago)
  • Versions: 20
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.756%
    • Average: 4.916%
    • Dependent repos count: 5.075%
proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/ocsp

Package ocsp is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/ptrutil

proxy.golang.org: go.mongodb.org/mongo-driver/v2/version

Package version defines the Go Driver version.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/version#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v2.6.0 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:55.354Z (5 days ago)
  • Versions: 20
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.756%
    • Average: 4.916%
    • Dependent repos count: 5.075%
proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/wiremessage

Package wiremessage is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/driverutil

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/csot

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/topology

Package topology is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION! Package topology contains types that handles the discovery, monitoring, and selection of servers. This package is designed to expose enough inner workings of service discovery and monitoring to allow low level applications to have fine grained control, while hiding most of the detailed implementation of the algorithms.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/mongoutil

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/mongocrypt

Package mongocrypt is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/mnet

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/randutil

Package randutil provides common random number utilities.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/description

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/auth

Package auth is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/auth/creds

Package creds is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/mongo/address

Package address provides structured representations of network addresses.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/dns

Package dns is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/optionsutil

proxy.golang.org: go.mongodb.org/mongo-driver/v2/mongo/options

Package options defines the optional configurations for the MongoDB Go Driver.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/bsonx/bsoncore

Package bsoncore is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION! Package bsoncore contains functions that can be used to encode and decode BSON elements and values to or from a slice of bytes. These functions are aimed at allowing low level manipulation of BSON and can be used to build a higher level BSON library. The Read* functions within this package return the values of the element and a boolean indicating if the values are valid. A boolean was used instead of an error because any error that would be returned would be the same: not enough bytes. This library attempts to do no validation, it will only return false if there are not enough bytes for an item to be read. For example, the ReadDocument function checks the length, if that length is larger than the number of bytes available, it will return false, if there are enough bytes, it will return those bytes and true. It is the consumers responsibility to validate those bytes. The Append* functions within this package will append the type value to the given dst slice. If the slice has enough capacity, it will not grow the slice. The Append*Element functions within this package operate in the same way, but additionally append the BSON type and the key before the value.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/mongo/readpref

Package readpref defines read preferences for MongoDB queries.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver

Package driver is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/serverselector

proxy.golang.org: go.mongodb.org/mongo-driver/v2/tag

Package tag provides types for filtering replica set members using tags in a read preference. For more information about read preference tags, see https://www.mongodb.com/docs/manual/core/read-preference-tags/

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/tag#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v2.6.0 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:49.649Z (5 days ago)
  • Versions: 20
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.756%
    • Average: 4.916%
    • Dependent repos count: 5.075%
proxy.golang.org: go.mongodb.org/mongo-driver/v2/mongo/writeconcern

Package writeconcern defines write concerns for MongoDB operations. For more information about MongoDB write concerns, see https://www.mongodb.com/docs/manual/reference/write-concern/ Configure a Client with write concern "majority" that requests acknowledgement that a majority of the nodes have committed write operations. Configure a Client with a write concern that requests acknowledgement that exactly 2 nodes have committed and journaled write operations.

proxy.golang.org: go.mongodb.org/mongo-driver/v2/internal/uuid

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/session

Package session is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/operation

Package operation is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/v2/mongo/readconcern

Package readconcern defines read concerns for MongoDB operations. For more information about MongoDB read concerns, see https://www.mongodb.com/docs/manual/reference/read-concern/

proxy.golang.org: go.mongodb.org/mongo-driver/v2/x/mongo/driver/connstring

Package connstring is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/bson

Package bson is a library for reading, writing, and manipulating BSON. BSON is a binary serialization format used to store documents and make remote procedure calls in MongoDB. The BSON specification is located at https://bsonspec.org. The BSON library handles marshaling and unmarshaling of values through a configurable codec system. For a description of the codec system and examples of registering custom codecs, see the bsoncodec package. For additional information and usage examples, check out the Work with BSON page in the Go Driver docs site. The Raw family of types is used to validate and retrieve elements from a slice of bytes. This type is most useful when you want do lookups on BSON bytes without unmarshaling it into another type. Example: The D and M types defined in this package can be used to build representations of BSON using native Go types. D is a slice and M is a map. For more information about the use cases for these types, see the documentation on the type definitions. Note that a D should not be constructed with duplicate key names, as that can cause undefined server behavior. Example: When decoding BSON to a D or M, the following type mappings apply when unmarshaling: The above mappings also apply when marshaling a D or M to BSON. Some other useful marshaling mappings are: Structs can be marshaled/unmarshaled to/from BSON or Extended JSON. When transforming structs to/from BSON or Extended JSON, the following rules apply: Only exported fields in structs will be marshaled or unmarshaled. When marshaling a struct, each field will be lowercased to generate the key for the corresponding BSON element. For example, a struct field named "Foo" will generate key "foo". This can be overridden via a struct tag (e.g. `bson:"fooField"` to generate key "fooField" instead). An embedded struct field is marshaled as a subdocument. The key will be the lowercased name of the field's type. A pointer field is marshaled as the underlying type if the pointer is non-nil. If the pointer is nil, it is marshaled as a BSON null value. When unmarshaling, a field of type interface{} will follow the D/M type mappings listed above. BSON documents unmarshaled into an interface{} field will be unmarshaled as a D. The encoding of each struct field can be customized by the "bson" struct tag. This tag behavior is configurable, and different struct tag behavior can be configured by initializing a new bsoncodec.StructCodec with the desired tag parser and registering that StructCodec onto the Registry. By default, JSON tags are not honored, but that can be enabled by creating a StructCodec with JSONFallbackStructTagParser, like below: Example: The bson tag gives the name of the field, possibly followed by a comma-separated list of options. The name may be empty in order to specify options without overriding the default field name. The following options can be used to configure behavior: omitempty: If the "omitempty" struct tag is specified on a field, the field will not be marshaled if it is set to an "empty" value. Numbers, booleans, and strings are considered empty if their value is equal to the zero value for the type (i.e. 0 for numbers, false for booleans, and "" for strings). Slices, maps, and arrays are considered empty if they are of length zero. Interfaces and pointers are considered empty if their value is nil. By default, structs are only considered empty if the struct type implements bsoncodec.Zeroer and the IsZero method returns true. Struct types that do not implement bsoncodec.Zeroer are never considered empty and will be marshaled as embedded documents. NOTE: It is recommended that this tag be used for all slice and map fields. minsize: If the minsize struct tag is specified on a field of type int64, uint, uint32, or uint64 and the value of the field can fit in a signed int32, the field will be serialized as a BSON int32 rather than a BSON int64. For other types, this tag is ignored. truncate: If the truncate struct tag is specified on a field with a non-float numeric type, BSON doubles unmarshaled into that field will be truncated at the decimal point. For example, if 3.14 is unmarshaled into a field of type int, it will be unmarshaled as 3. If this tag is not specified, the decoder will throw an error if the value cannot be decoded without losing precision. For float64 or non-numeric types, this tag is ignored. inline: If the inline struct tag is specified for a struct or map field, the field will be "flattened" when marshaling and "un-flattened" when unmarshaling. This means that all of the fields in that struct/map will be pulled up one level and will become top-level fields rather than being fields in a nested document. For example, if a map field named "Map" with value map[string]interface{}{"foo": "bar"} is inlined, the resulting document will be {"foo": "bar"} instead of {"map": {"foo": "bar"}}. There can only be one inlined map field in a struct. If there are duplicated fields in the resulting document when an inlined struct is marshaled, the inlined field will be overwritten. If there are duplicated fields in the resulting document when an inlined map is marshaled, an error will be returned. This tag can be used with fields that are pointers to structs. If an inlined pointer field is nil, it will not be marshaled. For fields that are not maps or structs, this tag is ignored. Manually marshaling and unmarshaling can be done with the Marshal and Unmarshal family of functions.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/bson#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:53.259Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/internal/aws/credentials

proxy.golang.org: go.mongodb.org/mongo-driver/internal/rand

Package rand implements pseudo-random number generators. Random numbers are generated by a Source. Top-level functions, such as Float64 and Int, use a default shared Source that produces a deterministic sequence of values each time a program is run. Use the Seed function to initialize the default Source if different behavior is required for each run. The default Source, a LockedSource, is safe for concurrent use by multiple goroutines, but Sources created by NewSource are not. However, Sources are small and it is reasonable to have a separate Source for each goroutine, seeded differently, to avoid locking. For random numbers suitable for security-sensitive work, see the crypto/rand package. This example shows the use of each of the methods on a *Rand. The use of the global functions is the same, without the receiver.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/internal/rand#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:54.662Z (5 days ago)
  • Versions: 28
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt

Package mongocrypt is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/internal/ptrutil

proxy.golang.org: go.mongodb.org/mongo-driver/internal/handshake

proxy.golang.org: go.mongodb.org/mongo-driver/mongo/description

Package description contains types and functions for describing the state of MongoDB clusters.

proxy.golang.org: go.mongodb.org/mongo-driver/internal/httputil

proxy.golang.org: go.mongodb.org/mongo-driver/version

Package version defines the Go Driver version.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/version#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:58.396Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options

Package options is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/auth

Package auth is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/internal/aws/awserr

Package awserr represents API error interface accessors for the SDK.

proxy.golang.org: go.mongodb.org/mongo-driver/bson/bsonrw

Package bsonrw contains abstractions for reading and writing BSON and BSON like types from sources.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/bson/bsonrw#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:54.691Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/internal/aws

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/internal/aws#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:56.089Z (5 days ago)
  • Versions: 34
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/internal/uuid

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/internal/uuid#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:45.864Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/internal/randutil

Package randutil provides common random number utilities.

proxy.golang.org: go.mongodb.org/mongo-driver/mongo

Package mongo provides a MongoDB Driver API for Go. Basic usage of the driver starts with creating a Client from a connection string. To do so, call Connect: This will create a new client and start monitoring the MongoDB server on localhost. The Database and Collection types can be used to access the database: A Collection can be used to query the database or insert documents: Several methods return a cursor, which can be used like this: Cursor.All will decode all of the returned elements at once: Methods that only return a single document will return a *SingleResult, which works like a *sql.Row: All Client, Collection, and Database methods that take parameters of type interface{} will return ErrNilDocument if nil is passed in for an interface{}. Additional examples can be found under the examples directory in the driver's repository and on the MongoDB website. Errors from the MongoDB server will implement the ServerError interface, which has functions to check for specific error codes, labels, and message substrings. These can be used to check for and handle specific errors. Some methods, like InsertMany and BulkWrite, can return an error representing multiple errors, and in those cases the ServerError functions will return true if any of the contained errors satisfy the check. There are also helper functions to check for certain specific types of errors: Building with Go 1.11+ and using connection strings with the "mongodb+srv"[1] scheme is unfortunately incompatible with some DNS servers in the wild due to the change introduced in https://github.com/golang/go/issues/10622. You may receive an error with the message "cannot unmarshal DNS message" while running an operation when using DNS servers that non-compliantly compress SRV records. Old versions of kube-dns and the native DNS resolver (systemd-resolver) on Ubuntu 18.04 are known to be non-compliant in this manner. We suggest using a different DNS server (8.8.8.8 is the common default), and, if that's not possible, avoiding the "mongodb+srv" scheme. Client-side encryption is a new feature in MongoDB 4.2 that allows specific data fields to be encrypted. Using this feature requires specifying the "cse" build tag during compilation: Note: Auto encryption is an enterprise- and Atlas-only feature. The libmongocrypt C library is required when using client-side encryption. Specific versions of libmongocrypt are required for different versions of the Go Driver: - Go Driver v1.2.0 requires libmongocrypt v1.0.0 or higher - Go Driver v1.5.0 requires libmongocrypt v1.1.0 or higher - Go Driver v1.8.0 requires libmongocrypt v1.3.0 or higher - Go Driver v1.10.0 requires libmongocrypt v1.5.0 or higher. There is a severe bug when calling RewrapManyDataKey with libmongocrypt versions less than 1.5.2. This bug may result in data corruption. Please use libmongocrypt 1.5.2 or higher when calling RewrapManyDataKey. - Go Driver v1.12.0 requires libmongocrypt v1.8.0 or higher. To install libmongocrypt, follow the instructions for your operating system: 1. Linux: follow the instructions listed at https://github.com/mongodb/libmongocrypt#installing-libmongocrypt-from-distribution-packages to install the correct deb/rpm package. 2. Mac: Follow the instructions listed at https://github.com/mongodb/libmongocrypt#installing-libmongocrypt-on-macos to install packages via brew and compile the libmongocrypt source code. 3. Windows: libmongocrypt communicates with the mongocryptd process or mongo_crypt shared library for automatic encryption. See AutoEncryptionOpts.SetExtraOptions for options to configure use of mongocryptd or mongo_crypt. [1] See https://www.mongodb.com/docs/manual/reference/connection-string/#dns-seedlist-connection-format

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:53.266Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/mongo/readconcern

Package readconcern defines read concerns for MongoDB operations. For more information about MongoDB read concerns, see https://www.mongodb.com/docs/manual/reference/read-concern/

proxy.golang.org: go.mongodb.org/mongo-driver/event

Package event is a library for monitoring events from the MongoDB Go driver. Monitors can be set for commands sent to the MongoDB cluster, connection pool changes, or changes on the MongoDB cluster. Monitoring commands requires specifying a CommandMonitor when constructing a mongo.Client. A CommandMonitor can be set to monitor started, succeeded, and/or failed events. A CommandStartedEvent can be correlated to its matching CommandSucceededEvent or CommandFailedEvent through the RequestID field. For example, the following code collects the names of started events: Monitoring the connection pool requires specifying a PoolMonitor when constructing a mongo.Client. The following code tracks the number of checked out connections: Monitoring server changes specifying a ServerMonitor object when constructing a mongo.Client. Different functions can be set on the ServerMonitor to monitor different kinds of events. See ServerMonitor for more details. The following code appends ServerHeartbeatStartedEvents to a slice:

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/event#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:49.266Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/mongo/address

Package address provides structured representations of network addresses.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo/address#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:52.184Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver

Package driver is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/x/mongo/driver#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:53.265Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/bson/bsoncodec

Package bsoncodec provides a system for encoding values to BSON representations and decoding values from BSON representations. This package considers both binary BSON and ExtendedJSON as BSON representations. The types in this package enable a flexible system for handling this encoding and decoding. The codec system is composed of two parts: 1) ValueEncoders and ValueDecoders that handle encoding and decoding Go values to and from BSON representations. 2) A Registry that holds these ValueEncoders and ValueDecoders and provides methods for retrieving them. The ValueEncoder interface is implemented by types that can encode a provided Go type to BSON. The value to encode is provided as a reflect.Value and a bsonrw.ValueWriter is used within the EncodeValue method to actually create the BSON representation. For convenience, ValueEncoderFunc is provided to allow use of a function with the correct signature as a ValueEncoder. An EncodeContext instance is provided to allow implementations to lookup further ValueEncoders and to provide configuration information. The ValueDecoder interface is the inverse of the ValueEncoder. Implementations should ensure that the value they receive is settable. Similar to ValueEncoderFunc, ValueDecoderFunc is provided to allow the use of a function with the correct signature as a ValueDecoder. A DecodeContext instance is provided and serves similar functionality to the EncodeContext. A Registry is a store for ValueEncoders, ValueDecoders, and a type map. See the Registry type documentation for examples of registering various custom encoders and decoders. A Registry can have three main types of codecs: 1. Type encoders/decoders - These can be registered using the RegisterTypeEncoder and RegisterTypeDecoder methods. The registered codec will be invoked when encoding/decoding a value whose type matches the registered type exactly. If the registered type is an interface, the codec will be invoked when encoding or decoding values whose type is the interface, but not for values with concrete types that implement the interface. 2. Hook encoders/decoders - These can be registered using the RegisterHookEncoder and RegisterHookDecoder methods. These methods only accept interface types and the registered codecs will be invoked when encoding or decoding values whose types implement the interface. An example of a hook defined by the driver is bson.Marshaler. The driver will call the MarshalBSON method for any value whose type implements bson.Marshaler, regardless of the value's concrete type. 3. Type map entries - This can be used to associate a BSON type with a Go type. These type associations are used when decoding into a bson.D/bson.M or a struct field of type interface{}. For example, by default, BSON int32 and int64 values decode as Go int32 and int64 instances, respectively, when decoding into a bson.D. The following code would change the behavior so these values decode as Go int instances instead: 4. Kind encoder/decoders - These can be registered using the RegisterDefaultEncoder and RegisterDefaultDecoder methods. The registered codec will be invoked when encoding or decoding values whose reflect.Kind matches the registered reflect.Kind as long as the value's type doesn't match a registered type or hook encoder/decoder first. These methods should be used to change the behavior for all values for a specific kind. When looking up an encoder in a Registry, the precedence rules are as follows: 1. A type encoder registered for the exact type of the value. 2. A hook encoder registered for an interface that is implemented by the value or by a pointer to the value. If the value matches multiple hooks (e.g. the type implements bsoncodec.Marshaler and bsoncodec.ValueMarshaler), the first one registered will be selected. Note that registries constructed using bson.NewRegistry have driver-defined hooks registered for the bsoncodec.Marshaler, bsoncodec.ValueMarshaler, and bsoncodec.Proxy interfaces, so those will take precedence over any new hooks. 3. A kind encoder registered for the value's kind. If all of these lookups fail to find an encoder, an error of type ErrNoEncoder is returned. The same precedence rules apply for decoders, with the exception that an error of type ErrNoDecoder will be returned if no decoder is found. The DefaultValueEncoders and DefaultValueDecoders types provide a full set of ValueEncoders and ValueDecoders for handling a wide range of Go types, including all of the types within the primitive package. To make registering these codecs easier, a helper method on each type is provided. For the DefaultValueEncoders type the method is called RegisterDefaultEncoders and for the DefaultValueDecoders type the method is called RegisterDefaultDecoders, this method also handles registering type map entries for each BSON type.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/bson/bsoncodec#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:53.314Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/bson/bsonoptions

Package bsonoptions defines the optional configurations for the BSON codecs.

proxy.golang.org: go.mongodb.org/mongo-driver/internal/codecutil

proxy.golang.org: go.mongodb.org/mongo-driver/internal/logger

Package logger provides the internal logging solution for the MongoDB Go Driver.

proxy.golang.org: go.mongodb.org/mongo-driver/mongo/writeconcern

Package writeconcern defines write concerns for MongoDB operations. For more information about MongoDB write concerns, see https://www.mongodb.com/docs/manual/reference/write-concern/ Configure a Client with write concern "majority" that requests acknowledgement that a majority of the nodes have committed write operations. Configure a Client with a write concern that requests acknowledgement that exactly 2 nodes have committed and journaled write operations.

proxy.golang.org: go.mongodb.org/mongo-driver/bson/bsontype

Package bsontype is a utility package that contains types for each BSON type and the a stringifier for the Type to enable easier debugging when working with BSON.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/bson/bsontype#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:54.689Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/auth/creds

Package creds is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/mongo/options

Package options defines the optional configurations for the MongoDB Go Driver.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo/options#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:55.219Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/bson/primitive

Package primitive contains types similar to Go primitives for BSON types that do not have direct Go primitive representations.

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/bson/primitive#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 1 month ago)
  • Last Synced: 2026-06-15T23:20:55.232Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/internal/csfle

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/internal/csfle#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:56.075Z (5 days ago)
  • Versions: 28
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/session

Package session is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/internal/csot

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/internal/csot#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:53.908Z (5 days ago)
  • Versions: 28
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/internal/credproviders

proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/dns

Package dns is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/ocsp

Package ocsp is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/operation

Package operation is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/internal/driverutil

proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/topology

Package topology is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION! Package topology contains types that handles the discovery, monitoring, and selection of servers. This package is designed to expose enough inner workings of service discovery and monitoring to allow low level applications to have fine grained control, while hiding most of the detailed implementation of the algorithms.

proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/wiremessage

Package wiremessage is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/x/mongo/driver/connstring

Package connstring is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee. WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!

proxy.golang.org: go.mongodb.org/mongo-driver/internal/aws/signer/v4

proxy.golang.org: go.mongodb.org/mongo-driver/tag

Package tag provides types for filtering replica set members using tags in a read preference. For more information about read preference tags, see https://www.mongodb.com/docs/manual/core/read-preference-tags/

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://pkg.go.dev/go.mongodb.org/mongo-driver/tag#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v1.17.9 (published about 2 months ago)
  • Last Synced: 2026-06-15T23:20:47.277Z (5 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 4.779%
    • Average: 4.939%
    • Dependent repos count: 5.1%
proxy.golang.org: go.mongodb.org/mongo-driver/internal/bsonutil

proxy.golang.org: github.com/mongodb/mongo-go-driver/v2

ubuntu-23.04: golang-mongodb-mongo-driver

  • Homepage: https://github.com/mongodb/mongo-go-driver.git
  • Licenses: apache-2.0
  • Latest release: 1.8.4+ds1-1ubuntu1 (published 4 months ago)
  • Last Synced: 2026-03-12T07:07:26.122Z (3 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-13: golang-mongodb-mongo-driver

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Documentation: https://packages.debian.org/trixie/golang-mongodb-mongo-driver
  • Licenses: apache-2.0
  • Latest release: 1.17.1+ds1-2 (published 4 months ago)
  • Last Synced: 2026-03-14T17:09:07.944Z (3 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.10: golang-mongodb-mongo-driver

  • Homepage: https://github.com/mongodb/mongo-go-driver
  • Status: removed
  • Licenses: apache-2.0
  • Latest release: 1.12.1+ds1-2 (published 4 months ago)
  • Last Synced: 2026-02-08T17:01:45.402Z (4 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
ubuntu-23.10: golang-mongodb-mongo-driver

  • Homepage: https://github.com/mongodb/mongo-go-driver.git
  • Licenses: apache-2.0
  • Latest release: 1.8.4+ds1-1ubuntu1 (published 4 months ago)
  • Last Synced: 2026-03-10T06:03:53.561Z (3 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%

Dependencies

examples/_logger/logrus/go.mod go
  • github.com/bombsimon/logrusr/v4 v4.0.0
  • github.com/go-logr/logr v1.2.3
  • github.com/golang/snappy v0.0.1
  • github.com/klauspost/compress v1.13.6
  • github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
  • github.com/sirupsen/logrus v1.9.0
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.1
  • github.com/xdg-go/stringprep v1.0.3
  • github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
  • go.mongodb.org/mongo-driver v1.11.1
  • golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • golang.org/x/sys v0.2.0
  • golang.org/x/text v0.3.7
examples/_logger/logrus/go.sum go
  • github.com/bombsimon/logrusr/v4 v4.0.0
  • github.com/davecgh/go-spew v1.1.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/go-logr/logr v1.2.3
  • github.com/golang/snappy v0.0.1
  • github.com/google/go-cmp v0.5.2
  • github.com/klauspost/compress v1.13.6
  • github.com/kr/pretty v0.1.0
  • github.com/kr/pty v1.1.1
  • github.com/kr/text v0.1.0
  • github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/sirupsen/logrus v1.9.0
  • github.com/stretchr/objx v0.1.0
  • github.com/stretchr/testify v1.7.0
  • github.com/stretchr/testify v1.8.1
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.1
  • github.com/xdg-go/stringprep v1.0.3
  • github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
  • golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
  • golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210423082822-04245dca01da
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8
  • golang.org/x/sys v0.2.0
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/text v0.3.6
  • golang.org/x/text v0.3.7
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
  • gopkg.in/yaml.v3 v3.0.1
examples/_logger/zap/go.mod go
  • github.com/go-logr/logr v1.2.2
  • github.com/go-logr/zapr v1.2.3
  • github.com/golang/snappy v0.0.1
  • github.com/klauspost/compress v1.13.6
  • github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.1
  • github.com/xdg-go/stringprep v1.0.3
  • github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
  • go.mongodb.org/mongo-driver v1.11.1
  • go.uber.org/atomic v1.7.0
  • go.uber.org/multierr v1.6.0
  • go.uber.org/zap v1.24.0
  • golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • golang.org/x/text v0.3.7
examples/_logger/zap/go.sum go
  • github.com/benbjohnson/clock v1.1.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/davecgh/go-spew v1.1.0
  • github.com/go-logr/logr v1.2.2
  • github.com/go-logr/zapr v1.2.3
  • github.com/golang/snappy v0.0.1
  • github.com/google/go-cmp v0.5.2
  • github.com/klauspost/compress v1.13.6
  • github.com/kr/pretty v0.1.0
  • github.com/kr/pty v1.1.1
  • github.com/kr/text v0.1.0
  • github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
  • github.com/pkg/errors v0.9.1
  • github.com/pkg/errors v0.8.1
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/stretchr/objx v0.1.0
  • github.com/stretchr/testify v1.3.0
  • github.com/stretchr/testify v1.4.0
  • github.com/stretchr/testify v1.8.0
  • github.com/stretchr/testify v1.7.0
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.1
  • github.com/xdg-go/stringprep v1.0.3
  • github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
  • go.uber.org/atomic v1.7.0
  • go.uber.org/goleak v1.1.10
  • go.uber.org/goleak v1.1.11
  • go.uber.org/multierr v1.6.0
  • go.uber.org/zap v1.24.0
  • go.uber.org/zap v1.19.0
  • golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
  • golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
  • golang.org/x/lint v0.0.0-20190930215403-16217165b5de
  • golang.org/x/net v0.0.0-20190620200207-3b0461eec859
  • golang.org/x/net v0.0.0-20190311183353-d8887717615a
  • golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
  • golang.org/x/sync v0.0.0-20190423024810-112230192c58
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • golang.org/x/sys v0.0.0-20210423082822-04245dca01da
  • golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/text v0.3.0
  • golang.org/x/text v0.3.7
  • golang.org/x/text v0.3.6
  • golang.org/x/tools v0.0.0-20190311212946-11955173bddd
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/tools v0.0.0-20191108193012-7d206e10da11
  • golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
  • golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
  • gopkg.in/yaml.v2 v2.2.8
  • gopkg.in/yaml.v2 v2.2.2
  • gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
  • gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
  • gopkg.in/yaml.v3 v3.0.1
examples/_logger/zerolog/go.mod go
  • github.com/go-logr/logr v1.2.2
  • github.com/go-logr/zerologr v1.2.2
  • github.com/golang/snappy v0.0.1
  • github.com/klauspost/compress v1.13.6
  • github.com/mattn/go-colorable v0.1.12
  • github.com/mattn/go-isatty v0.0.14
  • github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
  • github.com/rs/zerolog v1.28.0
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.1
  • github.com/xdg-go/stringprep v1.0.3
  • github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
  • go.mongodb.org/mongo-driver v1.11.1
  • golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6
  • golang.org/x/text v0.3.7
examples/_logger/zerolog/go.sum go
  • github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534
  • github.com/davecgh/go-spew v1.1.1
  • github.com/go-logr/logr v1.2.2
  • github.com/go-logr/zerologr v1.2.2
  • github.com/godbus/dbus/v5 v5.0.4
  • github.com/golang/snappy v0.0.1
  • github.com/google/go-cmp v0.5.2
  • github.com/klauspost/compress v1.13.6
  • github.com/kr/pretty v0.1.0
  • github.com/kr/pty v1.1.1
  • github.com/kr/text v0.1.0
  • github.com/mattn/go-colorable v0.1.12
  • github.com/mattn/go-isatty v0.0.14
  • github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
  • github.com/pkg/errors v0.9.1
  • github.com/rs/xid v1.4.0
  • github.com/rs/zerolog v1.28.0
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.1
  • github.com/xdg-go/stringprep v1.0.3
  • github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
  • golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
  • golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210423082822-04245dca01da
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
  • golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/text v0.3.6
  • golang.org/x/text v0.3.7
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go.mod go
  • [v1.6.0, v1.6.1]
  • [v1.7.0, v1.7.1]
  • github.com/davecgh/go-spew v1.1.1
  • github.com/golang/snappy v0.0.1
  • github.com/google/go-cmp v0.5.2
  • github.com/klauspost/compress v1.13.6
  • github.com/kr/pretty v0.1.0
  • github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
  • github.com/xdg-go/scram v1.1.1
  • github.com/xdg-go/stringprep v1.0.3
  • github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
  • golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • retract (
go.sum go
  • github.com/davecgh/go-spew v1.1.1
  • github.com/golang/snappy v0.0.1
  • github.com/google/go-cmp v0.5.2
  • github.com/klauspost/compress v1.13.6
  • github.com/kr/pretty v0.1.0
  • github.com/kr/pty v1.1.1
  • github.com/kr/text v0.1.0
  • github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.1
  • github.com/xdg-go/stringprep v1.0.3
  • github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d
  • golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
  • golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210423082822-04245dca01da
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/text v0.3.6
  • golang.org/x/text v0.3.7
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
.evergreen/ocsp-requirements.txt pypi
  • asn1crypto ==1.3.0
  • bottle ==0.12.20
  • oscrypto ==1.2.0
.github/workflows/test.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • pre-commit/action v3.0.0 composite
Dockerfile docker
  • ubuntu 20.04 build
.github/workflows/codeql.yml actions
  • actions/checkout v4 composite
  • arduino/setup-task v2 composite
  • github/codeql-action/analyze v3 composite
  • github/codeql-action/init v3 composite
.github/workflows/create-release-branch.yml actions
  • mongodb-labs/drivers-github-tools/create-branch v2 composite
  • mongodb-labs/drivers-github-tools/secure-checkout v2 composite
  • mongodb-labs/drivers-github-tools/setup v2 composite
.github/workflows/release.yml actions
  • mongodb-labs/drivers-github-tools/golang/pre-publish v2 composite
  • mongodb-labs/drivers-github-tools/golang/publish v2 composite
  • mongodb-labs/drivers-github-tools/secure-checkout v2 composite
  • mongodb-labs/drivers-github-tools/setup v2 composite
internal/cmd/benchmark/go.mod go
  • ../../../ *
  • github.com/davecgh/go-spew v1.1.1
  • github.com/golang/snappy v0.0.4
  • github.com/klauspost/compress v1.16.7
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/stretchr/testify v1.8.1
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.2
  • github.com/xdg-go/stringprep v1.0.4
  • github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
  • golang.org/x/crypto v0.28.0
  • golang.org/x/sync v0.8.0
  • golang.org/x/text v0.19.0
  • gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
  • gopkg.in/yaml.v3 v3.0.1
internal/cmd/benchmark/go.sum go
  • github.com/davecgh/go-spew v1.1.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/golang/snappy v0.0.4
  • github.com/google/go-cmp v0.6.0
  • github.com/klauspost/compress v1.16.7
  • github.com/kr/pretty v0.2.1
  • github.com/kr/pty v1.1.1
  • github.com/kr/text v0.1.0
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/stretchr/objx v0.1.0
  • github.com/stretchr/objx v0.4.0
  • github.com/stretchr/objx v0.5.0
  • github.com/stretchr/testify v1.7.1
  • github.com/stretchr/testify v1.8.0
  • github.com/stretchr/testify v1.8.1
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.2
  • github.com/xdg-go/stringprep v1.0.4
  • github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
  • github.com/yuin/goldmark v1.4.13
  • golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
  • golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
  • golang.org/x/crypto v0.28.0
  • golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
  • golang.org/x/net v0.0.0-20190620200207-3b0461eec859
  • golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
  • golang.org/x/net v0.0.0-20220722155237-a158d28d115b
  • golang.org/x/sync v0.0.0-20190423024810-112230192c58
  • golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
  • golang.org/x/sync v0.8.0
  • golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
  • golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
  • golang.org/x/text v0.3.0
  • golang.org/x/text v0.3.3
  • golang.org/x/text v0.3.7
  • golang.org/x/text v0.3.8
  • golang.org/x/text v0.19.0
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e
  • golang.org/x/tools v0.1.12
  • golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
  • gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
  • gopkg.in/yaml.v3 v3.0.1
internal/cmd/compilecheck/go.mod go
  • ../../../ *
  • github.com/golang/snappy v0.0.4
  • github.com/klauspost/compress v1.16.7
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.2
  • github.com/xdg-go/stringprep v1.0.4
  • github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
  • golang.org/x/crypto v0.28.0
  • golang.org/x/sync v0.8.0
  • golang.org/x/text v0.19.0
internal/cmd/compilecheck/go.sum go
  • github.com/davecgh/go-spew v1.1.1
  • github.com/golang/snappy v0.0.4
  • github.com/google/go-cmp v0.6.0
  • github.com/klauspost/compress v1.16.7
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.2
  • github.com/xdg-go/stringprep v1.0.4
  • github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
  • github.com/yuin/goldmark v1.4.13
  • golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
  • golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
  • golang.org/x/crypto v0.28.0
  • golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
  • golang.org/x/net v0.0.0-20190620200207-3b0461eec859
  • golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
  • golang.org/x/net v0.0.0-20220722155237-a158d28d115b
  • golang.org/x/sync v0.0.0-20190423024810-112230192c58
  • golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
  • golang.org/x/sync v0.8.0
  • golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
  • golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
  • golang.org/x/text v0.3.0
  • golang.org/x/text v0.3.3
  • golang.org/x/text v0.3.7
  • golang.org/x/text v0.3.8
  • golang.org/x/text v0.19.0
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e
  • golang.org/x/tools v0.1.12
  • golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
internal/cmd/faas/awslambda/mongodb/go.mod go
  • ../../../../../ *
  • github.com/aws/aws-lambda-go v1.41.0
  • github.com/golang/snappy v0.0.4
  • github.com/klauspost/compress v1.16.7
  • github.com/stretchr/testify v1.8.1
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.2
  • github.com/xdg-go/stringprep v1.0.4
  • github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
  • golang.org/x/crypto v0.28.0
  • golang.org/x/sync v0.8.0
  • golang.org/x/text v0.19.0
internal/cmd/faas/awslambda/mongodb/go.sum go
  • github.com/aws/aws-lambda-go v1.41.0
  • github.com/davecgh/go-spew v1.1.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/golang/snappy v0.0.4
  • github.com/google/go-cmp v0.6.0
  • github.com/klauspost/compress v1.16.7
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/stretchr/objx v0.1.0
  • github.com/stretchr/objx v0.4.0
  • github.com/stretchr/objx v0.5.0
  • github.com/stretchr/testify v1.7.1
  • github.com/stretchr/testify v1.8.0
  • github.com/stretchr/testify v1.8.1
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.2
  • github.com/xdg-go/stringprep v1.0.4
  • github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
  • github.com/yuin/goldmark v1.4.13
  • golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
  • golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
  • golang.org/x/crypto v0.28.0
  • golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
  • golang.org/x/net v0.0.0-20190620200207-3b0461eec859
  • golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
  • golang.org/x/net v0.0.0-20220722155237-a158d28d115b
  • golang.org/x/sync v0.0.0-20190423024810-112230192c58
  • golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
  • golang.org/x/sync v0.8.0
  • golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
  • golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
  • golang.org/x/text v0.3.0
  • golang.org/x/text v0.3.3
  • golang.org/x/text v0.3.7
  • golang.org/x/text v0.3.8
  • golang.org/x/text v0.19.0
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e
  • golang.org/x/tools v0.1.12
  • golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
  • gopkg.in/yaml.v3 v3.0.1
.github/workflows/merge-up.yml actions
  • alcaeus/automatic-merge-up-action main composite
  • mongodb-labs/drivers-github-tools/secure-checkout v2 composite
internal/test/compilecheck/go.mod go
  • dario.cat/mergo v1.0.0
  • github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1
  • github.com/Microsoft/go-winio v0.6.2
  • github.com/cenkalti/backoff/v4 v4.2.1
  • github.com/containerd/containerd v1.7.27
  • github.com/containerd/log v0.1.0
  • github.com/containerd/platforms v0.2.1
  • github.com/cpuguy83/dockercfg v0.3.2
  • github.com/davecgh/go-spew v1.1.1
  • github.com/distribution/reference v0.6.0
  • github.com/docker/docker v27.1.1+incompatible
  • github.com/docker/go-connections v0.5.0
  • github.com/docker/go-units v0.5.0
  • github.com/felixge/httpsnoop v1.0.4
  • github.com/go-logr/logr v1.4.2
  • github.com/go-logr/stdr v1.2.2
  • github.com/go-ole/go-ole v1.2.6
  • github.com/gogo/protobuf v1.3.2
  • github.com/google/uuid v1.6.0
  • github.com/klauspost/compress v1.17.4
  • github.com/kr/text v0.2.0
  • github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0
  • github.com/magiconair/properties v1.8.7
  • github.com/moby/docker-image-spec v1.3.1
  • github.com/moby/patternmatcher v0.6.0
  • github.com/moby/sys/sequential v0.5.0
  • github.com/moby/sys/user v0.3.0
  • github.com/moby/sys/userns v0.1.0
  • github.com/moby/term v0.5.0
  • github.com/morikuni/aec v1.0.0
  • github.com/opencontainers/go-digest v1.0.0
  • github.com/opencontainers/image-spec v1.1.0
  • github.com/pkg/errors v0.9.1
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c
  • github.com/shirou/gopsutil/v3 v3.23.12
  • github.com/shoenig/go-m1cpu v0.1.6
  • github.com/sirupsen/logrus v1.9.3
  • github.com/stretchr/testify v1.10.0
  • github.com/testcontainers/testcontainers-go v0.35.0
  • github.com/tklauser/go-sysconf v0.3.12
  • github.com/tklauser/numcpus v0.6.1
  • github.com/yusufpapurcu/wmi v1.2.3
  • go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0
  • go.opentelemetry.io/otel v1.24.0
  • go.opentelemetry.io/otel/metric v1.24.0
  • go.opentelemetry.io/otel/trace v1.24.0
  • golang.org/x/crypto v0.31.0
  • golang.org/x/mod v0.24.0
  • golang.org/x/sys v0.28.0
  • google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237
  • gopkg.in/yaml.v3 v3.0.1
internal/test/compilecheck/go.sum go
  • 124 dependencies
internal/test/goleak/go.mod go
  • github.com/davecgh/go-spew v1.1.1
  • github.com/golang/snappy v1.0.0
  • github.com/klauspost/compress v1.16.7
  • github.com/kr/pretty v0.3.0
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/rogpeppe/go-internal v1.8.1
  • github.com/stretchr/testify v1.9.0
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.2
  • github.com/xdg-go/stringprep v1.0.4
  • github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
  • go.mongodb.org/mongo-driver/v2 v2.0.0-beta2
  • go.uber.org/goleak v1.3.0
  • golang.org/x/crypto v0.28.0
  • golang.org/x/sync v0.8.0
  • golang.org/x/text v0.19.0
  • gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
  • gopkg.in/yaml.v3 v3.0.1
internal/test/goleak/go.sum go
  • github.com/creack/pty v1.1.9
  • github.com/davecgh/go-spew v1.1.1
  • github.com/golang/snappy v1.0.0
  • github.com/google/go-cmp v0.6.0
  • github.com/klauspost/compress v1.16.7
  • github.com/kr/pretty v0.1.0
  • github.com/kr/pretty v0.2.1
  • github.com/kr/pretty v0.3.0
  • github.com/kr/pty v1.1.1
  • github.com/kr/text v0.1.0
  • github.com/kr/text v0.2.0
  • github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/rogpeppe/go-internal v1.6.1
  • github.com/rogpeppe/go-internal v1.8.1
  • github.com/stretchr/testify v1.9.0
  • github.com/xdg-go/pbkdf2 v1.0.0
  • github.com/xdg-go/scram v1.1.2
  • github.com/xdg-go/stringprep v1.0.4
  • github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
  • github.com/yuin/goldmark v1.4.13
  • go.mongodb.org/mongo-driver/v2 v2.0.0-beta2
  • go.uber.org/goleak v1.3.0
  • golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
  • golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
  • golang.org/x/crypto v0.28.0
  • golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
  • golang.org/x/net v0.0.0-20190620200207-3b0461eec859
  • golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
  • golang.org/x/net v0.0.0-20220722155237-a158d28d115b
  • golang.org/x/sync v0.0.0-20190423024810-112230192c58
  • golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
  • golang.org/x/sync v0.8.0
  • golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
  • golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
  • golang.org/x/text v0.3.0
  • golang.org/x/text v0.3.3
  • golang.org/x/text v0.3.7
  • golang.org/x/text v0.3.8
  • golang.org/x/text v0.19.0
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e
  • golang.org/x/tools v0.1.12
  • golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
  • gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
  • gopkg.in/errgo.v2 v2.1.0
  • gopkg.in/yaml.v3 v3.0.1