SYMBOL INDEX (7568 symbols across 568 files) FILE: bson/array_codec.go type arrayCodec (line 17) | type arrayCodec struct method EncodeValue (line 20) | func (ac *arrayCodec) EncodeValue(_ EncodeContext, vw ValueWriter, val... method DecodeValue (line 30) | func (ac *arrayCodec) DecodeValue(_ DecodeContext, vr ValueReader, val... FILE: bson/benchmark_test.go function init (line 24) | func init() { type encodetest (line 36) | type encodetest struct type nestedtest1 (line 51) | type nestedtest1 struct type nestedtest2 (line 55) | type nestedtest2 struct type nestedtest3 (line 59) | type nestedtest3 struct type nestedtest4 (line 63) | type nestedtest4 struct type nestedtest5 (line 67) | type nestedtest5 struct type nestedtest6 (line 71) | type nestedtest6 struct type nestedtest7 (line 75) | type nestedtest7 struct type nestedtest8 (line 79) | type nestedtest8 struct type nestedtest9 (line 83) | type nestedtest9 struct type nestedtest10 (line 87) | type nestedtest10 struct type nestedtest11 (line 91) | type nestedtest11 struct constant extendedBSONDir (line 147) | extendedBSONDir = "../testdata/extended_bson" function readExtJSONFile (line 157) | func readExtJSONFile(filename string) map[string]any { function BenchmarkMarshal (line 198) | func BenchmarkMarshal(b *testing.B) { function BenchmarkUnmarshal (line 284) | func BenchmarkUnmarshal(b *testing.B) { type codeResponse (line 439) | type codeResponse struct type codeNode (line 444) | type codeNode struct function codeInit (line 460) | func codeInit() { function BenchmarkCodeUnmarshal (line 503) | func BenchmarkCodeUnmarshal(b *testing.B) { function BenchmarkCodeMarshal (line 535) | func BenchmarkCodeMarshal(b *testing.B) { FILE: bson/bson_binary_vector_spec_test.go type bsonBinaryVectorTests (line 22) | type bsonBinaryVectorTests struct type bsonBinaryVectorTestCase (line 28) | type bsonBinaryVectorTestCase struct function TestBsonBinaryVectorSpec (line 38) | func TestBsonBinaryVectorSpec(t *testing.T) { function decodeTestSlice (line 85) | func decodeTestSlice[T int8 | float32 | byte](t *testing.T, data []byte)... function runBsonBinaryVectorTest (line 102) | func runBsonBinaryVectorTest(t *testing.T, testKey string, test bsonBina... FILE: bson/bson_corpus_spec_test.go type testCase (line 29) | type testCase struct type validityTestCase (line 39) | type validityTestCase struct type decodeErrorTestCase (line 51) | type decodeErrorTestCase struct type parseErrorTestCase (line 56) | type parseErrorTestCase struct function findJSONFilesInDir (line 63) | func findJSONFilesInDir(dir string) ([]string, error) { function seedExtJSON (line 83) | func seedExtJSON(f *testing.F, extJSON string, extJSONType string, desc ... function seedTestCase (line 94) | func seedTestCase(f *testing.F, tcase *testCase) { function seedBSONCorpus (line 117) | func seedBSONCorpus(f *testing.F) { function needsEscapedUnicode (line 140) | func needsEscapedUnicode(bsonType string) bool { function unescapeUnicode (line 144) | func unescapeUnicode(s, bsonType string) string { function normalizeCanonicalDouble (line 187) | func normalizeCanonicalDouble(t *testing.T, key string, cEJ string) stri... function normalizeRelaxedDouble (line 202) | func normalizeRelaxedDouble(t *testing.T, key string, rEJ string) string { function bsonToNative (line 218) | func bsonToNative(t *testing.T, b []byte, bType, testDesc string) D { function nativeToBSON (line 227) | func nativeToBSON(t *testing.T, cB []byte, doc D, testDesc, bType, docSr... function jsonToNative (line 239) | func jsonToNative(ej, ejType, testDesc string) (D, error) { function jsonToBytes (line 248) | func jsonToBytes(ej, ejType, testDesc string) ([]byte, error) { function nativeToJSON (line 263) | func nativeToJSON(t *testing.T, ej string, doc D, testDesc, ejType, ejSh... function runTest (line 274) | func runTest(t *testing.T, file string) { function TestBSONCorpus (line 429) | func TestBSONCorpus(t *testing.T) { function TestRelaxedUUIDValidation (line 438) | func TestRelaxedUUIDValidation(t *testing.T) { FILE: bson/bson_test.go function noerr (line 26) | func noerr(t *testing.T, err error) { function TestTimestamp (line 34) | func TestTimestamp(t *testing.T) { function TestPrimitiveIsZero (line 107) | func TestPrimitiveIsZero(t *testing.T) { function TestRegexCompare (line 129) | func TestRegexCompare(t *testing.T) { function TestDateTime (line 149) | func TestDateTime(t *testing.T) { function TestTimeRoundTrip (line 192) | func TestTimeRoundTrip(t *testing.T) { function TestNonNullTimeRoundTrip (line 221) | func TestNonNullTimeRoundTrip(t *testing.T) { function TestD (line 246) | func TestD(t *testing.T) { function TestDStringer (line 278) | func TestDStringer(t *testing.T) { function TestMStringer (line 284) | func TestMStringer(t *testing.T) { function TestD_MarshalJSON (line 303) | func TestD_MarshalJSON(t *testing.T) { function TestD_UnmarshalJSON (line 375) | func TestD_UnmarshalJSON(t *testing.T) { type stringerString (line 476) | type stringerString method String (line 478) | func (ss stringerString) String() string { type keyBool (line 482) | type keyBool method MarshalKey (line 484) | func (kb keyBool) MarshalKey() (string, error) { method UnmarshalKey (line 488) | func (kb *keyBool) UnmarshalKey(key string) error { type keyStruct (line 500) | type keyStruct struct method MarshalText (line 504) | func (k keyStruct) MarshalText() (text []byte, err error) { method UnmarshalText (line 510) | func (k *keyStruct) UnmarshalText(text []byte) error { function TestMapCodec (line 523) | func TestMapCodec(t *testing.T) { function TestExtJSONEscapeKey (line 587) | func TestExtJSONEscapeKey(t *testing.T) { function TestBsoncoreArray (line 614) | func TestBsoncoreArray(t *testing.T) { function BenchmarkDateTimeMarshalJSON (line 651) | func BenchmarkDateTimeMarshalJSON(b *testing.B) { function BenchmarkDateTimeUnmarshalJSON (line 666) | func BenchmarkDateTimeUnmarshalJSON(b *testing.B) { FILE: bson/bsoncodec.go type ValueEncoderError (line 19) | type ValueEncoderError struct method Error (line 26) | func (vee ValueEncoderError) Error() string { type ValueDecoderError (line 47) | type ValueDecoderError struct method Error (line 54) | func (vde ValueDecoderError) Error() string { type EncodeContext (line 78) | type EncodeContext struct type DecodeContext (line 98) | type DecodeContext struct type ValueEncoder (line 130) | type ValueEncoder interface type ValueEncoderFunc (line 136) | type ValueEncoderFunc method EncodeValue (line 139) | func (fn ValueEncoderFunc) EncodeValue(ec EncodeContext, vw ValueWrite... type ValueDecoder (line 148) | type ValueDecoder interface type ValueDecoderFunc (line 154) | type ValueDecoderFunc method DecodeValue (line 157) | func (fn ValueDecoderFunc) DecodeValue(dc DecodeContext, vr ValueReade... type typeDecoder (line 162) | type typeDecoder interface type typeDecoderFunc (line 167) | type typeDecoderFunc method decodeType (line 169) | func (fn typeDecoderFunc) decodeType(dc DecodeContext, vr ValueReader,... type decodeAdapter (line 174) | type decodeAdapter struct function decodeTypeOrValueWithInfo (line 184) | func decodeTypeOrValueWithInfo(vd ValueDecoder, dc DecodeContext, vr Val... FILE: bson/bsoncodec_test.go function ExampleValueEncoder (line 15) | func ExampleValueEncoder() { function ExampleValueDecoder (line 25) | func ExampleValueDecoder() { type llCodec (line 44) | type llCodec struct method EncodeValue (line 51) | func (llc *llCodec) EncodeValue(_ EncodeContext, _ ValueWriter, i any)... method DecodeValue (line 60) | func (llc *llCodec) DecodeValue(_ DecodeContext, _ ValueReader, val re... FILE: bson/bsonrw_test.go type invoked (line 21) | type invoked method String (line 78) | func (i invoked) String() string { constant nothing (line 25) | nothing invoked = iota constant readArray (line 26) | readArray constant readBinary (line 27) | readBinary constant readBoolean (line 28) | readBoolean constant readDocument (line 29) | readDocument constant readCodeWithScope (line 30) | readCodeWithScope constant readDBPointer (line 31) | readDBPointer constant readDateTime (line 32) | readDateTime constant readDecimal128 (line 33) | readDecimal128 constant readDouble (line 34) | readDouble constant readInt32 (line 35) | readInt32 constant readInt64 (line 36) | readInt64 constant readJavascript (line 37) | readJavascript constant readMaxKey (line 38) | readMaxKey constant readMinKey (line 39) | readMinKey constant readNull (line 40) | readNull constant readObjectID (line 41) | readObjectID constant readRegex (line 42) | readRegex constant readString (line 43) | readString constant readSymbol (line 44) | readSymbol constant readTimestamp (line 45) | readTimestamp constant readUndefined (line 46) | readUndefined constant readElement (line 47) | readElement constant readValue (line 48) | readValue constant writeArray (line 49) | writeArray constant writeBinary (line 50) | writeBinary constant writeBinaryWithSubtype (line 51) | writeBinaryWithSubtype constant writeBoolean (line 52) | writeBoolean constant writeCodeWithScope (line 53) | writeCodeWithScope constant writeDBPointer (line 54) | writeDBPointer constant writeDateTime (line 55) | writeDateTime constant writeDecimal128 (line 56) | writeDecimal128 constant writeDouble (line 57) | writeDouble constant writeInt32 (line 58) | writeInt32 constant writeInt64 (line 59) | writeInt64 constant writeJavascript (line 60) | writeJavascript constant writeMaxKey (line 61) | writeMaxKey constant writeMinKey (line 62) | writeMinKey constant writeNull (line 63) | writeNull constant writeObjectID (line 64) | writeObjectID constant writeRegex (line 65) | writeRegex constant writeString (line 66) | writeString constant writeDocument (line 67) | writeDocument constant writeSymbol (line 68) | writeSymbol constant writeTimestamp (line 69) | writeTimestamp constant writeUndefined (line 70) | writeUndefined constant writeDocumentElement (line 71) | writeDocumentElement constant writeDocumentEnd (line 72) | writeDocumentEnd constant writeArrayElement (line 73) | writeArrayElement constant writeArrayEnd (line 74) | writeArrayEnd constant skip (line 75) | skip type valueReaderWriter (line 186) | type valueReaderWriter struct method checkdepth (line 197) | func (llvrw *valueReaderWriter) checkdepth() { method Type (line 205) | func (llvrw *valueReaderWriter) Type() Type { method Skip (line 211) | func (llvrw *valueReaderWriter) Skip() error { method ReadArray (line 221) | func (llvrw *valueReaderWriter) ReadArray() (ArrayReader, error) { method ReadBinary (line 232) | func (llvrw *valueReaderWriter) ReadBinary() (b []byte, btype byte, er... method ReadBoolean (line 254) | func (llvrw *valueReaderWriter) ReadBoolean() (bool, error) { method ReadDocument (line 278) | func (llvrw *valueReaderWriter) ReadDocument() (DocumentReader, error) { method ReadCodeWithScope (line 289) | func (llvrw *valueReaderWriter) ReadCodeWithScope() (code string, dr D... method ReadDBPointer (line 300) | func (llvrw *valueReaderWriter) ReadDBPointer() (ns string, oid Object... method ReadDateTime (line 322) | func (llvrw *valueReaderWriter) ReadDateTime() (int64, error) { method ReadDecimal128 (line 339) | func (llvrw *valueReaderWriter) ReadDecimal128() (Decimal128, error) { method ReadDouble (line 356) | func (llvrw *valueReaderWriter) ReadDouble() (float64, error) { method ReadInt32 (line 373) | func (llvrw *valueReaderWriter) ReadInt32() (int32, error) { method ReadInt64 (line 390) | func (llvrw *valueReaderWriter) ReadInt64() (int64, error) { method ReadJavascript (line 406) | func (llvrw *valueReaderWriter) ReadJavascript() (code string, err err... method ReadMaxKey (line 422) | func (llvrw *valueReaderWriter) ReadMaxKey() error { method ReadMinKey (line 433) | func (llvrw *valueReaderWriter) ReadMinKey() error { method ReadNull (line 444) | func (llvrw *valueReaderWriter) ReadNull() error { method ReadObjectID (line 455) | func (llvrw *valueReaderWriter) ReadObjectID() (ObjectID, error) { method ReadRegex (line 471) | func (llvrw *valueReaderWriter) ReadRegex() (pattern string, options s... method ReadString (line 492) | func (llvrw *valueReaderWriter) ReadString() (string, error) { method ReadSymbol (line 508) | func (llvrw *valueReaderWriter) ReadSymbol() (symbol string, err error) { method ReadTimestamp (line 531) | func (llvrw *valueReaderWriter) ReadTimestamp() (t uint32, i uint32, e... method ReadUndefined (line 552) | func (llvrw *valueReaderWriter) ReadUndefined() error { method WriteArray (line 563) | func (llvrw *valueReaderWriter) WriteArray() (ArrayWriter, error) { method WriteBinary (line 573) | func (llvrw *valueReaderWriter) WriteBinary([]byte) error { method WriteBinaryWithSubtype (line 583) | func (llvrw *valueReaderWriter) WriteBinaryWithSubtype([]byte, byte) e... method WriteBoolean (line 593) | func (llvrw *valueReaderWriter) WriteBoolean(bool) error { method WriteCodeWithScope (line 603) | func (llvrw *valueReaderWriter) WriteCodeWithScope(string) (DocumentWr... method WriteDBPointer (line 613) | func (llvrw *valueReaderWriter) WriteDBPointer(string, ObjectID) error { method WriteDateTime (line 623) | func (llvrw *valueReaderWriter) WriteDateTime(int64) error { method WriteDecimal128 (line 633) | func (llvrw *valueReaderWriter) WriteDecimal128(Decimal128) error { method WriteDouble (line 643) | func (llvrw *valueReaderWriter) WriteDouble(float64) error { method WriteInt32 (line 653) | func (llvrw *valueReaderWriter) WriteInt32(int32) error { method WriteInt64 (line 663) | func (llvrw *valueReaderWriter) WriteInt64(int64) error { method WriteJavascript (line 673) | func (llvrw *valueReaderWriter) WriteJavascript(string) error { method WriteMaxKey (line 683) | func (llvrw *valueReaderWriter) WriteMaxKey() error { method WriteMinKey (line 693) | func (llvrw *valueReaderWriter) WriteMinKey() error { method WriteNull (line 703) | func (llvrw *valueReaderWriter) WriteNull() error { method WriteObjectID (line 713) | func (llvrw *valueReaderWriter) WriteObjectID(ObjectID) error { method WriteRegex (line 723) | func (llvrw *valueReaderWriter) WriteRegex(string, string) error { method WriteString (line 733) | func (llvrw *valueReaderWriter) WriteString(string) error { method WriteDocument (line 743) | func (llvrw *valueReaderWriter) WriteDocument() (DocumentWriter, error) { method WriteSymbol (line 753) | func (llvrw *valueReaderWriter) WriteSymbol(string) error { method WriteTimestamp (line 763) | func (llvrw *valueReaderWriter) WriteTimestamp(uint32, uint32) error { method WriteUndefined (line 773) | func (llvrw *valueReaderWriter) WriteUndefined() error { method ReadElement (line 783) | func (llvrw *valueReaderWriter) ReadElement() (string, ValueReader, er... method WriteDocumentElement (line 794) | func (llvrw *valueReaderWriter) WriteDocumentElement(string) (ValueWri... method WriteDocumentEnd (line 805) | func (llvrw *valueReaderWriter) WriteDocumentEnd() error { method ReadValue (line 816) | func (llvrw *valueReaderWriter) ReadValue() (ValueReader, error) { method WriteArrayElement (line 827) | func (llvrw *valueReaderWriter) WriteArrayElement() (ValueWriter, erro... method WriteArrayEnd (line 838) | func (llvrw *valueReaderWriter) WriteArrayEnd() error { FILE: bson/buffered_byte_src.go type bufferedByteSrc (line 17) | type bufferedByteSrc struct method readExact (line 26) | func (b *bufferedByteSrc) readExact(p []byte) (int, error) { method ReadByte (line 36) | func (b *bufferedByteSrc) ReadByte() (byte, error) { method peek (line 45) | func (b *bufferedByteSrc) peek(n int) ([]byte, error) { method discard (line 56) | func (b *bufferedByteSrc) discard(n int) (int, error) { method readSlice (line 73) | func (b *bufferedByteSrc) readSlice(delim byte) ([]byte, error) { method pos (line 96) | func (b *bufferedByteSrc) pos() int64 { method regexLength (line 101) | func (b *bufferedByteSrc) regexLength() (int32, error) { method streamable (line 121) | func (*bufferedByteSrc) streamable() bool { method reset (line 125) | func (b *bufferedByteSrc) reset() { FILE: bson/buffered_byte_src_test.go function TestBufferedvalueReader_discard (line 18) | func TestBufferedvalueReader_discard(t *testing.T) { function TestBufferedvalueReader_peek (line 85) | func TestBufferedvalueReader_peek(t *testing.T) { FILE: bson/byte_slice_codec.go type byteSliceCodec (line 15) | type byteSliceCodec struct method EncodeValue (line 27) | func (bsc *byteSliceCodec) EncodeValue(ec EncodeContext, vw ValueWrite... method decodeType (line 37) | func (bsc *byteSliceCodec) decodeType(_ DecodeContext, vr ValueReader,... method DecodeValue (line 85) | func (bsc *byteSliceCodec) DecodeValue(dc DecodeContext, vr ValueReade... FILE: bson/codec_cache.go function init (line 17) | func init() { type typeEncoderCache (line 30) | type typeEncoderCache struct method Store (line 34) | func (c *typeEncoderCache) Store(rt reflect.Type, enc ValueEncoder) { method Load (line 38) | func (c *typeEncoderCache) Load(rt reflect.Type) (ValueEncoder, bool) { method LoadOrStore (line 45) | func (c *typeEncoderCache) LoadOrStore(rt reflect.Type, enc ValueEncod... method Clone (line 52) | func (c *typeEncoderCache) Clone() *typeEncoderCache { type typeDecoderCache (line 63) | type typeDecoderCache struct method Store (line 67) | func (c *typeDecoderCache) Store(rt reflect.Type, dec ValueDecoder) { method Load (line 71) | func (c *typeDecoderCache) Load(rt reflect.Type) (ValueDecoder, bool) { method LoadOrStore (line 78) | func (c *typeDecoderCache) LoadOrStore(rt reflect.Type, dec ValueDecod... method Clone (line 85) | func (c *typeDecoderCache) Clone() *typeDecoderCache { type kindEncoderCacheEntry (line 100) | type kindEncoderCacheEntry struct type kindEncoderCache (line 104) | type kindEncoderCache struct method Store (line 108) | func (c *kindEncoderCache) Store(rt reflect.Kind, enc ValueEncoder) { method Load (line 114) | func (c *kindEncoderCache) Load(rt reflect.Kind) (ValueEncoder, bool) { method Clone (line 123) | func (c *kindEncoderCache) Clone() *kindEncoderCache { type kindDecoderCacheEntry (line 137) | type kindDecoderCacheEntry struct type kindDecoderCache (line 141) | type kindDecoderCache struct method Store (line 145) | func (c *kindDecoderCache) Store(rt reflect.Kind, dec ValueDecoder) { method Load (line 151) | func (c *kindDecoderCache) Load(rt reflect.Kind) (ValueDecoder, bool) { method Clone (line 160) | func (c *kindDecoderCache) Clone() *kindDecoderCache { FILE: bson/codec_cache_test.go function TestTypeCache (line 37) | func TestTypeCache(t *testing.T) { function TestTypeCacheClone (line 63) | func TestTypeCacheClone(t *testing.T) { function TestKindCacheArray (line 83) | func TestKindCacheArray(t *testing.T) { function TestKindCacheClone (line 108) | func TestKindCacheClone(t *testing.T) { function TestKindCacheEncoderNilEncoder (line 134) | func TestKindCacheEncoderNilEncoder(t *testing.T) { function BenchmarkEncoderCacheLoad (line 153) | func BenchmarkEncoderCacheLoad(b *testing.B) { function BenchmarkEncoderCacheStore (line 167) | func BenchmarkEncoderCacheStore(b *testing.B) { FILE: bson/cond_addr_codec.go type condAddrEncoder (line 14) | type condAddrEncoder struct method EncodeValue (line 28) | func (cae *condAddrEncoder) EncodeValue(ec EncodeContext, vw ValueWrit... function newCondAddrEncoder (line 22) | func newCondAddrEncoder(canAddrEnc, elseEnc ValueEncoder) *condAddrEncod... type condAddrDecoder (line 39) | type condAddrDecoder struct method DecodeValue (line 53) | func (cad *condAddrDecoder) DecodeValue(dc DecodeContext, vr ValueRead... function newCondAddrDecoder (line 47) | func newCondAddrDecoder(canAddrDec, elseDec ValueDecoder) *condAddrDecod... FILE: bson/cond_addr_codec_test.go function TestCondAddrCodec (line 16) | func TestCondAddrCodec(t *testing.T) { FILE: bson/copier.go function copyDocument (line 18) | func copyDocument(dst ValueWriter, src ValueReader) error { function copyArrayFromBytes (line 34) | func copyArrayFromBytes(dst ValueWriter, src []byte) error { function copyDocumentFromBytes (line 50) | func copyDocumentFromBytes(dst ValueWriter, src []byte) error { type writeElementFn (line 64) | type writeElementFn function copyBytesToArrayWriter (line 68) | func copyBytesToArrayWriter(dst ArrayWriter, src []byte) error { function copyBytesToDocumentWriter (line 78) | func copyBytesToDocumentWriter(dst DocumentWriter, src []byte) error { function copyBytesToValueWriter (line 86) | func copyBytesToValueWriter(src []byte, wef writeElementFn) error { function copyDocumentToBytes (line 137) | func copyDocumentToBytes(src ValueReader) ([]byte, error) { function appendDocumentBytes (line 143) | func appendDocumentBytes(dst []byte, src ValueReader) ([]byte, error) { function appendArrayBytes (line 160) | func appendArrayBytes(dst []byte, src ValueReader) ([]byte, error) { function copyValueFromBytes (line 177) | func copyValueFromBytes(dst ValueWriter, t Type, src []byte) error { function copyValueToBytes (line 193) | func copyValueToBytes(src ValueReader) (Type, []byte, error) { function copyValue (line 213) | func copyValue(dst ValueWriter, src ValueReader) error { function copyArray (line 365) | func copyArray(dst ValueWriter, src ValueReader) error { function copyDocumentCore (line 399) | func copyDocumentCore(dw DocumentWriter, dr DocumentReader) error { type bytesReader (line 426) | type bytesReader interface type bytesWriter (line 431) | type bytesWriter interface FILE: bson/copier_test.go function TestCopier (line 19) | func TestCopier(t *testing.T) { FILE: bson/decimal.go constant MaxDecimal128Exp (line 26) | MaxDecimal128Exp = 6111 constant MinDecimal128Exp (line 27) | MinDecimal128Exp = -6176 type Decimal128 (line 38) | type Decimal128 struct method GetBytes (line 49) | func (d Decimal128) GetBytes() (uint64, uint64) { method String (line 54) | func (d Decimal128) String() string { method BigInt (line 59) | func (d Decimal128) BigInt() (*big.Int, int, error) { method IsNaN (line 107) | func (d Decimal128) IsNaN() bool { method IsInf (line 116) | func (d Decimal128) IsInf() int { method IsZero (line 128) | func (d Decimal128) IsZero() bool { method MarshalJSON (line 133) | func (d Decimal128) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 140) | func (d *Decimal128) UnmarshalJSON(b []byte) error { function NewDecimal128 (line 43) | func NewDecimal128(h, l uint64) Decimal128 { function dErr (line 181) | func dErr(s string) (Decimal128, error) { function ParseDecimal128 (line 190) | func ParseDecimal128(s string) (Decimal128, error) { function ParseDecimal128FromBigInt (line 261) | func ParseDecimal128FromBigInt(bi *big.Int, exp int) (Decimal128, bool) { function bigIntCmpAbs (line 328) | func bigIntCmpAbs(x, y *big.Int) int { function bigIntAbsValue (line 336) | func bigIntAbsValue(b *big.Int) *big.Int { FILE: bson/decimal_test.go type bigIntTestCase (line 19) | type bigIntTestCase struct function parseBigInt (line 31) | func parseBigInt(s string) *big.Int { function TestDecimal128_BigInt (line 99) | func TestDecimal128_BigInt(t *testing.T) { function TestParseDecimal128FromBigInt (line 118) | func TestParseDecimal128FromBigInt(t *testing.T) { function TestParseDecimal128 (line 135) | func TestParseDecimal128(t *testing.T) { function TestDecimal128_JSON (line 177) | func TestDecimal128_JSON(t *testing.T) { FILE: bson/decode_value_fuzz_test.go function FuzzDecodeValue (line 15) | func FuzzDecodeValue(f *testing.F) { FILE: bson/decoder.go type Decoder (line 30) | type Decoder struct method Decode (line 47) | func (d *Decoder) Decode(val any) error { method Reset (line 81) | func (d *Decoder) Reset(vr ValueReader) { method SetRegistry (line 86) | func (d *Decoder) SetRegistry(r *Registry) { method DefaultDocumentM (line 92) | func (d *Decoder) DefaultDocumentM() { method DefaultDocumentMap (line 99) | func (d *Decoder) DefaultDocumentMap() { method AllowTruncatingDoubles (line 106) | func (d *Decoder) AllowTruncatingDoubles() { method BinaryAsSlice (line 112) | func (d *Decoder) BinaryAsSlice() { method ObjectIDAsHexString (line 117) | func (d *Decoder) ObjectIDAsHexString() { method UseJSONStructTags (line 123) | func (d *Decoder) UseJSONStructTags() { method UseLocalTimeZone (line 129) | func (d *Decoder) UseLocalTimeZone() { method ZeroMaps (line 135) | func (d *Decoder) ZeroMaps() { method ZeroStructs (line 141) | func (d *Decoder) ZeroStructs() { function NewDecoder (line 36) | func NewDecoder(vr ValueReader) *Decoder { FILE: bson/decoder_example_test.go function ExampleDecoder (line 19) | func ExampleDecoder() { function ExampleDecoder_DefaultDocumentM (line 52) | func ExampleDecoder_DefaultDocumentM() { function ExampleDecoder_DefaultDocumentMap (line 97) | func ExampleDecoder_DefaultDocumentMap() { function ExampleDecoder_UseJSONStructTags (line 142) | func ExampleDecoder_UseJSONStructTags() { function ExampleDecoder_extendedJSON (line 179) | func ExampleDecoder_extendedJSON() { function ExampleDecoder_multipleExtendedJSONDocuments (line 208) | func ExampleDecoder_multipleExtendedJSONDocuments() { FILE: bson/decoder_test.go function TestDecodeValue (line 21) | func TestDecodeValue(t *testing.T) { function TestDecodingInterfaces (line 42) | func TestDecodingInterfaces(t *testing.T) { function TestDecoder (line 221) | func TestDecoder(t *testing.T) { type testUnmarshaler (line 430) | type testUnmarshaler struct method UnmarshalBSON (line 436) | func (tu *testUnmarshaler) UnmarshalBSON(d []byte) error { function TestDecoderConfiguration (line 442) | func TestDecoderConfiguration(t *testing.T) { FILE: bson/default_value_decoders.go type decodeBinaryError (line 23) | type decodeBinaryError struct method Error (line 28) | func (d decodeBinaryError) Error() string { function registerDefaultDecoders (line 38) | func registerDefaultDecoders(reg *Registry) { function dDecodeValue (line 111) | func dDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Value) e... function booleanDecodeType (line 166) | func booleanDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) ... function booleanDecodeValue (line 213) | func booleanDecodeValue(dctx DecodeContext, vr ValueReader, val reflect.... function intDecodeType (line 227) | func intDecodeType(dc DecodeContext, vr ValueReader, t reflect.Type) (re... function intDecodeValue (line 311) | func intDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Value)... function floatDecodeType (line 329) | func floatDecodeType(dc DecodeContext, vr ValueReader, t reflect.Type) (... function floatDecodeValue (line 389) | func floatDecodeValue(ec DecodeContext, vr ValueReader, val reflect.Valu... function javaScriptDecodeType (line 407) | func javaScriptDecodeType(_ DecodeContext, vr ValueReader, t reflect.Typ... function javaScriptDecodeValue (line 436) | func javaScriptDecodeValue(dctx DecodeContext, vr ValueReader, val refle... function symbolDecodeType (line 450) | func symbolDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) (... function symbolDecodeValue (line 491) | func symbolDecodeValue(dctx DecodeContext, vr ValueReader, val reflect.V... function binaryDecode (line 505) | func binaryDecode(vr ValueReader) (Binary, error) { function binaryDecodeType (line 530) | func binaryDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) (... function binaryDecodeValue (line 547) | func binaryDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Val... function vectorDecodeType (line 561) | func vectorDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) (... function vectorDecodeValue (line 584) | func vectorDecodeValue(dctx DecodeContext, vr ValueReader, val reflect.V... function undefinedDecodeType (line 603) | func undefinedDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type... function undefinedDecodeValue (line 629) | func undefinedDecodeValue(dc DecodeContext, vr ValueReader, val reflect.... function objectIDDecodeType (line 644) | func objectIDDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type)... function objectIDDecodeValue (line 690) | func objectIDDecodeValue(dc DecodeContext, vr ValueReader, val reflect.V... function dateTimeDecodeType (line 704) | func dateTimeDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type)... function dateTimeDecodeValue (line 733) | func dateTimeDecodeValue(dc DecodeContext, vr ValueReader, val reflect.V... function nullDecodeType (line 747) | func nullDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) (re... function nullDecodeValue (line 773) | func nullDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Value... function regexDecodeType (line 787) | func regexDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) (r... function regexDecodeValue (line 816) | func regexDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Valu... function dbPointerDecodeType (line 830) | func dbPointerDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type... function dbPointerDecodeValue (line 860) | func dbPointerDecodeValue(dc DecodeContext, vr ValueReader, val reflect.... function timestampDecodeType (line 874) | func timestampDecodeType(_ DecodeContext, vr ValueReader, reflectType re... function timestampDecodeValue (line 903) | func timestampDecodeValue(dc DecodeContext, vr ValueReader, val reflect.... function minKeyDecodeType (line 917) | func minKeyDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) (... function minKeyDecodeValue (line 945) | func minKeyDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Val... function maxKeyDecodeType (line 959) | func maxKeyDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) (... function maxKeyDecodeValue (line 987) | func maxKeyDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Val... function decimal128DecodeType (line 1001) | func decimal128DecodeType(_ DecodeContext, vr ValueReader, t reflect.Typ... function decimal128DecodeValue (line 1030) | func decimal128DecodeValue(dctx DecodeContext, vr ValueReader, val refle... function jsonNumberDecodeType (line 1044) | func jsonNumberDecodeType(_ DecodeContext, vr ValueReader, t reflect.Typ... function jsonNumberDecodeValue (line 1089) | func jsonNumberDecodeValue(dc DecodeContext, vr ValueReader, val reflect... function urlDecodeType (line 1103) | func urlDecodeType(_ DecodeContext, vr ValueReader, t reflect.Type) (ref... function urlDecodeValue (line 1138) | func urlDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Value)... function arrayDecodeValue (line 1153) | func arrayDecodeValue(dc DecodeContext, vr ValueReader, val reflect.Valu... function valueUnmarshalerDecodeValue (line 1219) | func valueUnmarshalerDecodeValue(_ DecodeContext, vr ValueReader, val re... function unmarshalerDecodeValue (line 1264) | func unmarshalerDecodeValue(_ DecodeContext, vr ValueReader, val reflect... function coreDocumentDecodeValue (line 1309) | func coreDocumentDecodeValue(_ DecodeContext, vr ValueReader, val reflec... function decodeDefault (line 1330) | func decodeDefault(dc DecodeContext, vr ValueReader, val reflect.Value) ... function codeWithScopeDecodeType (line 1422) | func codeWithScopeDecodeType(dc DecodeContext, vr ValueReader, t reflect... function codeWithScopeDecodeValue (line 1468) | func codeWithScopeDecodeValue(dc DecodeContext, vr ValueReader, val refl... function decodeD (line 1482) | func decodeD(dc DecodeContext, vr ValueReader, _ reflect.Value) ([]refle... function decodeElemsFromDocumentReader (line 1497) | func decodeElemsFromDocumentReader(dc DecodeContext, dr DocumentReader) ... FILE: bson/default_value_decoders_test.go function TestDefaultValueDecoders (line 26) | func TestDefaultValueDecoders(t *testing.T) { function buildDocumentArray (line 3855) | func buildDocumentArray(fn func([]byte) []byte) []byte { function buildArray (line 3862) | func buildArray(vals []byte) []byte { function appendArrayElement (line 3869) | func appendArrayElement(dst []byte, key string, vals []byte) []byte { function buildDocument (line 3877) | func buildDocument(elems []byte) []byte { function buildDefaultRegistry (line 3884) | func buildDefaultRegistry() *Registry { FILE: bson/default_value_encoders.go function encodeElement (line 35) | func encodeElement(ec EncodeContext, dw DocumentWriter, e E) error { function registerDefaultEncoders (line 58) | func registerDefaultEncoders(reg *Registry) { function booleanEncodeValue (line 108) | func booleanEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Val... function fitsIn32Bits (line 115) | func fitsIn32Bits(i int64) bool { function intEncodeValue (line 120) | func intEncodeValue(ec EncodeContext, vw ValueWriter, val reflect.Value)... function floatEncodeValue (line 146) | func floatEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Value... function objectIDEncodeValue (line 156) | func objectIDEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Va... function decimal128EncodeValue (line 164) | func decimal128EncodeValue(_ EncodeContext, vw ValueWriter, val reflect.... function jsonNumberEncodeValue (line 172) | func jsonNumberEncodeValue(ec EncodeContext, vw ValueWriter, val reflect... function urlEncodeValue (line 192) | func urlEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Value) ... function arrayEncodeValue (line 201) | func arrayEncodeValue(ec EncodeContext, vw ValueWriter, val reflect.Valu... function lookupElementEncoder (line 271) | func lookupElementEncoder(ec EncodeContext, origEncoder ValueEncoder, cu... function valueMarshalerEncodeValue (line 285) | func valueMarshalerEncodeValue(_ EncodeContext, vw ValueWriter, val refl... function marshalerEncodeValue (line 313) | func marshalerEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.V... function javaScriptEncodeValue (line 341) | func javaScriptEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.... function symbolEncodeValue (line 350) | func symbolEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Valu... function binaryEncodeValue (line 359) | func binaryEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Valu... function vectorEncodeValue (line 369) | func vectorEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Valu... function undefinedEncodeValue (line 384) | func undefinedEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.V... function dateTimeEncodeValue (line 393) | func dateTimeEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Va... function nullEncodeValue (line 402) | func nullEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Value)... function regexEncodeValue (line 411) | func regexEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Value... function dbPointerEncodeValue (line 422) | func dbPointerEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.V... function timestampEncodeValue (line 433) | func timestampEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.V... function minKeyEncodeValue (line 444) | func minKeyEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Valu... function maxKeyEncodeValue (line 453) | func maxKeyEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Valu... function coreDocumentEncodeValue (line 462) | func coreDocumentEncodeValue(_ EncodeContext, vw ValueWriter, val reflec... function codeWithScopeEncodeValue (line 473) | func codeWithScopeEncodeValue(ec EncodeContext, vw ValueWriter, val refl... function isImplementationNil (line 512) | func isImplementationNil(val reflect.Value, inter reflect.Type) bool { FILE: bson/default_value_encoders_test.go type myInterface (line 25) | type myInterface interface type myStruct (line 29) | type myStruct struct method Foo (line 33) | func (ms myStruct) Foo() int { function TestDefaultValueEncoders (line 37) | func TestDefaultValueEncoders(t *testing.T) { type testValueMarshalPtr (line 1741) | type testValueMarshalPtr struct method MarshalBSONValue (line 1747) | func (tvm *testValueMarshalPtr) MarshalBSONValue() (byte, []byte, erro... type testMarshalPtr (line 1751) | type testMarshalPtr struct method MarshalBSON (line 1756) | func (tvm *testMarshalPtr) MarshalBSON() ([]byte, error) { FILE: bson/empty_interface_codec.go type emptyInterfaceCodec (line 14) | type emptyInterfaceCodec struct method EncodeValue (line 26) | func (eic *emptyInterfaceCodec) EncodeValue(ec EncodeContext, vw Value... method getEmptyInterfaceDecodeType (line 42) | func (eic *emptyInterfaceCodec) getEmptyInterfaceDecodeType(dc DecodeC... method decodeType (line 79) | func (eic *emptyInterfaceCodec) decodeType(dc DecodeContext, vr ValueR... method DecodeValue (line 115) | func (eic *emptyInterfaceCodec) DecodeValue(dc DecodeContext, vr Value... FILE: bson/encoder.go type Encoder (line 25) | type Encoder struct method Encode (line 41) | func (e *Encoder) Encode(val any) error { method Reset (line 61) | func (e *Encoder) Reset(vw ValueWriter) { method SetRegistry (line 66) | func (e *Encoder) SetRegistry(r *Registry) { method ErrorOnInlineDuplicates (line 72) | func (e *Encoder) ErrorOnInlineDuplicates() { method IntMinSize (line 79) | func (e *Encoder) IntMinSize() { method StringifyMapKeysWithFmt (line 85) | func (e *Encoder) StringifyMapKeysWithFmt() { method NilMapAsEmpty (line 91) | func (e *Encoder) NilMapAsEmpty() { method NilSliceAsEmpty (line 97) | func (e *Encoder) NilSliceAsEmpty() { method NilByteSliceAsEmpty (line 103) | func (e *Encoder) NilByteSliceAsEmpty() { method OmitZeroStruct (line 116) | func (e *Encoder) OmitZeroStruct() { method OmitEmpty (line 122) | func (e *Encoder) OmitEmpty() { method UseJSONStructTags (line 128) | func (e *Encoder) UseJSONStructTags() { function NewEncoder (line 31) | func NewEncoder(vw ValueWriter) *Encoder { FILE: bson/encoder_example_test.go function ExampleEncoder (line 18) | func ExampleEncoder() { type CityState (line 47) | type CityState struct method String (line 52) | func (k CityState) String() string { function ExampleEncoder_StringifyMapKeysWithFmt (line 56) | func ExampleEncoder_StringifyMapKeysWithFmt() { function ExampleEncoder_UseJSONStructTags (line 81) | func ExampleEncoder_UseJSONStructTags() { function ExampleEncoder_multipleBSONDocuments (line 114) | func ExampleEncoder_multipleBSONDocuments() { function ExampleEncoder_extendedJSON (line 157) | func ExampleEncoder_extendedJSON() { function ExampleEncoder_multipleExtendedJSONDocuments (line 186) | func ExampleEncoder_multipleExtendedJSONDocuments() { function ExampleEncoder_IntMinSize (line 219) | func ExampleEncoder_IntMinSize() { FILE: bson/encoder_test.go function TestBasicEncode (line 21) | func TestBasicEncode(t *testing.T) { function TestEncoderEncode (line 40) | func TestEncoderEncode(t *testing.T) { type testMarshaler (line 117) | type testMarshaler struct method MarshalBSON (line 122) | func (tm testMarshaler) MarshalBSON() ([]byte, error) { return tm.buf,... function docToBytes (line 124) | func docToBytes(d any) []byte { type stringerTest (line 132) | type stringerTest struct method String (line 134) | func (stringerTest) String() string { function TestEncoderConfiguration (line 138) | func TestEncoderConfiguration(t *testing.T) { FILE: bson/example_test.go function ExampleRaw_unmarshal (line 17) | func ExampleRaw_unmarshal() { function ExampleRaw_marshal (line 45) | func ExampleRaw_marshal() { function ExampleRawValue_unmarshal (line 70) | func ExampleRawValue_unmarshal() { function ExampleRawValue_marshal (line 117) | func ExampleRawValue_marshal() { FILE: bson/extjson_parser.go constant maxNestingDepth (line 18) | maxNestingDepth = 200 type jsonParseState (line 23) | type jsonParseState constant jpsStartState (line 26) | jpsStartState jsonParseState = iota constant jpsSawBeginObject (line 27) | jpsSawBeginObject constant jpsSawEndObject (line 28) | jpsSawEndObject constant jpsSawBeginArray (line 29) | jpsSawBeginArray constant jpsSawEndArray (line 30) | jpsSawEndArray constant jpsSawColon (line 31) | jpsSawColon constant jpsSawComma (line 32) | jpsSawComma constant jpsSawKey (line 33) | jpsSawKey constant jpsSawValue (line 34) | jpsSawValue constant jpsDoneState (line 35) | jpsDoneState constant jpsInvalidState (line 36) | jpsInvalidState type jsonParseMode (line 39) | type jsonParseMode constant jpmInvalidMode (line 42) | jpmInvalidMode jsonParseMode = iota constant jpmObjectMode (line 43) | jpmObjectMode constant jpmArrayMode (line 44) | jpmArrayMode type extJSONValue (line 47) | type extJSONValue struct type extJSONObject (line 52) | type extJSONObject struct type extJSONParser (line 57) | type extJSONParser struct method peekType (line 88) | func (ejp *extJSONParser) peekType() (Type, error) { method readKey (line 163) | func (ejp *extJSONParser) readKey() (string, Type, error) { method readValue (line 227) | func (ejp *extJSONParser) readValue(t Type) (*extJSONValue, error) { method readObject (line 484) | func (ejp *extJSONParser) readObject(numKeys int, started bool) ([]str... method advanceState (line 528) | func (ejp *extJSONParser) advanceState() { method validateToken (line 678) | func (ejp *extJSONParser) validateToken(jtt jsonTokenType) bool { method ensureExtValueType (line 703) | func (ejp *extJSONParser) ensureExtValueType(t Type) bool { method pushMode (line 716) | func (ejp *extJSONParser) pushMode(m jsonParseMode) { method popMode (line 720) | func (ejp *extJSONParser) popMode() jsonParseMode { method peekMode (line 732) | func (ejp *extJSONParser) peekMode() jsonParseMode { function newExtJSONParser (line 77) | func newExtJSONParser(r io.Reader, canonicalOnly bool) *extJSONParser { function extendJSONToken (line 741) | func extendJSONToken(jt *jsonToken) *extJSONValue { function ensureColon (line 764) | func ensureColon(s jsonParseState, key string) error { function invalidRequestError (line 772) | func invalidRequestError(s string) error { function invalidJSONError (line 776) | func invalidJSONError(expected string) error { function invalidJSONErrorForType (line 780) | func invalidJSONErrorForType(expected string, t Type) error { function unexpectedTokenError (line 784) | func unexpectedTokenError(jt *jsonToken) error { function nestingDepthError (line 801) | func nestingDepthError(p, depth int) error { FILE: bson/extjson_parser_test.go type expectedErrorFunc (line 28) | type expectedErrorFunc type peekTypeTestCase (line 30) | type peekTypeTestCase struct type readKeyValueTestCase (line 37) | type readKeyValueTestCase struct function expectNoError (line 48) | func expectNoError(t *testing.T, err error, desc string) { function expectError (line 56) | func expectError(t *testing.T, err error, desc string) { function expectSpecificError (line 64) | func expectSpecificError(expected error) expectedErrorFunc { function specificDiff (line 74) | func specificDiff(name string) func(t *testing.T, expected, actual any, ... function expectErrorNOOP (line 84) | func expectErrorNOOP(_ *testing.T, _ error, _ string) { function readKeyDiff (line 87) | func readKeyDiff(t *testing.T, eKey, aKey string, eTyp, aTyp Type, err e... function readValueDiff (line 93) | func readValueDiff(t *testing.T, eVal, aVal *extJSONValue, err error, er... function TestExtJSONParserPeekType (line 104) | func TestExtJSONParserPeekType(t *testing.T) { function TestExtJSONParserReadKeyReadValue (line 195) | func TestExtJSONParserReadKeyReadValue(t *testing.T) { type ejpExpectationTest (line 376) | type ejpExpectationTest type ejpTestCase (line 378) | type ejpTestCase struct function expectSingleValue (line 388) | func expectSingleValue(t *testing.T, p *extJSONParser, expectedKey strin... function expectMultipleValues (line 400) | func expectMultipleValues(t *testing.T, p *extJSONParser, expectedKey st... type ejpKeyTypValTriple (line 422) | type ejpKeyTypValTriple struct type ejpSubDocumentTestValue (line 428) | type ejpSubDocumentTestValue struct function expectSubDocument (line 436) | func expectSubDocument(t *testing.T, p *extJSONParser, expectedKey strin... function expectArray (line 472) | func expectArray(t *testing.T, p *extJSONParser, expectedKey string, _ T... function TestExtJSONParserAllTypes (line 496) | func TestExtJSONParserAllTypes(t *testing.T) { function TestExtJSONValue (line 777) | func TestExtJSONValue(t *testing.T) { FILE: bson/extjson_prose_test.go function TestExtJSON (line 16) | func TestExtJSON(t *testing.T) { FILE: bson/extjson_reader.go type ejvrState (line 15) | type ejvrState struct type extJSONValueReader (line 22) | type extJSONValueReader struct method reset (line 41) | func (ejvr *extJSONValueReader) reset(r io.Reader, canonicalOnly bool)... method advanceFrame (line 69) | func (ejvr *extJSONValueReader) advanceFrame() { method pushDocument (line 88) | func (ejvr *extJSONValueReader) pushDocument() { method pushCodeWithScope (line 95) | func (ejvr *extJSONValueReader) pushCodeWithScope() { method pushArray (line 101) | func (ejvr *extJSONValueReader) pushArray() { method push (line 107) | func (ejvr *extJSONValueReader) push(m mode, t Type) { method pop (line 114) | func (ejvr *extJSONValueReader) pop() { method skipObject (line 123) | func (ejvr *extJSONValueReader) skipObject() { method invalidTransitionErr (line 154) | func (ejvr *extJSONValueReader) invalidTransitionErr(destination mode,... method typeError (line 168) | func (ejvr *extJSONValueReader) typeError(t Type) error { method ensureElementValue (line 172) | func (ejvr *extJSONValueReader) ensureElementValue(t Type, destination... method Type (line 189) | func (ejvr *extJSONValueReader) Type() Type { method Skip (line 193) | func (ejvr *extJSONValueReader) Skip() error { method ReadArray (line 217) | func (ejvr *extJSONValueReader) ReadArray() (ArrayReader, error) { method ReadBinary (line 233) | func (ejvr *extJSONValueReader) ReadBinary() (b []byte, btype byte, er... method ReadBoolean (line 249) | func (ejvr *extJSONValueReader) ReadBoolean() (bool, error) { method ReadDocument (line 267) | func (ejvr *extJSONValueReader) ReadDocument() (DocumentReader, error) { method ReadCodeWithScope (line 283) | func (ejvr *extJSONValueReader) ReadCodeWithScope() (code string, dr D... method ReadDBPointer (line 299) | func (ejvr *extJSONValueReader) ReadDBPointer() (ns string, oid Object... method ReadDateTime (line 315) | func (ejvr *extJSONValueReader) ReadDateTime() (int64, error) { method ReadDecimal128 (line 331) | func (ejvr *extJSONValueReader) ReadDecimal128() (Decimal128, error) { method ReadDouble (line 347) | func (ejvr *extJSONValueReader) ReadDouble() (float64, error) { method ReadInt32 (line 363) | func (ejvr *extJSONValueReader) ReadInt32() (int32, error) { method ReadInt64 (line 379) | func (ejvr *extJSONValueReader) ReadInt64() (int64, error) { method ReadJavascript (line 395) | func (ejvr *extJSONValueReader) ReadJavascript() (code string, err err... method ReadMaxKey (line 411) | func (ejvr *extJSONValueReader) ReadMaxKey() error { method ReadMinKey (line 427) | func (ejvr *extJSONValueReader) ReadMinKey() error { method ReadNull (line 443) | func (ejvr *extJSONValueReader) ReadNull() error { method ReadObjectID (line 461) | func (ejvr *extJSONValueReader) ReadObjectID() (ObjectID, error) { method ReadRegex (line 477) | func (ejvr *extJSONValueReader) ReadRegex() (pattern string, options s... method ReadString (line 493) | func (ejvr *extJSONValueReader) ReadString() (string, error) { method ReadSymbol (line 511) | func (ejvr *extJSONValueReader) ReadSymbol() (symbol string, err error) { method ReadTimestamp (line 527) | func (ejvr *extJSONValueReader) ReadTimestamp() (t uint32, i uint32, e... method ReadUndefined (line 543) | func (ejvr *extJSONValueReader) ReadUndefined() error { method ReadElement (line 559) | func (ejvr *extJSONValueReader) ReadElement() (string, ValueReader, er... method ReadValue (line 586) | func (ejvr *extJSONValueReader) ReadValue() (ValueReader, error) { function NewExtJSONValueReader (line 32) | func NewExtJSONValueReader(r io.Reader, canonicalOnly bool) (ValueReader... function newExtJSONValueReader (line 36) | func newExtJSONValueReader(r io.Reader, canonicalOnly bool) (*extJSONVal... FILE: bson/extjson_reader_test.go function TestExtJSONReader (line 20) | func TestExtJSONReader(t *testing.T) { function TestReadMultipleTopLevelDocuments (line 52) | func TestReadMultipleTopLevelDocuments(t *testing.T) { function readAllDocuments (line 125) | func readAllDocuments(vr ValueReader) ([][]byte, error) { FILE: bson/extjson_wrappers.go function wrapperKeyBSONType (line 18) | func wrapperKeyBSONType(key string) Type { method parseBinary (line 57) | func (ejv *extJSONValue) parseBinary() (b []byte, subType byte, err erro... method parseDBPointer (line 118) | func (ejv *extJSONValue) parseDBPointer() (ns string, oid ObjectID, err ... constant rfc3339Milli (line 174) | rfc3339Milli = "2006-01-02T15:04:05.999Z07:00" method parseDateTime (line 179) | func (ejv *extJSONValue) parseDateTime() (int64, error) { function parseDatetimeString (line 194) | func parseDatetimeString(data string) (int64, error) { function parseDatetimeObject (line 211) | func parseDatetimeObject(data *extJSONObject) (d int64, err error) { method parseDecimal128 (line 244) | func (ejv *extJSONValue) parseDecimal128() (Decimal128, error) { method parseDouble (line 257) | func (ejv *extJSONValue) parseDouble() (float64, error) { method parseInt32 (line 283) | func (ejv *extJSONValue) parseInt32() (int32, error) { method parseInt64 (line 304) | func (ejv *extJSONValue) parseInt64() (int64, error) { method parseJavascript (line 321) | func (ejv *extJSONValue) parseJavascript() (code string, err error) { method parseMinMaxKey (line 329) | func (ejv *extJSONValue) parseMinMaxKey(minmax string) error { method parseObjectID (line 341) | func (ejv *extJSONValue) parseObjectID() (ObjectID, error) { method parseRegex (line 349) | func (ejv *extJSONValue) parseRegex() (pattern, options string, err erro... method parseSymbol (line 400) | func (ejv *extJSONValue) parseSymbol() (string, error) { method parseTimestamp (line 408) | func (ejv *extJSONValue) parseTimestamp() (t, i uint32, err error) { method parseUndefined (line 475) | func (ejv *extJSONValue) parseUndefined() error { FILE: bson/extjson_writer.go type ejvwState (line 22) | type ejvwState struct type extJSONValueWriter (line 26) | type extJSONValueWriter struct method reset (line 71) | func (ejvw *extJSONValueWriter) reset(buf []byte, canonical, escapeHTM... method advanceFrame (line 85) | func (ejvw *extJSONValueWriter) advanceFrame() { method push (line 99) | func (ejvw *extJSONValueWriter) push(m mode) { method pop (line 105) | func (ejvw *extJSONValueWriter) pop() { method invalidTransitionErr (line 114) | func (ejvw *extJSONValueWriter) invalidTransitionErr(destination mode,... method ensureElementValue (line 128) | func (ejvw *extJSONValueWriter) ensureElementValue(destination mode, c... method writeExtendedSingleValue (line 142) | func (ejvw *extJSONValueWriter) writeExtendedSingleValue(key string, v... method WriteArray (line 153) | func (ejvw *extJSONValueWriter) WriteArray() (ArrayWriter, error) { method WriteBinary (line 164) | func (ejvw *extJSONValueWriter) WriteBinary(b []byte) error { method WriteBinaryWithSubtype (line 168) | func (ejvw *extJSONValueWriter) WriteBinaryWithSubtype(b []byte, btype... method WriteBoolean (line 184) | func (ejvw *extJSONValueWriter) WriteBoolean(b bool) error { method WriteCodeWithScope (line 196) | func (ejvw *extJSONValueWriter) WriteCodeWithScope(code string) (Docum... method WriteDBPointer (line 212) | func (ejvw *extJSONValueWriter) WriteDBPointer(ns string, oid ObjectID... method WriteDateTime (line 230) | func (ejvw *extJSONValueWriter) WriteDateTime(dt int64) error { method WriteDecimal128 (line 250) | func (ejvw *extJSONValueWriter) WriteDecimal128(d Decimal128) error { method WriteDocument (line 262) | func (ejvw *extJSONValueWriter) WriteDocument() (DocumentWriter, error) { method WriteDouble (line 277) | func (ejvw *extJSONValueWriter) WriteDouble(f float64) error { method WriteInt32 (line 304) | func (ejvw *extJSONValueWriter) WriteInt32(i int32) error { method WriteInt64 (line 323) | func (ejvw *extJSONValueWriter) WriteInt64(i int64) error { method WriteJavascript (line 342) | func (ejvw *extJSONValueWriter) WriteJavascript(code string) error { method WriteMaxKey (line 357) | func (ejvw *extJSONValueWriter) WriteMaxKey() error { method WriteMinKey (line 369) | func (ejvw *extJSONValueWriter) WriteMinKey() error { method WriteNull (line 381) | func (ejvw *extJSONValueWriter) WriteNull() error { method WriteObjectID (line 393) | func (ejvw *extJSONValueWriter) WriteObjectID(oid ObjectID) error { method WriteRegex (line 405) | func (ejvw *extJSONValueWriter) WriteRegex(pattern string, options str... method WriteString (line 424) | func (ejvw *extJSONValueWriter) WriteString(s string) error { method WriteSymbol (line 439) | func (ejvw *extJSONValueWriter) WriteSymbol(symbol string) error { method WriteTimestamp (line 454) | func (ejvw *extJSONValueWriter) WriteTimestamp(t uint32, i uint32) err... method WriteUndefined (line 472) | func (ejvw *extJSONValueWriter) WriteUndefined() error { method WriteDocumentElement (line 484) | func (ejvw *extJSONValueWriter) WriteDocumentElement(key string) (Valu... method WriteDocumentEnd (line 499) | func (ejvw *extJSONValueWriter) WriteDocumentEnd() error { method WriteArrayElement (line 538) | func (ejvw *extJSONValueWriter) WriteArrayElement() (ValueWriter, erro... method WriteArrayEnd (line 549) | func (ejvw *extJSONValueWriter) WriteArrayEnd() error { function NewExtJSONValueWriter (line 38) | func NewExtJSONValueWriter(w io.Writer, canonical, escapeHTML bool) Valu... function newExtJSONWriter (line 45) | func newExtJSONWriter(w io.Writer, canonical, escapeHTML, newlines bool)... function newExtJSONWriterFromSlice (line 59) | func newExtJSONWriterFromSlice(buf []byte, canonical, escapeHTML bool) *... function formatDouble (line 569) | func formatDouble(f float64) string { function writeStringWithEscapes (line 592) | func writeStringWithEscapes(s string, buf *bytes.Buffer, escapeHTML bool) { type sortableString (line 672) | type sortableString method Len (line 674) | func (ss sortableString) Len() int { method Less (line 678) | func (ss sortableString) Less(i, j int) bool { method Swap (line 682) | func (ss sortableString) Swap(i, j int) { function sortStringAlphebeticAscending (line 686) | func sortStringAlphebeticAscending(s string) string { FILE: bson/extjson_writer_test.go function TestExtJSONValueWriter (line 19) | func TestExtJSONValueWriter(t *testing.T) { FILE: bson/fuzz_test.go function FuzzDecode (line 18) | func FuzzDecode(f *testing.F) { FILE: bson/json_scanner.go type jsonTokenType (line 20) | type jsonTokenType constant jttBeginObject (line 23) | jttBeginObject jsonTokenType = iota constant jttEndObject (line 24) | jttEndObject constant jttBeginArray (line 25) | jttBeginArray constant jttEndArray (line 26) | jttEndArray constant jttColon (line 27) | jttColon constant jttComma (line 28) | jttComma constant jttInt32 (line 29) | jttInt32 constant jttInt64 (line 30) | jttInt64 constant jttDouble (line 31) | jttDouble constant jttString (line 32) | jttString constant jttBool (line 33) | jttBool constant jttNull (line 34) | jttNull constant jttEOF (line 35) | jttEOF type jsonToken (line 38) | type jsonToken struct type jsonScanner (line 44) | type jsonScanner struct method nextToken (line 53) | func (js *jsonScanner) nextToken() (*jsonToken, error) { method readNextByte (line 100) | func (js *jsonScanner) readNextByte() (byte, error) { method readNNextBytes (line 115) | func (js *jsonScanner) readNNextBytes(dst []byte, n, offset int) error { method readIntoBuf (line 129) | func (js *jsonScanner) readIntoBuf() error { method scanString (line 191) | func (js *jsonScanner) scanString() (*jsonToken, error) { method scanLiteral (line 315) | func (js *jsonScanner) scanLiteral(first byte) (*jsonToken, error) { method scanNumber (line 365) | func (js *jsonScanner) scanNumber(first byte) (*jsonToken, error) { function isWhiteSpace (line 153) | func isWhiteSpace(c byte) bool { function isDigit (line 157) | func isDigit(c byte) bool { function isValueTerminator (line 161) | func isValueTerminator(c byte) bool { function getu4 (line 169) | func getu4(s []byte) rune { type numberScanState (line 349) | type numberScanState constant nssSawLeadingMinus (line 352) | nssSawLeadingMinus numberScanState = iota constant nssSawLeadingZero (line 353) | nssSawLeadingZero constant nssSawIntegerDigits (line 354) | nssSawIntegerDigits constant nssSawDecimalPoint (line 355) | nssSawDecimalPoint constant nssSawFractionDigits (line 356) | nssSawFractionDigits constant nssSawExponentLetter (line 357) | nssSawExponentLetter constant nssSawExponentSign (line 358) | nssSawExponentSign constant nssSawExponentDigits (line 359) | nssSawExponentDigits constant nssDone (line 360) | nssDone constant nssInvalid (line 361) | nssInvalid FILE: bson/json_scanner_test.go function jttDiff (line 18) | func jttDiff(t *testing.T, expected, actual jsonTokenType, desc string) { function jtvDiff (line 26) | func jtvDiff(t *testing.T, expected, actual any, desc string) { function expectNilToken (line 34) | func expectNilToken(t *testing.T, v *jsonToken, desc string) { type jsonScannerTestCase (line 42) | type jsonScannerTestCase struct constant longKey (line 49) | longKey = "abcdefghijklmnopqrstuvwxyz" + "abcdefghijklmnopqrstuvwxyz" + function TestJsonScannerValidInputs (line 60) | func TestJsonScannerValidInputs(t *testing.T) { function TestJsonScannerInvalidInputs (line 358) | func TestJsonScannerInvalidInputs(t *testing.T) { FILE: bson/map_codec.go type mapCodec (line 18) | type mapCodec struct method EncodeValue (line 49) | func (mc *mapCodec) EncodeValue(ec EncodeContext, vw ValueWriter, val ... method encodeMapElements (line 81) | func (mc *mapCodec) encodeMapElements(ec EncodeContext, dw DocumentWri... method DecodeValue (line 127) | func (mc *mapCodec) DecodeValue(dc DecodeContext, vr ValueReader, val ... method encodeKey (line 196) | func (mc *mapCodec) encodeKey(val reflect.Value, encodeKeysWithStringe... method decodeKey (line 244) | func (mc *mapCodec) decodeKey(key string, keyType reflect.Type) (refle... type KeyMarshaler (line 34) | type KeyMarshaler interface type KeyUnmarshaler (line 44) | type KeyUnmarshaler interface function clearMap (line 189) | func clearMap(m reflect.Value) { FILE: bson/marshal.go constant defaultDstCap (line 15) | defaultDstCap = 256 type Marshaler (line 29) | type Marshaler interface type ValueMarshaler (line 40) | type ValueMarshaler interface function Marshal (line 57) | func Marshal(val any) ([]byte, error) { function MarshalValue (line 97) | func MarshalValue(val any) (Type, []byte, error) { function MarshalExtJSON (line 146) | func MarshalExtJSON(val any, canonical, escapeHTML bool) ([]byte, error) { function IndentExtJSON (line 172) | func IndentExtJSON(dst *bytes.Buffer, src []byte, prefix, indent string)... function MarshalExtJSONIndent (line 178) | func MarshalExtJSONIndent(val any, canonical, escapeHTML bool, prefix, i... FILE: bson/marshal_test.go function TestMarshalWithRegistry (line 24) | func TestMarshalWithRegistry(t *testing.T) { function TestMarshalWithContext (line 48) | func TestMarshalWithContext(t *testing.T) { function TestMarshalExtJSON (line 73) | func TestMarshalExtJSON(t *testing.T) { function TestMarshal_roundtripFromBytes (line 87) | func TestMarshal_roundtripFromBytes(t *testing.T) { function TestMarshal_roundtripFromDoc (line 128) | func TestMarshal_roundtripFromDoc(t *testing.T) { function TestCachingEncodersNotSharedAcrossRegistries (line 146) | func TestCachingEncodersNotSharedAcrossRegistries(t *testing.T) { function TestNullBytes (line 205) | func TestNullBytes(t *testing.T) { function TestMarshalExtJSONIndent (line 244) | func TestMarshalExtJSONIndent(t *testing.T) { function TestMarshalConcurrently (line 314) | func TestMarshalConcurrently(t *testing.T) { FILE: bson/marshal_value_cases_test.go type marshalValueInterfaceInner (line 175) | type marshalValueInterfaceInner struct method Read (line 181) | func (marshalValueInterfaceInner) Read([]byte) (int, error) { type marshalValueInterfaceOuter (line 186) | type marshalValueInterfaceOuter struct type marshalValueMarshaler (line 191) | type marshalValueMarshaler struct method MarshalBSONValue (line 197) | func (mvi marshalValueMarshaler) MarshalBSONValue() (byte, []byte, err... method UnmarshalBSONValue (line 203) | func (mvi *marshalValueMarshaler) UnmarshalBSONValue(_ byte, b []byte)... type marshalValueStruct (line 209) | type marshalValueStruct struct type marshalValueTestCase (line 213) | type marshalValueTestCase struct FILE: bson/marshal_value_test.go function TestMarshalValue (line 19) | func TestMarshalValue(t *testing.T) { function compareMarshalValueResults (line 70) | func compareMarshalValueResults(t *testing.T, tc marshalValueTestCase, g... function BenchmarkSliceCodecMarshal (line 78) | func BenchmarkSliceCodecMarshal(b *testing.B) { FILE: bson/marshaling_cases_test.go type marshalingTestCase (line 9) | type marshalingTestCase struct FILE: bson/mgoregistry.go function NewMgoRegistry (line 26) | func NewMgoRegistry() *Registry { function NewRespectNilValuesMgoRegistry (line 66) | func NewRespectNilValuesMgoRegistry() *Registry { function mgoStringDecodeValue (line 79) | func mgoStringDecodeValue(dc DecodeContext, vr ValueReader, val reflect.... type setter (line 123) | type setter interface type getter (line 133) | type getter interface function setterDecodeValue (line 138) | func setterDecodeValue(_ DecodeContext, vr ValueReader, val reflect.Valu... function getterEncodeValue (line 176) | func getterEncodeValue(ec EncodeContext, vw ValueWriter, val reflect.Val... FILE: bson/mgoregistry_test.go function wrapInDoc (line 29) | func wrapInDoc(data string) string { function makeZeroDoc (line 36) | func makeZeroDoc(value any) (zero any) { function unmarshalWithRegistry (line 54) | func unmarshalWithRegistry(t *testing.T, r *Registry, data []byte, val a... function testUnmarshal (line 62) | func testUnmarshal(t *testing.T, data string, obj any) { type testItemType (line 69) | type testItemType struct function TestMarshalSampleItems (line 97) | func TestMarshalSampleItems(t *testing.T) { function TestUnmarshalSampleItems (line 114) | func TestUnmarshalSampleItems(t *testing.T) { function TestMarshalAllItems (line 226) | func TestMarshalAllItems(t *testing.T) { function TestUnmarshalAllItems (line 243) | func TestUnmarshalAllItems(t *testing.T) { function TestUnmarshalRawAllItems (line 254) | func TestUnmarshalRawAllItems(t *testing.T) { function TestUnmarshalRawIncompatible (line 273) | func TestUnmarshalRawIncompatible(t *testing.T) { function TestUnmarshalZeroesStruct (line 279) | func TestUnmarshalZeroesStruct(t *testing.T) { function TestUnmarshalZeroesMap (line 294) | func TestUnmarshalZeroesMap(t *testing.T) { function TestUnmarshalNonNilInterface (line 309) | func TestUnmarshalNonNilInterface(t *testing.T) { function TestPtrInline (line 324) | func TestPtrInline(t *testing.T) { function TestOneWayMarshalItems (line 473) | func TestOneWayMarshalItems(t *testing.T) { type specSample1 (line 494) | type specSample1 struct type specSample2 (line 498) | type specSample2 struct function TestMarshalStructSampleItems (line 514) | func TestMarshalStructSampleItems(t *testing.T) { function TestUnmarshalStructSampleItems (line 530) | func TestUnmarshalStructSampleItems(t *testing.T) { function Test64bitInt (line 538) | func Test64bitInt(t *testing.T) { type prefixPtr (line 561) | type prefixPtr method GetBSON (line 565) | func (t *prefixPtr) GetBSON() (any, error) { method SetBSON (line 572) | func (t *prefixPtr) SetBSON(raw RawValue) error { type prefixVal (line 562) | type prefixVal method GetBSON (line 595) | func (t prefixVal) GetBSON() (any, error) { method SetBSON (line 599) | func (t *prefixVal) SetBSON(raw RawValue) error { function TestMarshalStructItems (line 718) | func TestMarshalStructItems(t *testing.T) { function TestUnmarshalStructItems (line 734) | func TestUnmarshalStructItems(t *testing.T) { function TestUnmarshalRawStructItems (line 742) | func TestUnmarshalRawStructItems(t *testing.T) { type dOnIface (line 765) | type dOnIface struct type ignoreField (line 769) | type ignoreField struct function TestMarshalOneWayItems (line 802) | func TestMarshalOneWayItems(t *testing.T) { type intAlias (line 821) | type intAlias function TestUnmarshalOneWayItems (line 875) | func TestUnmarshalOneWayItems(t *testing.T) { function TestUnmarshalNilInStruct (line 883) | func TestUnmarshalNilInStruct(t *testing.T) { type structWithDupKeys (line 897) | type structWithDupKeys struct function TestMarshalErrorItems (line 949) | func TestMarshalErrorItems(t *testing.T) { type unmarshalErrorType (line 969) | type unmarshalErrorType struct function TestUnmarshalErrorItems (line 1003) | func TestUnmarshalErrorItems(t *testing.T) { type unmarshalRawErrorType (line 1022) | type unmarshalRawErrorType struct function TestUnmarshalRawErrorItems (line 1047) | func TestUnmarshalRawErrorItems(t *testing.T) { function TestUnmarshalMapDocumentTooShort (line 1085) | func TestUnmarshalMapDocumentTooShort(t *testing.T) { type setterType (line 1102) | type setterType struct method SetBSON (line 1106) | func (o *setterType) SetBSON(raw RawValue) error { type ptrSetterDoc (line 1129) | type ptrSetterDoc struct type valSetterDoc (line 1133) | type valSetterDoc struct function TestUnmarshalAllItemsWithPtrSetter (line 1137) | func TestUnmarshalAllItemsWithPtrSetter(t *testing.T) { function TestUnmarshalWholeDocumentWithSetter (line 1174) | func TestUnmarshalWholeDocumentWithSetter(t *testing.T) { function TestUnmarshalSetterErrors (line 1181) | func TestUnmarshalSetterErrors(t *testing.T) { function TestUnmarshalSetterErrSetZero (line 1205) | func TestUnmarshalSetterErrSetZero(t *testing.T) { type typeWithGetter (line 1228) | type typeWithGetter struct method GetBSON (line 1233) | func (t *typeWithGetter) GetBSON() (any, error) { type docWithGetterField (line 1240) | type docWithGetterField struct function TestMarshalAllItemsWithGetter (line 1244) | func TestMarshalAllItemsWithGetter(t *testing.T) { function TestMarshalWholeDocumentWithGetter (line 1266) | func TestMarshalWholeDocumentWithGetter(t *testing.T) { function TestGetterErrors (line 1278) | func TestGetterErrors(t *testing.T) { type intGetter (line 1301) | type intGetter method GetBSON (line 1303) | func (t intGetter) GetBSON() (any, error) { type typeWithIntGetter (line 1307) | type typeWithIntGetter struct function TestMarshalShortWithGetter (line 1311) | func TestMarshalShortWithGetter(t *testing.T) { function TestMarshalWithGetterNil (line 1325) | func TestMarshalWithGetterNil(t *testing.T) { type crossTypeItem (line 1343) | type crossTypeItem struct type condStr (line 1348) | type condStr struct type condStrNS (line 1351) | type condStrNS struct type condBool (line 1354) | type condBool struct type condInt (line 1357) | type condInt struct type condUInt (line 1360) | type condUInt struct type condFloat (line 1363) | type condFloat struct type condIface (line 1366) | type condIface struct type condPtr (line 1369) | type condPtr struct type condSlice (line 1372) | type condSlice struct type condMap (line 1375) | type condMap struct type namedCondStr (line 1378) | type namedCondStr struct type condTime (line 1381) | type condTime struct type condStruct (line 1384) | type condStruct struct type shortInt (line 1388) | type shortInt struct type shortUint (line 1391) | type shortUint struct type shortIface (line 1394) | type shortIface struct type shortPtr (line 1397) | type shortPtr struct type shortNonEmptyInt (line 1400) | type shortNonEmptyInt struct type inlineInt (line 1404) | type inlineInt struct type inlineDupName (line 1407) | type inlineDupName struct type inlineMap (line 1411) | type inlineMap struct type inlineMapInt (line 1415) | type inlineMapInt struct type inlineMapMyM (line 1419) | type inlineMapMyM struct type inlineDupMap (line 1423) | type inlineDupMap struct type inlineBadKeyMap (line 1427) | type inlineBadKeyMap struct type inlineUnexported (line 1430) | type inlineUnexported struct type MStruct (line 1434) | type MStruct struct type InlinePtrStruct (line 1437) | type InlinePtrStruct struct type inlinePtrPtrStruct (line 1441) | type inlinePtrPtrStruct struct type unexported (line 1445) | type unexported struct type getterSetterD (line 1449) | type getterSetterD method GetBSON (line 1451) | func (s getterSetterD) GetBSON() (any, error) { method SetBSON (line 1458) | func (s *getterSetterD) SetBSON(raw RawValue) error { type getterSetterInt (line 1478) | type getterSetterInt method GetBSON (line 1480) | func (i getterSetterInt) GetBSON() (any, error) { method SetBSON (line 1484) | func (i *getterSetterInt) SetBSON(raw RawValue) error { type ifaceType (line 1503) | type ifaceType interface type ifaceSlice (line 1507) | type ifaceSlice method SetBSON (line 1509) | func (s *ifaceSlice) SetBSON(raw RawValue) error { method GetBSON (line 1525) | func (s ifaceSlice) GetBSON() (any, error) { type MyString (line 1530) | type MyString type MyBytes (line 1531) | type MyBytes type MyBool (line 1532) | type MyBool type MyD (line 1533) | type MyD type MyRawD (line 1534) | type MyRawD type MyM (line 1535) | type MyM function parseURL (line 1549) | func parseURL(s string) *url.URL { function testCrossPair (line 1785) | func testCrossPair(t *testing.T, dump any, load any) { function TestTwoWayCrossPairs (line 1799) | func TestTwoWayCrossPairs(t *testing.T) { function TestOneWayCrossPairs (line 1808) | func TestOneWayCrossPairs(t *testing.T) { type jsonType (line 1819) | type jsonType struct function objectIDHex (line 1823) | func objectIDHex(s string) ObjectID { function TestObjectIdJSONMarshaling (line 1861) | func TestObjectIdJSONMarshaling(t *testing.T) { function TestMarshalNotRespectNil (line 1890) | func TestMarshalNotRespectNil(t *testing.T) { function TestMarshalRespectNil (line 1919) | func TestMarshalRespectNil(t *testing.T) { type Inner (line 1983) | type Inner struct type InlineLoop (line 1987) | type InlineLoop struct function TestInlineWithPointerToSelf (line 1993) | func TestInlineWithPointerToSelf(t *testing.T) { FILE: bson/mode.go type mode (line 13) | type mode method String (line 26) | func (m mode) String() string { constant _ (line 16) | _ mode = iota constant mTopLevel (line 17) | mTopLevel constant mDocument (line 18) | mDocument constant mArray (line 19) | mArray constant mValue (line 20) | mValue constant mElement (line 21) | mElement constant mCodeWithScope (line 22) | mCodeWithScope constant mSpacer (line 23) | mSpacer type TransitionError (line 53) | type TransitionError struct method Error (line 62) | func (te TransitionError) Error() string { FILE: bson/objectid.go type ObjectID (line 29) | type ObjectID method Timestamp (line 61) | func (id ObjectID) Timestamp() time.Time { method Hex (line 67) | func (id ObjectID) Hex() string { method String (line 73) | func (id ObjectID) String() string { method IsZero (line 78) | func (id ObjectID) IsZero() bool { method MarshalText (line 100) | func (id ObjectID) MarshalText() ([]byte, error) { method UnmarshalText (line 116) | func (id *ObjectID) UnmarshalText(b []byte) error { method MarshalJSON (line 134) | func (id ObjectID) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 152) | func (id *ObjectID) UnmarshalJSON(b []byte) error { function NewObjectID (line 45) | func NewObjectID() ObjectID { function NewObjectIDFromTimestamp (line 50) | func NewObjectIDFromTimestamp(timestamp time.Time) ObjectID { function ObjectIDFromHex (line 84) | func ObjectIDFromHex(s string) (ObjectID, error) { function processUniqueBytes (line 187) | func processUniqueBytes() [5]byte { function readRandomUint32 (line 197) | func readRandomUint32() uint32 { function putUint24 (line 207) | func putUint24(b []byte, v uint32) { FILE: bson/objectid_test.go function TestString (line 21) | func TestString(t *testing.T) { function BenchmarkHex (line 26) | func BenchmarkHex(b *testing.B) { function BenchmarkObjectIDFromHex (line 33) | func BenchmarkObjectIDFromHex(b *testing.B) { function BenchmarkNewObjectIDFromTimestamp (line 40) | func BenchmarkNewObjectIDFromTimestamp(b *testing.B) { function BenchmarkObjectIDJSON (line 47) | func BenchmarkObjectIDJSON(b *testing.B) { function TestFromHex_RoundTrip (line 93) | func TestFromHex_RoundTrip(t *testing.T) { function TestFromHex_InvalidHex (line 101) | func TestFromHex_InvalidHex(t *testing.T) { function TestFromHex_WrongLength (line 106) | func TestFromHex_WrongLength(t *testing.T) { function TestTimeStamp (line 111) | func TestTimeStamp(t *testing.T) { function TestCreateFromTime (line 143) | func TestCreateFromTime(t *testing.T) { function TestGenerationTime (line 178) | func TestGenerationTime(t *testing.T) { function TestCounterOverflow (line 210) | func TestCounterOverflow(t *testing.T) { function TestObjectID_MarshalJSONMap (line 216) | func TestObjectID_MarshalJSONMap(t *testing.T) { function TestObjectID_UnmarshalJSONMap (line 232) | func TestObjectID_UnmarshalJSONMap(t *testing.T) { function TestObjectID_UnmarshalJSON (line 248) | func TestObjectID_UnmarshalJSON(t *testing.T) { function TestObjectID_MarshalText (line 278) | func TestObjectID_MarshalText(t *testing.T) { function TestObjectID_UnmarshalText (line 287) | func TestObjectID_UnmarshalText(t *testing.T) { FILE: bson/pointer_codec.go type pointerCodec (line 19) | type pointerCodec struct method EncodeValue (line 26) | func (pc *pointerCodec) EncodeValue(ec EncodeContext, vw ValueWriter, ... method DecodeValue (line 56) | func (pc *pointerCodec) DecodeValue(dc DecodeContext, vr ValueReader, ... FILE: bson/primitive.go type Zeroer (line 23) | type Zeroer interface type Binary (line 31) | type Binary struct method Equal (line 37) | func (bp Binary) Equal(bp2 Binary) bool { method IsZero (line 45) | func (bp Binary) IsZero() bool { type Undefined (line 50) | type Undefined struct type DateTime (line 53) | type DateTime method MarshalJSON (line 61) | func (d DateTime) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 66) | func (d *DateTime) UnmarshalJSON(data []byte) error { method Time (line 81) | func (d DateTime) Time() time.Time { function NewDateTimeFromTime (line 86) | func NewDateTimeFromTime(t time.Time) DateTime { type Null (line 91) | type Null struct type Regex (line 94) | type Regex struct method String (line 99) | func (rp Regex) String() string { method Equal (line 104) | func (rp Regex) Equal(rp2 Regex) bool { method IsZero (line 109) | func (rp Regex) IsZero() bool { type DBPointer (line 114) | type DBPointer struct method String (line 119) | func (d DBPointer) String() string { method Equal (line 124) | func (d DBPointer) Equal(d2 DBPointer) bool { method IsZero (line 129) | func (d DBPointer) IsZero() bool { type JavaScript (line 134) | type JavaScript type Symbol (line 137) | type Symbol type CodeWithScope (line 140) | type CodeWithScope struct method String (line 145) | func (cws CodeWithScope) String() string { type Timestamp (line 150) | type Timestamp struct method After (line 156) | func (tp Timestamp) After(tp2 Timestamp) bool { method Before (line 161) | func (tp Timestamp) Before(tp2 Timestamp) bool { method Equal (line 166) | func (tp Timestamp) Equal(tp2 Timestamp) bool { method IsZero (line 171) | func (tp Timestamp) IsZero() bool { method Compare (line 177) | func (tp Timestamp) Compare(tp2 Timestamp) int { type MinKey (line 189) | type MinKey struct type MaxKey (line 192) | type MaxKey struct type D (line 200) | type D method String (line 202) | func (d D) String() string { method MarshalJSON (line 211) | func (d D) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 238) | func (d *D) UnmarshalJSON(b []byte) error { type E (line 260) | type E struct type M (line 272) | type M method String (line 274) | func (m M) String() string { type A (line 287) | type A function jsonDecodeD (line 289) | func jsonDecodeD(dec *json.Decoder) (D, error) { function jsonDecodeSlice (line 331) | func jsonDecodeSlice(dec *json.Decoder) ([]any, error) { function tokenString (line 364) | func tokenString(t json.Token) string { FILE: bson/primitive_codecs.go function registerPrimitiveCodecs (line 21) | func registerPrimitiveCodecs(reg *Registry) { function rawValueEncodeValue (line 32) | func rawValueEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Va... function rawValueDecodeValue (line 51) | func rawValueDecodeValue(_ DecodeContext, vr ValueReader, val reflect.Va... function rawEncodeValue (line 66) | func rawEncodeValue(_ EncodeContext, vw ValueWriter, val reflect.Value) ... function rawDecodeValue (line 77) | func rawDecodeValue(_ DecodeContext, vr ValueReader, val reflect.Value) ... FILE: bson/primitive_codecs_test.go function bytesFromDoc (line 24) | func bytesFromDoc(doc any) []byte { function TestPrimitiveValueEncoders (line 32) | func TestPrimitiveValueEncoders(t *testing.T) { function TestPrimitiveValueDecoders (line 478) | func TestPrimitiveValueDecoders(t *testing.T) { type testValueMarshaler (line 1063) | type testValueMarshaler struct method MarshalBSONValue (line 1069) | func (tvm testValueMarshaler) MarshalBSONValue() (byte, []byte, error) { type testValueUnmarshaler (line 1073) | type testValueUnmarshaler struct method UnmarshalBSONValue (line 1079) | func (tvu *testValueUnmarshaler) UnmarshalBSONValue(t byte, val []byte... method Equal (line 1084) | func (tvu testValueUnmarshaler) Equal(tvu2 testValueUnmarshaler) bool { type noPrivateFields (line 1088) | type noPrivateFields struct function compareNoPrivateFields (line 1092) | func compareNoPrivateFields(npf1, npf2 noPrivateFields) bool { type zeroTest (line 1096) | type zeroTest struct method IsZero (line 1100) | func (z zeroTest) IsZero() bool { return z.reportZero } function compareZeroTest (line 1104) | func compareZeroTest(_, _ zeroTest) bool { return true } function compareDecimal128 (line 1106) | func compareDecimal128(d1, d2 Decimal128) bool { FILE: bson/raw.go type Raw (line 23) | type Raw method Validate (line 34) | func (r Raw) Validate() (err error) { return bsoncore.Document(r).Vali... method Lookup (line 40) | func (r Raw) Lookup(key ...string) RawValue { method LookupErr (line 46) | func (r Raw) LookupErr(key ...string) (RawValue, error) { method Elements (line 54) | func (r Raw) Elements() ([]RawElement, error) { method Values (line 73) | func (r Raw) Values() ([]RawValue, error) { method Index (line 84) | func (r Raw) Index(index uint) RawElement { return RawElement(bsoncore... method IndexErr (line 87) | func (r Raw) IndexErr(index uint) (RawElement, error) { method String (line 93) | func (r Raw) String() string { return bsoncore.Document(r).String() } function ReadDocument (line 27) | func ReadDocument(r io.Reader) (Raw, error) { FILE: bson/raw_array.go type RawArray (line 16) | type RawArray method Index (line 28) | func (a RawArray) Index(index uint) RawValue { method IndexErr (line 33) | func (a RawArray) IndexErr(index uint) (RawValue, error) { method DebugString (line 42) | func (a RawArray) DebugString() string { method String (line 48) | func (a RawArray) String() string { method Values (line 55) | func (a RawArray) Values() ([]RawValue, error) { method Validate (line 71) | func (a RawArray) Validate() error { function ReadArray (line 20) | func ReadArray(r io.Reader) (RawArray, error) { FILE: bson/raw_array_test.go function TestReadArray (line 22) | func TestReadArray(t *testing.T) { function TestArray_Validate (line 96) | func TestArray_Validate(t *testing.T) { function TestArray_Index (line 212) | func TestArray_Index(t *testing.T) { function TestRawArray_Stringt (line 319) | func TestRawArray_Stringt(t *testing.T) { function TestRawArray_Values (line 409) | func TestRawArray_Values(t *testing.T) { FILE: bson/raw_element.go type RawElement (line 14) | type RawElement method Key (line 18) | func (re RawElement) Key() string { return bsoncore.Element(re).Key() } method KeyErr (line 21) | func (re RawElement) KeyErr() (string, error) { return bsoncore.Elemen... method Value (line 25) | func (re RawElement) Value() RawValue { return convertFromCoreValue(bs... method ValueErr (line 28) | func (re RawElement) ValueErr() (RawValue, error) { method Validate (line 34) | func (re RawElement) Validate() error { return bsoncore.Element(re).Va... method String (line 37) | func (re RawElement) String() string { method DebugString (line 48) | func (re RawElement) DebugString() string { return bsoncore.Element(re... FILE: bson/raw_test.go function ExampleRaw_Validate (line 24) | func ExampleRaw_Validate() { function BenchmarkRawValidate (line 33) | func BenchmarkRawValidate(b *testing.B) { function TestRaw (line 41) | func TestRaw(t *testing.T) { function BenchmarkRawString (line 368) | func BenchmarkRawString(b *testing.B) { function TestComplexDocuments_StringN (line 472) | func TestComplexDocuments_StringN(t *testing.T) { function createVoluminousDocument (line 496) | func createVoluminousDocument(numKeys int) D { function createLargeStringsDocument (line 505) | func createLargeStringsDocument(sizeMB int) D { function createMassiveArraysDocument (line 516) | func createMassiveArraysDocument(arraySize int) D { function createUniqueVoluminousDocument (line 531) | func createUniqueVoluminousDocument(t *testing.T, size int) bsoncore.Doc... function createLargeSingleDoc (line 552) | func createLargeSingleDoc(t *testing.T) bsoncore.Document { function createVoluminousArrayDocuments (line 574) | func createVoluminousArrayDocuments(t *testing.T, size int) bsoncore.Doc... FILE: bson/raw_value.go type RawValue (line 29) | type RawValue struct method IsZero (line 38) | func (rv RawValue) IsZero() bool { method Unmarshal (line 46) | func (rv RawValue) Unmarshal(val any) error { method Equal (line 55) | func (rv RawValue) Equal(rv2 RawValue) bool { method UnmarshalWithRegistry (line 69) | func (rv RawValue) UnmarshalWithRegistry(r *Registry, val any) error { method UnmarshalWithContext (line 89) | func (rv RawValue) UnmarshalWithContext(dc *DecodeContext, val any) er... method Validate (line 116) | func (rv RawValue) Validate() error { return convertToCoreValue(rv).Va... method IsNumber (line 119) | func (rv RawValue) IsNumber() bool { return convertToCoreValue(rv).IsN... method String (line 123) | func (rv RawValue) String() string { return convertToCoreValue(rv).Str... method DebugString (line 127) | func (rv RawValue) DebugString() string { return convertToCoreValue(rv... method Double (line 131) | func (rv RawValue) Double() float64 { return convertToCoreValue(rv).Do... method DoubleOK (line 134) | func (rv RawValue) DoubleOK() (float64, bool) { return convertToCoreVa... method StringValue (line 141) | func (rv RawValue) StringValue() string { return convertToCoreValue(rv... method StringValueOK (line 145) | func (rv RawValue) StringValueOK() (string, bool) { return convertToCo... method Document (line 149) | func (rv RawValue) Document() Raw { return Raw(convertToCoreValue(rv).... method DocumentOK (line 153) | func (rv RawValue) DocumentOK() (Raw, bool) { method Array (line 160) | func (rv RawValue) Array() RawArray { return RawArray(convertToCoreVal... method ArrayOK (line 164) | func (rv RawValue) ArrayOK() (RawArray, bool) { method Binary (line 172) | func (rv RawValue) Binary() (subtype byte, data []byte) { return conve... method BinaryOK (line 176) | func (rv RawValue) BinaryOK() (subtype byte, data []byte, ok bool) { method ObjectID (line 182) | func (rv RawValue) ObjectID() ObjectID { return convertToCoreValue(rv)... method ObjectIDOK (line 186) | func (rv RawValue) ObjectIDOK() (ObjectID, bool) { method Boolean (line 192) | func (rv RawValue) Boolean() bool { return convertToCoreValue(rv).Bool... method BooleanOK (line 196) | func (rv RawValue) BooleanOK() (bool, bool) { return convertToCoreValu... method DateTime (line 200) | func (rv RawValue) DateTime() int64 { return convertToCoreValue(rv).Da... method DateTimeOK (line 204) | func (rv RawValue) DateTimeOK() (int64, bool) { return convertToCoreVa... method Time (line 208) | func (rv RawValue) Time() time.Time { return convertToCoreValue(rv).Ti... method TimeOK (line 212) | func (rv RawValue) TimeOK() (time.Time, bool) { return convertToCoreVa... method Regex (line 216) | func (rv RawValue) Regex() (pattern, options string) { return convertT... method RegexOK (line 220) | func (rv RawValue) RegexOK() (pattern, options string, ok bool) { method DBPointer (line 226) | func (rv RawValue) DBPointer() (string, ObjectID) { method DBPointerOK (line 232) | func (rv RawValue) DBPointerOK() (string, ObjectID, bool) { method JavaScript (line 238) | func (rv RawValue) JavaScript() string { return convertToCoreValue(rv)... method JavaScriptOK (line 242) | func (rv RawValue) JavaScriptOK() (string, bool) { return convertToCor... method Symbol (line 246) | func (rv RawValue) Symbol() string { return convertToCoreValue(rv).Sym... method SymbolOK (line 250) | func (rv RawValue) SymbolOK() (string, bool) { return convertToCoreVal... method CodeWithScope (line 254) | func (rv RawValue) CodeWithScope() (string, Raw) { method CodeWithScopeOK (line 261) | func (rv RawValue) CodeWithScopeOK() (string, Raw, bool) { method Int32 (line 268) | func (rv RawValue) Int32() int32 { return convertToCoreValue(rv).Int32... method Int32OK (line 272) | func (rv RawValue) Int32OK() (int32, bool) { return convertToCoreValue... method Timestamp (line 276) | func (rv RawValue) Timestamp() (t, i uint32) { return convertToCoreVal... method TimestampOK (line 280) | func (rv RawValue) TimestampOK() (t, i uint32, ok bool) { return conve... method Int64 (line 284) | func (rv RawValue) Int64() int64 { return convertToCoreValue(rv).Int64... method Int64OK (line 288) | func (rv RawValue) Int64OK() (int64, bool) { return convertToCoreValue... method AsInt64 (line 292) | func (rv RawValue) AsInt64() int64 { return convertToCoreValue(rv).AsI... method AsInt64OK (line 296) | func (rv RawValue) AsInt64OK() (int64, bool) { return convertToCoreVal... method AsFloat64 (line 300) | func (rv RawValue) AsFloat64() float64 { return convertToCoreValue(rv)... method AsFloat64OK (line 304) | func (rv RawValue) AsFloat64OK() (float64, bool) { return convertToCor... method Decimal128 (line 308) | func (rv RawValue) Decimal128() Decimal128 { return NewDecimal128(conv... method Decimal128OK (line 312) | func (rv RawValue) Decimal128OK() (Decimal128, bool) { function convertFromCoreValue (line 107) | func convertFromCoreValue(v bsoncore.Value) RawValue { function convertToCoreValue (line 111) | func convertToCoreValue(v RawValue) bsoncore.Value { FILE: bson/raw_value_test.go function TestRawValue (line 19) | func TestRawValue(t *testing.T) { FILE: bson/reader.go type ArrayReader (line 11) | type ArrayReader interface type DocumentReader (line 17) | type DocumentReader interface type ValueReader (line 24) | type ValueReader interface FILE: bson/registry.go type errNoEncoder (line 21) | type errNoEncoder struct method Error (line 25) | func (ene errNoEncoder) Error() string { type errNoDecoder (line 33) | type errNoDecoder struct method Error (line 37) | func (end errNoDecoder) Error() string { type errNoTypeMapEntry (line 42) | type errNoTypeMapEntry struct method Error (line 46) | func (entme errNoTypeMapEntry) Error() string { type Registry (line 83) | type Registry struct method RegisterTypeEncoder (line 117) | func (r *Registry) RegisterTypeEncoder(valueType reflect.Type, enc Val... method RegisterTypeDecoder (line 131) | func (r *Registry) RegisterTypeDecoder(valueType reflect.Type, dec Val... method RegisterKindEncoder (line 147) | func (r *Registry) RegisterKindEncoder(kind reflect.Kind, enc ValueEnc... method RegisterKindDecoder (line 163) | func (r *Registry) RegisterKindDecoder(kind reflect.Kind, dec ValueDec... method RegisterInterfaceEncoder (line 173) | func (r *Registry) RegisterInterfaceEncoder(iface reflect.Type, enc Va... method RegisterInterfaceDecoder (line 196) | func (r *Registry) RegisterInterfaceDecoder(iface reflect.Type, dec Va... method RegisterTypeMapEntry (line 222) | func (r *Registry) RegisterTypeMapEntry(bt Type, rt reflect.Type) { method LookupEncoder (line 243) | func (r *Registry) LookupEncoder(valueType reflect.Type) (ValueEncoder... method storeTypeEncoder (line 266) | func (r *Registry) storeTypeEncoder(rt reflect.Type, enc ValueEncoder)... method lookupTypeEncoder (line 270) | func (r *Registry) lookupTypeEncoder(rt reflect.Type) (ValueEncoder, b... method lookupInterfaceEncoder (line 274) | func (r *Registry) lookupInterfaceEncoder(valueType reflect.Type, allo... method LookupDecoder (line 312) | func (r *Registry) LookupDecoder(valueType reflect.Type) (ValueDecoder... method lookupTypeDecoder (line 335) | func (r *Registry) lookupTypeDecoder(valueType reflect.Type) (ValueDec... method storeTypeDecoder (line 339) | func (r *Registry) storeTypeDecoder(typ reflect.Type, dec ValueDecoder... method lookupInterfaceDecoder (line 343) | func (r *Registry) lookupInterfaceDecoder(valueType reflect.Type, allo... method LookupTypeMapEntry (line 365) | func (r *Registry) LookupTypeMapEntry(bt Type) (reflect.Type, error) { function NewRegistry (line 94) | func NewRegistry() *Registry { type interfaceValueEncoder (line 373) | type interfaceValueEncoder struct type interfaceValueDecoder (line 378) | type interfaceValueDecoder struct FILE: bson/registry_examples_test.go function ExampleRegistry_customEncoder (line 18) | func ExampleRegistry_customEncoder() { function ExampleRegistry_customDecoder (line 79) | func ExampleRegistry_customDecoder() { function ExampleRegistry_RegisterKindEncoder (line 161) | func ExampleRegistry_RegisterKindEncoder() { function ExampleRegistry_RegisterKindDecoder (line 219) | func ExampleRegistry_RegisterKindDecoder() { FILE: bson/registry_test.go function newTestRegistry (line 19) | func newTestRegistry() *Registry { function TestRegistry (line 28) | func TestRegistry(t *testing.T) { method get (line 487) | func (c *kindEncoderCache) get(rt reflect.Kind) ValueEncoder { function BenchmarkLookupEncoder (line 492) | func BenchmarkLookupEncoder(b *testing.B) { type fakeType1 (line 533) | type fakeType1 struct type fakeType2 (line 534) | type fakeType2 struct type fakeType4 (line 535) | type fakeType4 struct type fakeType5 (line 536) | type fakeType5 type fakeStructCodec (line 537) | type fakeStructCodec struct type fakeSliceCodec (line 538) | type fakeSliceCodec struct type fakeMapCodec (line 539) | type fakeMapCodec struct type fakeCodec (line 542) | type fakeCodec struct method EncodeValue (line 550) | func (*fakeCodec) EncodeValue(EncodeContext, ValueWriter, reflect.Valu... method DecodeValue (line 554) | func (*fakeCodec) DecodeValue(DecodeContext, ValueReader, reflect.Valu... type testInterface1 (line 559) | type testInterface1 interface type testInterface2 (line 560) | type testInterface2 interface type testInterface3 (line 561) | type testInterface3 interface type testInterface4 (line 562) | type testInterface4 interface type testInterface1Impl (line 565) | type testInterface1Impl struct method test1 (line 569) | func (testInterface1Impl) test1() {} type testInterface2Impl (line 571) | type testInterface2Impl struct method test2 (line 575) | func (testInterface2Impl) test2() {} type testInterface3Impl (line 577) | type testInterface3Impl struct method test3 (line 581) | func (*testInterface3Impl) test3() {} function typeComparer (line 583) | func typeComparer(i1, i2 reflect.Type) bool { return i1 == i2 } FILE: bson/slice_codec.go type sliceCodec (line 16) | type sliceCodec struct method EncodeValue (line 23) | func (sc *sliceCodec) EncodeValue(ec EncodeContext, vw ValueWriter, va... method DecodeValue (line 97) | func (sc *sliceCodec) DecodeValue(dc DecodeContext, vr ValueReader, va... FILE: bson/streaming_byte_src.go type streamingByteSrc (line 20) | type streamingByteSrc struct method readExact (line 29) | func (s *streamingByteSrc) readExact(p []byte) (int, error) { method ReadByte (line 39) | func (s *streamingByteSrc) ReadByte() (byte, error) { method peek (line 48) | func (s *streamingByteSrc) peek(n int) ([]byte, error) { method discard (line 53) | func (s *streamingByteSrc) discard(n int) (int, error) { method readSlice (line 62) | func (s *streamingByteSrc) readSlice(delim byte) ([]byte, error) { method pos (line 99) | func (s *streamingByteSrc) pos() int64 { method regexLength (line 104) | func (s *streamingByteSrc) regexLength() (int32, error) { method streamable (line 126) | func (*streamingByteSrc) streamable() bool { method reset (line 130) | func (s *streamingByteSrc) reset() { FILE: bson/string_codec.go type stringCodec (line 16) | type stringCodec struct method EncodeValue (line 24) | func (sc *stringCodec) EncodeValue(_ EncodeContext, vw ValueWriter, va... method decodeType (line 36) | func (sc *stringCodec) decodeType(dc DecodeContext, vr ValueReader, t ... method DecodeValue (line 95) | func (sc *stringCodec) DecodeValue(dctx DecodeContext, vr ValueReader,... FILE: bson/struct_codec.go type DecodeError (line 20) | type DecodeError struct method Unwrap (line 26) | func (de *DecodeError) Unwrap() error { method Error (line 31) | func (de *DecodeError) Error() string { method Keys (line 41) | func (de *DecodeError) Keys() []string { type mapElementsEncoder (line 51) | type mapElementsEncoder interface type structCodec (line 56) | type structCodec struct method EncodeValue (line 96) | func (sc *structCodec) EncodeValue(ec EncodeContext, vw ValueWriter, v... method DecodeValue (line 218) | func (sc *structCodec) DecodeValue(dc DecodeContext, vr ValueReader, v... method describeStruct (line 447) | func (sc *structCodec) describeStruct( method describeStructSlow (line 470) | func (sc *structCodec) describeStructSlow( function newStructCodec (line 88) | func newStructCodec(elemEncoder mapElementsEncoder) *structCodec { function newDecodeError (line 202) | func newDecodeError(key string, original error) error { function isEmpty (line 368) | func isEmpty(v reflect.Value, omitZeroStruct bool) bool { type structDescription (line 399) | type structDescription struct type fieldDescription (line 406) | type fieldDescription struct type byIndex (line 418) | type byIndex method Len (line 420) | func (bi byIndex) Len() int { return len(bi) } method Swap (line 422) | func (bi byIndex) Swap(i, j int) { bi[i], bi[j] = bi[j], bi[i] } method Less (line 424) | func (bi byIndex) Less(i, j int) bool { function dominantField (line 614) | func dominantField(fields []fieldDescription) (fieldDescription, bool) { function fieldByIndexErr (line 625) | func fieldByIndexErr(v reflect.Value, index []int) (result reflect.Value... function getInlineField (line 641) | func getInlineField(val reflect.Value, index []int) (reflect.Value, erro... function deepZero (line 662) | func deepZero(st reflect.Type) (result reflect.Value) { function recursivePointerTo (line 681) | func recursivePointerTo(v reflect.Value) reflect.Value { FILE: bson/struct_codec_test.go function TestIsZero (line 17) | func TestIsZero(t *testing.T) { FILE: bson/struct_tag_parser.go type structTags (line 38) | type structTags struct function parseStructTags (line 72) | func parseStructTags(sf reflect.StructField) (*structTags, error) { function parseJSONStructTags (line 84) | func parseJSONStructTags(sf reflect.StructField) (*structTags, error) { function parseTags (line 97) | func parseTags(key string, tag string) (*structTags, error) { FILE: bson/struct_tag_parser_test.go function TestStructTagParsers (line 16) | func TestStructTagParsers(t *testing.T) { FILE: bson/time_codec.go constant timeFormatString (line 16) | timeFormatString = "2006-01-02T15:04:05.999Z07:00" type timeCodec (line 20) | type timeCodec struct method decodeType (line 29) | func (tc *timeCodec) decodeType(dc DecodeContext, vr ValueReader, t re... method DecodeValue (line 87) | func (tc *timeCodec) DecodeValue(dc DecodeContext, vr ValueReader, val... method EncodeValue (line 102) | func (tc *timeCodec) EncodeValue(_ EncodeContext, vw ValueWriter, val ... FILE: bson/time_codec_test.go function TestTimeCodec (line 18) | func TestTimeCodec(t *testing.T) { FILE: bson/truncation_test.go type inputArgs (line 16) | type inputArgs struct type outputArgs (line 21) | type outputArgs struct function unmarshalWithContext (line 26) | func unmarshalWithContext(t *testing.T, dc DecodeContext, data []byte, v... function TestTruncation (line 33) | func TestTruncation(t *testing.T) { FILE: bson/type_test.go function TestType (line 13) | func TestType(t *testing.T) { FILE: bson/types.go type Type (line 19) | type Type method String (line 22) | func (bt Type) String() string { method IsValid (line 27) | func (bt Type) IsValid() bool { constant TypeDouble (line 41) | TypeDouble Type = 0x01 constant TypeString (line 42) | TypeString Type = 0x02 constant TypeEmbeddedDocument (line 43) | TypeEmbeddedDocument Type = 0x03 constant TypeArray (line 44) | TypeArray Type = 0x04 constant TypeBinary (line 45) | TypeBinary Type = 0x05 constant TypeUndefined (line 46) | TypeUndefined Type = 0x06 constant TypeObjectID (line 47) | TypeObjectID Type = 0x07 constant TypeBoolean (line 48) | TypeBoolean Type = 0x08 constant TypeDateTime (line 49) | TypeDateTime Type = 0x09 constant TypeNull (line 50) | TypeNull Type = 0x0A constant TypeRegex (line 51) | TypeRegex Type = 0x0B constant TypeDBPointer (line 52) | TypeDBPointer Type = 0x0C constant TypeJavaScript (line 53) | TypeJavaScript Type = 0x0D constant TypeSymbol (line 54) | TypeSymbol Type = 0x0E constant TypeCodeWithScope (line 55) | TypeCodeWithScope Type = 0x0F constant TypeInt32 (line 56) | TypeInt32 Type = 0x10 constant TypeTimestamp (line 57) | TypeTimestamp Type = 0x11 constant TypeInt64 (line 58) | TypeInt64 Type = 0x12 constant TypeDecimal128 (line 59) | TypeDecimal128 Type = 0x13 constant TypeMaxKey (line 60) | TypeMaxKey Type = 0x7F constant TypeMinKey (line 61) | TypeMinKey Type = 0xFF constant TypeBinaryGeneric (line 66) | TypeBinaryGeneric byte = 0x00 constant TypeBinaryFunction (line 67) | TypeBinaryFunction byte = 0x01 constant TypeBinaryBinaryOld (line 68) | TypeBinaryBinaryOld byte = 0x02 constant TypeBinaryUUIDOld (line 69) | TypeBinaryUUIDOld byte = 0x03 constant TypeBinaryUUID (line 70) | TypeBinaryUUID byte = 0x04 constant TypeBinaryMD5 (line 71) | TypeBinaryMD5 byte = 0x05 constant TypeBinaryEncrypted (line 72) | TypeBinaryEncrypted byte = 0x06 constant TypeBinaryColumn (line 73) | TypeBinaryColumn byte = 0x07 constant TypeBinarySensitive (line 74) | TypeBinarySensitive byte = 0x08 constant TypeBinaryVector (line 75) | TypeBinaryVector byte = 0x09 constant TypeBinaryUserDefined (line 76) | TypeBinaryUserDefined byte = 0x80 FILE: bson/uint_codec.go type uintCodec (line 16) | type uintCodec struct method EncodeValue (line 27) | func (uic *uintCodec) EncodeValue(ec EncodeContext, vw ValueWriter, va... method decodeType (line 53) | func (uic *uintCodec) decodeType(dc DecodeContext, vr ValueReader, t r... method DecodeValue (line 145) | func (uic *uintCodec) DecodeValue(dc DecodeContext, vr ValueReader, va... FILE: bson/unmarshal.go type Unmarshaler (line 22) | type Unmarshaler interface type ValueUnmarshaler (line 34) | type ValueUnmarshaler interface function Unmarshal (line 44) | func Unmarshal(data []byte, val any) error { function UnmarshalValue (line 59) | func UnmarshalValue(t Type, data []byte, val any) error { function UnmarshalExtJSON (line 73) | func UnmarshalExtJSON(data []byte, canonicalOnly bool, val any) error { function unmarshalFromReader (line 82) | func unmarshalFromReader(dc DecodeContext, vr ValueReader, val any) error { FILE: bson/unmarshal_test.go function TestUnmarshal (line 20) | func TestUnmarshal(t *testing.T) { function TestUnmarshalWithRegistry (line 42) | func TestUnmarshalWithRegistry(t *testing.T) { function TestCachingDecodersNotSharedAcrossRegistries (line 89) | func TestCachingDecodersNotSharedAcrossRegistries(t *testing.T) { function TestUnmarshalExtJSONWithUndefinedField (line 150) | func TestUnmarshalExtJSONWithUndefinedField(t *testing.T) { function TestUnmarshalInterface (line 292) | func TestUnmarshalInterface(t *testing.T) { function TestUnmarshalBSONWithUndefinedField (line 465) | func TestUnmarshalBSONWithUndefinedField(t *testing.T) { function TestUnmarshalByteSlicesUseDistinctArrays (line 619) | func TestUnmarshalByteSlicesUseDistinctArrays(t *testing.T) { function TestUnmarshalConcurrently (line 825) | func TestUnmarshalConcurrently(t *testing.T) { function TestUnmarshalTypeCompatibility (line 843) | func TestUnmarshalTypeCompatibility(t *testing.T) { FILE: bson/unmarshal_value_test.go function TestUnmarshalValue (line 19) | func TestUnmarshalValue(t *testing.T) { function TestInitializedPointerDataWithBSONNull (line 36) | func TestInitializedPointerDataWithBSONNull(t *testing.T) { function BenchmarkSliceCodecUnmarshal (line 57) | func BenchmarkSliceCodecUnmarshal(b *testing.B) { FILE: bson/unmarshaling_cases_test.go type unmarshalingTestCase (line 15) | type unmarshalingTestCase struct function unmarshalingTestCases (line 22) | func unmarshalingTestCases() []unmarshalingTestCase { type unmarshalerPtrStruct (line 265) | type unmarshalerPtrStruct struct type unmarshalerNonPtrStruct (line 275) | type unmarshalerNonPtrStruct struct type myInt64 (line 282) | type myInt64 method UnmarshalBSONValue (line 286) | func (mi *myInt64) UnmarshalBSONValue(t byte, b []byte) error { method UnmarshalBSON (line 303) | func (mi *myInt64) UnmarshalBSON(b []byte) error { type myMap (line 315) | type myMap method UnmarshalBSON (line 317) | func (mm *myMap) UnmarshalBSON(bytes []byte) error { type myBytes (line 327) | type myBytes method UnmarshalBSON (line 329) | func (mb *myBytes) UnmarshalBSON(b []byte) error { type myString (line 341) | type myString method UnmarshalBSON (line 343) | func (ms *myString) UnmarshalBSON(b []byte) error { type unmarshalBSONValueCallTracker (line 357) | type unmarshalBSONValueCallTracker struct method UnmarshalBSONValue (line 381) | func (tracker *unmarshalBSONValueCallTracker) UnmarshalBSONValue(byte,... type unmarshalBSONCallTracker (line 365) | type unmarshalBSONCallTracker struct method UnmarshalBSON (line 386) | func (tracker *unmarshalBSONCallTracker) UnmarshalBSON([]byte) error { type unmarshalBehaviorTestCase (line 374) | type unmarshalBehaviorTestCase struct FILE: bson/value_reader.go type byteSrc (line 19) | type byteSrc interface type vrState (line 59) | type vrState struct type valueReader (line 74) | type valueReader struct method advanceFrame (line 151) | func (vr *valueReader) advanceFrame() { method pop (line 170) | func (vr *valueReader) pop() error { method invalidTransitionErr (line 203) | func (vr *valueReader) invalidTransitionErr(destination mode, name str... method typeError (line 217) | func (vr *valueReader) typeError(t Type) error { method invalidDocumentLengthError (line 221) | func (vr *valueReader) invalidDocumentLengthError() error { method ensureElementValue (line 225) | func (vr *valueReader) ensureElementValue(t Type, destination mode, ca... method Type (line 238) | func (vr *valueReader) Type() Type { method readBytes (line 303) | func (vr *valueReader) readBytes(n int32) ([]byte, error) { method readValueBytes (line 312) | func (vr *valueReader) readValueBytes(dst []byte) (Type, []byte, error) { method Skip (line 342) | func (vr *valueReader) Skip() error { method ReadArray (line 364) | func (vr *valueReader) ReadArray() (ArrayReader, error) { method ReadBinary (line 388) | func (vr *valueReader) ReadBinary() ([]byte, byte, error) { method ReadBoolean (line 429) | func (vr *valueReader) ReadBoolean() (bool, error) { method ReadDocument (line 451) | func (vr *valueReader) ReadDocument() (DocumentReader, error) { method ReadCodeWithScope (line 487) | func (vr *valueReader) ReadCodeWithScope() (string, DocumentReader, er... method ReadDBPointer (line 535) | func (vr *valueReader) ReadDBPointer() (string, ObjectID, error) { method ReadDateTime (line 560) | func (vr *valueReader) ReadDateTime() (int64, error) { method ReadDecimal128 (line 578) | func (vr *valueReader) ReadDecimal128() (Decimal128, error) { method ReadDouble (line 597) | func (vr *valueReader) ReadDouble() (float64, error) { method ReadInt32 (line 615) | func (vr *valueReader) ReadInt32() (int32, error) { method ReadInt64 (line 632) | func (vr *valueReader) ReadInt64() (int64, error) { method ReadJavascript (line 649) | func (vr *valueReader) ReadJavascript() (string, error) { method ReadMaxKey (line 666) | func (vr *valueReader) ReadMaxKey() error { method ReadMinKey (line 676) | func (vr *valueReader) ReadMinKey() error { method ReadNull (line 686) | func (vr *valueReader) ReadNull() error { method ReadObjectID (line 696) | func (vr *valueReader) ReadObjectID() (ObjectID, error) { method ReadRegex (line 717) | func (vr *valueReader) ReadRegex() (string, string, error) { method ReadString (line 740) | func (vr *valueReader) ReadString() (string, error) { method ReadSymbol (line 757) | func (vr *valueReader) ReadSymbol() (string, error) { method ReadTimestamp (line 773) | func (vr *valueReader) ReadTimestamp() (uint32, uint32, error) { method ReadUndefined (line 796) | func (vr *valueReader) ReadUndefined() error { method ReadElement (line 806) | func (vr *valueReader) ReadElement() (string, ValueReader, error) { method ReadValue (line 841) | func (vr *valueReader) ReadValue() (ValueReader, error) { method readByte (line 874) | func (vr *valueReader) readByte() (byte, error) { method readCString (line 882) | func (vr *valueReader) readCString() (string, error) { method readString (line 890) | func (vr *valueReader) readString() (string, error) { method peekLength (line 914) | func (vr *valueReader) peekLength() (int32, error) { method readLength (line 922) | func (vr *valueReader) readLength() (int32, error) { method readi32 (line 926) | func (vr *valueReader) readi32() (int32, error) { method readu32 (line 935) | func (vr *valueReader) readu32() (uint32, error) { method readi64 (line 944) | func (vr *valueReader) readi64() (int64, error) { method readu64 (line 953) | func (vr *valueReader) readu64() (uint64, error) { function getBufferedDocumentReader (line 82) | func getBufferedDocumentReader(b []byte) *valueReader { function putBufferedDocumentReader (line 86) | func putBufferedDocumentReader(vr *valueReader) { function NewDocumentReader (line 103) | func NewDocumentReader(r io.Reader) ValueReader { function newBufferedValueReader (line 118) | func newBufferedValueReader(t Type, b []byte) ValueReader { function newBufferedDocumentReader (line 127) | func newBufferedDocumentReader(b []byte) *valueReader { function peekNextValueSize (line 244) | func peekNextValueSize(vr *valueReader) (int32, error) { function readBytes (line 282) | func readBytes(src byteSrc, n int) ([]byte, error) { FILE: bson/value_reader_test.go function TestValueReader_ReadBinary (line 29) | func TestValueReader_ReadBinary(t *testing.T) { function TestValueReader_ReadBoolean (line 135) | func TestValueReader_ReadBoolean(t *testing.T) { function TestValueReader_ReadDocument_TopLevel_InvalidLength (line 222) | func TestValueReader_ReadDocument_TopLevel_InvalidLength(t *testing.T) { function TestValueReader_ReadDocument_TopLevel_ValidDocumentWithIncorrectEnd (line 256) | func TestValueReader_ReadDocument_TopLevel_ValidDocumentWithIncorrectEnd... function TestValueReader_ReadDocument_EmbeddedDocument (line 286) | func TestValueReader_ReadDocument_EmbeddedDocument(t *testing.T) { function TestValueReader_ReadCodeWithScope (line 388) | func TestValueReader_ReadCodeWithScope(t *testing.T) { function TestValueReader_ReadDBPointer (line 568) | func TestValueReader_ReadDBPointer(t *testing.T) { function TestValueReader_ReadDateTime (line 677) | func TestValueReader_ReadDateTime(t *testing.T) { function TestValueReader_ReadDecimal128 (line 757) | func TestValueReader_ReadDecimal128(t *testing.T) { function TestValueReader_ReadDouble (line 850) | func TestValueReader_ReadDouble(t *testing.T) { function TestValueReader_ReadInt32 (line 930) | func TestValueReader_ReadInt32(t *testing.T) { function TestValueReader_ReadInt64 (line 1010) | func TestValueReader_ReadInt64(t *testing.T) { function TestValueReader_ReadJavascript_ReadString_ReadSymbol (line 1090) | func TestValueReader_ReadJavascript_ReadString_ReadSymbol(t *testing.T) { function TestValueReader_ReadMaxKey_ReadMinKey_ReadNull_ReadUndefined (line 1288) | func TestValueReader_ReadMaxKey_ReadMinKey_ReadNull_ReadUndefined(t *tes... function TestValueReader_ReadObjectID (line 1399) | func TestValueReader_ReadObjectID(t *testing.T) { function TestValueReader_ReadRegex (line 1479) | func TestValueReader_ReadRegex(t *testing.T) { function TestValueReader_ReadTimestamp (line 1577) | func TestValueReader_ReadTimestamp(t *testing.T) { function TestValueReader_ReadBytes_Skip_Buffered (line 1675) | func TestValueReader_ReadBytes_Skip_Buffered(t *testing.T) { function TestValueReader_ReadBytes_Skip_Streaming (line 2082) | func TestValueReader_ReadBytes_Skip_Streaming(t *testing.T) { function TestValueReader_InvalidTransition (line 2500) | func TestValueReader_InvalidTransition(t *testing.T) { function errequal (line 2521) | func errequal(t *testing.T, err1, err2 error) bool { FILE: bson/value_reader_writer_test.go type VRWInvoked (line 15) | type VRWInvoked constant _ (line 18) | _ = iota constant llvrwReadArray (line 19) | llvrwReadArray VRWInvoked = 1 constant llvrwReadBinary (line 20) | llvrwReadBinary constant llvrwReadBoolean (line 21) | llvrwReadBoolean constant llvrwReadDocument (line 22) | llvrwReadDocument constant llvrwReadCodeWithScope (line 23) | llvrwReadCodeWithScope constant llvrwReadDBPointer (line 24) | llvrwReadDBPointer constant llvrwReadDateTime (line 25) | llvrwReadDateTime constant llvrwReadDecimal128 (line 26) | llvrwReadDecimal128 constant llvrwReadDouble (line 27) | llvrwReadDouble constant llvrwReadInt32 (line 28) | llvrwReadInt32 constant llvrwReadInt64 (line 29) | llvrwReadInt64 constant llvrwReadJavascript (line 30) | llvrwReadJavascript constant llvrwReadMaxKey (line 31) | llvrwReadMaxKey constant llvrwReadMinKey (line 32) | llvrwReadMinKey constant llvrwReadNull (line 33) | llvrwReadNull constant llvrwReadObjectID (line 34) | llvrwReadObjectID constant llvrwReadRegex (line 35) | llvrwReadRegex constant llvrwReadString (line 36) | llvrwReadString constant llvrwReadSymbol (line 37) | llvrwReadSymbol constant llvrwReadTimestamp (line 38) | llvrwReadTimestamp constant llvrwReadUndefined (line 39) | llvrwReadUndefined constant llvrwReadElement (line 40) | llvrwReadElement constant llvrwReadValue (line 41) | llvrwReadValue constant llvrwWriteArray (line 42) | llvrwWriteArray constant llvrwWriteBinary (line 43) | llvrwWriteBinary constant llvrwWriteBinaryWithSubtype (line 44) | llvrwWriteBinaryWithSubtype constant llvrwWriteBoolean (line 45) | llvrwWriteBoolean constant llvrwWriteCodeWithScope (line 46) | llvrwWriteCodeWithScope constant llvrwWriteDBPointer (line 47) | llvrwWriteDBPointer constant llvrwWriteDateTime (line 48) | llvrwWriteDateTime constant llvrwWriteDecimal128 (line 49) | llvrwWriteDecimal128 constant llvrwWriteDouble (line 50) | llvrwWriteDouble constant llvrwWriteInt32 (line 51) | llvrwWriteInt32 constant llvrwWriteInt64 (line 52) | llvrwWriteInt64 constant llvrwWriteJavascript (line 53) | llvrwWriteJavascript constant llvrwWriteMaxKey (line 54) | llvrwWriteMaxKey constant llvrwWriteMinKey (line 55) | llvrwWriteMinKey constant llvrwWriteNull (line 56) | llvrwWriteNull constant llvrwWriteObjectID (line 57) | llvrwWriteObjectID constant llvrwWriteRegex (line 58) | llvrwWriteRegex constant llvrwWriteString (line 59) | llvrwWriteString constant llvrwWriteDocument (line 60) | llvrwWriteDocument constant llvrwWriteSymbol (line 61) | llvrwWriteSymbol constant llvrwWriteTimestamp (line 62) | llvrwWriteTimestamp constant llvrwWriteUndefined (line 63) | llvrwWriteUndefined constant llvrwWriteDocumentElement (line 64) | llvrwWriteDocumentElement constant llvrwWriteDocumentEnd (line 65) | llvrwWriteDocumentEnd constant llvrwWriteArrayElement (line 66) | llvrwWriteArrayElement constant llvrwWriteArrayEnd (line 67) | llvrwWriteArrayEnd type TestValueReaderWriter (line 70) | type TestValueReaderWriter struct method Type (line 79) | func (llvrw *TestValueReaderWriter) Type() Type { method Skip (line 83) | func (llvrw *TestValueReaderWriter) Skip() error { method ReadArray (line 87) | func (llvrw *TestValueReaderWriter) ReadArray() (ArrayReader, error) { method ReadBinary (line 96) | func (llvrw *TestValueReaderWriter) ReadBinary() (b []byte, btype byte... method ReadBoolean (line 116) | func (llvrw *TestValueReaderWriter) ReadBoolean() (bool, error) { method ReadDocument (line 131) | func (llvrw *TestValueReaderWriter) ReadDocument() (DocumentReader, er... method ReadCodeWithScope (line 140) | func (llvrw *TestValueReaderWriter) ReadCodeWithScope() (code string, ... method ReadDBPointer (line 149) | func (llvrw *TestValueReaderWriter) ReadDBPointer() (ns string, oid Ob... method ReadDateTime (line 169) | func (llvrw *TestValueReaderWriter) ReadDateTime() (int64, error) { method ReadDecimal128 (line 184) | func (llvrw *TestValueReaderWriter) ReadDecimal128() (Decimal128, erro... method ReadDouble (line 199) | func (llvrw *TestValueReaderWriter) ReadDouble() (float64, error) { method ReadInt32 (line 214) | func (llvrw *TestValueReaderWriter) ReadInt32() (int32, error) { method ReadInt64 (line 229) | func (llvrw *TestValueReaderWriter) ReadInt64() (int64, error) { method ReadJavascript (line 243) | func (llvrw *TestValueReaderWriter) ReadJavascript() (code string, err... method ReadMaxKey (line 257) | func (llvrw *TestValueReaderWriter) ReadMaxKey() error { method ReadMinKey (line 266) | func (llvrw *TestValueReaderWriter) ReadMinKey() error { method ReadNull (line 275) | func (llvrw *TestValueReaderWriter) ReadNull() error { method ReadObjectID (line 284) | func (llvrw *TestValueReaderWriter) ReadObjectID() (ObjectID, error) { method ReadRegex (line 298) | func (llvrw *TestValueReaderWriter) ReadRegex() (pattern string, optio... method ReadString (line 317) | func (llvrw *TestValueReaderWriter) ReadString() (string, error) { method ReadSymbol (line 331) | func (llvrw *TestValueReaderWriter) ReadSymbol() (symbol string, err e... method ReadTimestamp (line 350) | func (llvrw *TestValueReaderWriter) ReadTimestamp() (t uint32, i uint3... method ReadUndefined (line 369) | func (llvrw *TestValueReaderWriter) ReadUndefined() error { method WriteArray (line 378) | func (llvrw *TestValueReaderWriter) WriteArray() (ArrayWriter, error) { method WriteBinary (line 386) | func (llvrw *TestValueReaderWriter) WriteBinary([]byte) error { method WriteBinaryWithSubtype (line 394) | func (llvrw *TestValueReaderWriter) WriteBinaryWithSubtype([]byte, byt... method WriteBoolean (line 402) | func (llvrw *TestValueReaderWriter) WriteBoolean(bool) error { method WriteCodeWithScope (line 410) | func (llvrw *TestValueReaderWriter) WriteCodeWithScope(string) (Docume... method WriteDBPointer (line 418) | func (llvrw *TestValueReaderWriter) WriteDBPointer(string, ObjectID) e... method WriteDateTime (line 426) | func (llvrw *TestValueReaderWriter) WriteDateTime(int64) error { method WriteDecimal128 (line 434) | func (llvrw *TestValueReaderWriter) WriteDecimal128(Decimal128) error { method WriteDouble (line 442) | func (llvrw *TestValueReaderWriter) WriteDouble(float64) error { method WriteInt32 (line 450) | func (llvrw *TestValueReaderWriter) WriteInt32(int32) error { method WriteInt64 (line 458) | func (llvrw *TestValueReaderWriter) WriteInt64(int64) error { method WriteJavascript (line 466) | func (llvrw *TestValueReaderWriter) WriteJavascript(string) error { method WriteMaxKey (line 474) | func (llvrw *TestValueReaderWriter) WriteMaxKey() error { method WriteMinKey (line 482) | func (llvrw *TestValueReaderWriter) WriteMinKey() error { method WriteNull (line 490) | func (llvrw *TestValueReaderWriter) WriteNull() error { method WriteObjectID (line 498) | func (llvrw *TestValueReaderWriter) WriteObjectID(ObjectID) error { method WriteRegex (line 506) | func (llvrw *TestValueReaderWriter) WriteRegex(string, string) error { method WriteString (line 514) | func (llvrw *TestValueReaderWriter) WriteString(string) error { method WriteDocument (line 522) | func (llvrw *TestValueReaderWriter) WriteDocument() (DocumentWriter, e... method WriteSymbol (line 530) | func (llvrw *TestValueReaderWriter) WriteSymbol(string) error { method WriteTimestamp (line 538) | func (llvrw *TestValueReaderWriter) WriteTimestamp(uint32, uint32) err... method WriteUndefined (line 546) | func (llvrw *TestValueReaderWriter) WriteUndefined() error { method ReadElement (line 554) | func (llvrw *TestValueReaderWriter) ReadElement() (string, ValueReader... method WriteDocumentElement (line 563) | func (llvrw *TestValueReaderWriter) WriteDocumentElement(string) (Valu... method WriteDocumentEnd (line 572) | func (llvrw *TestValueReaderWriter) WriteDocumentEnd() error { method ReadValue (line 581) | func (llvrw *TestValueReaderWriter) ReadValue() (ValueReader, error) { method WriteArrayElement (line 590) | func (llvrw *TestValueReaderWriter) WriteArrayElement() (ValueWriter, ... method WriteArrayEnd (line 599) | func (llvrw *TestValueReaderWriter) WriteArrayEnd() error { FILE: bson/value_writer.go function putValueWriter (line 29) | func putValueWriter(vw *valueWriter) { function getDocumentWriter (line 42) | func getDocumentWriter(w io.Writer) *valueWriter { function putDocumentWriter (line 52) | func putDocumentWriter(vw *valueWriter) { type errMaxDocumentSizeExceeded (line 63) | type errMaxDocumentSizeExceeded struct method Error (line 67) | func (mdse errMaxDocumentSizeExceeded) Error() string { type vwMode (line 71) | type vwMode method String (line 83) | func (vm vwMode) String() string { constant _ (line 74) | _ vwMode = iota constant vwTopLevel (line 75) | vwTopLevel constant vwDocument (line 76) | vwDocument constant vwArray (line 77) | vwArray constant vwValue (line 78) | vwValue constant vwElement (line 79) | vwElement constant vwCodeWithScope (line 80) | vwCodeWithScope type vwState (line 106) | type vwState struct type valueWriter (line 113) | type valueWriter struct method advanceFrame (line 121) | func (vw *valueWriter) advanceFrame() { method push (line 128) | func (vw *valueWriter) push(m mode) { method reserveLength (line 140) | func (vw *valueWriter) reserveLength() { method pop (line 145) | func (vw *valueWriter) pop() { method reset (line 182) | func (vw *valueWriter) reset(buf []byte) { method invalidTransitionError (line 193) | func (vw *valueWriter) invalidTransitionError(destination mode, name s... method writeElementHeader (line 207) | func (vw *valueWriter) writeElementHeader(t Type, destination mode, ca... method writeValueBytes (line 229) | func (vw *valueWriter) writeValueBytes(t Type, b []byte) error { method WriteArray (line 238) | func (vw *valueWriter) WriteArray() (ArrayWriter, error) { method WriteBinary (line 248) | func (vw *valueWriter) WriteBinary(b []byte) error { method WriteBinaryWithSubtype (line 252) | func (vw *valueWriter) WriteBinaryWithSubtype(b []byte, btype byte) er... method WriteBoolean (line 262) | func (vw *valueWriter) WriteBoolean(b bool) error { method WriteCodeWithScope (line 272) | func (vw *valueWriter) WriteCodeWithScope(code string) (DocumentWriter... method WriteDBPointer (line 289) | func (vw *valueWriter) WriteDBPointer(ns string, oid ObjectID) error { method WriteDateTime (line 299) | func (vw *valueWriter) WriteDateTime(dt int64) error { method WriteDecimal128 (line 309) | func (vw *valueWriter) WriteDecimal128(d128 Decimal128) error { method WriteDouble (line 320) | func (vw *valueWriter) WriteDouble(f float64) error { method WriteInt32 (line 330) | func (vw *valueWriter) WriteInt32(i32 int32) error { method WriteInt64 (line 340) | func (vw *valueWriter) WriteInt64(i64 int64) error { method WriteJavascript (line 350) | func (vw *valueWriter) WriteJavascript(code string) error { method WriteMaxKey (line 360) | func (vw *valueWriter) WriteMaxKey() error { method WriteMinKey (line 369) | func (vw *valueWriter) WriteMinKey() error { method WriteNull (line 378) | func (vw *valueWriter) WriteNull() error { method WriteObjectID (line 387) | func (vw *valueWriter) WriteObjectID(oid ObjectID) error { method WriteRegex (line 397) | func (vw *valueWriter) WriteRegex(pattern string, options string) error { method WriteString (line 410) | func (vw *valueWriter) WriteString(s string) error { method WriteDocument (line 420) | func (vw *valueWriter) WriteDocument() (DocumentWriter, error) { method WriteSymbol (line 433) | func (vw *valueWriter) WriteSymbol(symbol string) error { method WriteTimestamp (line 443) | func (vw *valueWriter) WriteTimestamp(t uint32, i uint32) error { method WriteUndefined (line 453) | func (vw *valueWriter) WriteUndefined() error { method WriteDocumentElement (line 462) | func (vw *valueWriter) WriteDocumentElement(key string) (ValueWriter, ... method WriteDocumentEnd (line 475) | func (vw *valueWriter) WriteDocumentEnd() error { method Flush (line 506) | func (vw *valueWriter) Flush() error { method WriteArrayElement (line 519) | func (vw *valueWriter) WriteArrayElement() (ValueWriter, error) { method WriteArrayEnd (line 533) | func (vw *valueWriter) WriteArrayEnd() error { method writeLength (line 555) | func (vw *valueWriter) writeLength() error { method appendHeader (line 590) | func (vw *valueWriter) appendHeader(t Type, key string) { method appendIntHeader (line 596) | func (vw *valueWriter) appendIntHeader(t Type, key int) { function NewDocumentWriter (line 158) | func NewDocumentWriter(w io.Writer) ValueWriter { function newDocumentWriter (line 162) | func newDocumentWriter(w io.Writer) *valueWriter { function newValueWriterFromSlice (line 172) | func newValueWriterFromSlice(buf []byte) *valueWriter { function isValidCString (line 572) | func isValidCString(cs string) bool { FILE: bson/value_writer_test.go function TestNewDocumentWriter (line 23) | func TestNewDocumentWriter(t *testing.T) { function TestDocumentWriter (line 30) | func TestDocumentWriter(t *testing.T) { type errWriter (line 367) | type errWriter struct method Write (line 371) | func (ew errWriter) Write([]byte) (int, error) { return 0, ew.err } FILE: bson/vector.go constant Int8Vector (line 18) | Int8Vector byte = 0x03 constant Float32Vector (line 19) | Float32Vector byte = 0x27 constant PackedBitVector (line 20) | PackedBitVector byte = 0x10 type vectorTypeError (line 30) | type vectorTypeError struct method Error (line 36) | func (vte vectorTypeError) Error() string { type Vector (line 50) | type Vector struct method Type (line 59) | func (v Vector) Type() byte { method Int8 (line 65) | func (v Vector) Int8() []int8 { method Int8OK (line 74) | func (v Vector) Int8OK() ([]int8, bool) { method Float32 (line 83) | func (v Vector) Float32() []float32 { method Float32OK (line 92) | func (v Vector) Float32OK() ([]float32, bool) { method PackedBit (line 102) | func (v Vector) PackedBit() ([]byte, uint8) { method PackedBitOK (line 111) | func (v Vector) PackedBitOK() ([]byte, uint8, bool) { method Binary (line 119) | func (v Vector) Binary() Binary { function binaryFromInt8Vector (line 132) | func binaryFromInt8Vector(v []int8) Binary { function binaryFromFloat32Vector (line 147) | func binaryFromFloat32Vector(v []float32) Binary { function binaryFromBitVector (line 163) | func binaryFromBitVector(bits []byte, padding uint8) Binary { function NewVector (line 175) | func NewVector[T int8 | float32](data []T) Vector { function NewPackedBitVector (line 193) | func NewPackedBitVector(bits []byte, padding uint8) (Vector, error) { function NewVectorFromBinary (line 209) | func NewVectorFromBinary(b Binary) (Vector, error) { function newInt8Vector (line 229) | func newInt8Vector(b []byte) (Vector, error) { function newFloat32Vector (line 244) | func newFloat32Vector(b []byte) (Vector, error) { function newBitVector (line 263) | func newBitVector(b []byte) (Vector, error) { FILE: bson/writer.go type ArrayWriter (line 12) | type ArrayWriter interface type DocumentWriter (line 20) | type DocumentWriter interface type ValueWriter (line 28) | type ValueWriter interface type sliceWriter (line 54) | type sliceWriter method Write (line 57) | func (sw *sliceWriter) Write(p []byte) (int, error) { FILE: event/description.go type ServerDescription (line 21) | type ServerDescription struct type TopologyDescription (line 52) | type TopologyDescription struct FILE: event/examples_test.go function ExampleCommandMonitor (line 22) | func ExampleCommandMonitor() { FILE: event/monitoring.go type CommandStartedEvent (line 18) | type CommandStartedEvent struct type CommandFinishedEvent (line 33) | type CommandFinishedEvent struct type CommandSucceededEvent (line 48) | type CommandSucceededEvent struct type CommandFailedEvent (line 54) | type CommandFailedEvent struct type CommandMonitor (line 60) | type CommandMonitor struct constant ReasonIdle (line 68) | ReasonIdle = "idle" constant ReasonPoolClosed (line 69) | ReasonPoolClosed = "poolClosed" constant ReasonStale (line 70) | ReasonStale = "stale" constant ReasonConnectionErrored (line 71) | ReasonConnectionErrored = "connectionError" constant ReasonTimedOut (line 72) | ReasonTimedOut = "timeout" constant ReasonError (line 73) | ReasonError = "error" constant ConnectionPoolCreated (line 78) | ConnectionPoolCreated = "ConnectionPoolCreated" constant ConnectionPoolReady (line 79) | ConnectionPoolReady = "ConnectionPoolReady" constant ConnectionPoolCleared (line 80) | ConnectionPoolCleared = "ConnectionPoolCleared" constant ConnectionPoolClosed (line 81) | ConnectionPoolClosed = "ConnectionPoolClosed" constant ConnectionCreated (line 82) | ConnectionCreated = "ConnectionCreated" constant ConnectionReady (line 83) | ConnectionReady = "ConnectionReady" constant ConnectionClosed (line 84) | ConnectionClosed = "ConnectionClosed" constant ConnectionCheckOutStarted (line 85) | ConnectionCheckOutStarted = "ConnectionCheckOutStarted" constant ConnectionCheckOutFailed (line 86) | ConnectionCheckOutFailed = "ConnectionCheckOutFailed" constant ConnectionCheckedOut (line 87) | ConnectionCheckedOut = "ConnectionCheckedOut" constant ConnectionCheckedIn (line 88) | ConnectionCheckedIn = "ConnectionCheckedIn" type MonitorPoolOptions (line 92) | type MonitorPoolOptions struct type PoolEvent (line 99) | type PoolEvent struct type PoolMonitor (line 114) | type PoolMonitor struct type ServerDescriptionChangedEvent (line 119) | type ServerDescriptionChangedEvent struct type ServerOpeningEvent (line 127) | type ServerOpeningEvent struct type ServerClosedEvent (line 133) | type ServerClosedEvent struct type TopologyDescriptionChangedEvent (line 139) | type TopologyDescriptionChangedEvent struct type TopologyOpeningEvent (line 146) | type TopologyOpeningEvent struct type TopologyClosedEvent (line 151) | type TopologyClosedEvent struct type ServerHeartbeatStartedEvent (line 156) | type ServerHeartbeatStartedEvent struct type ServerHeartbeatSucceededEvent (line 162) | type ServerHeartbeatSucceededEvent struct type ServerHeartbeatFailedEvent (line 170) | type ServerHeartbeatFailedEvent struct type ServerMonitor (line 181) | type ServerMonitor struct FILE: examples/_example_customdns_test.go function resolve (line 23) | func resolve(ctx context.Context, cache *dnsCache, in *dns.Conn, out *dn... type RR (line 83) | type RR struct type dnsCache (line 88) | type dnsCache struct type dialer (line 93) | type dialer struct function NewDialer (line 98) | func NewDialer() dialer { function TestCustomDialer (line 122) | func TestCustomDialer(t *testing.T) { FILE: examples/_example_overload_error_test.go constant tokenBucketCap (line 23) | tokenBucketCap = 10_000 constant retryToken (line 24) | retryToken = 10 constant refreshToken (line 25) | refreshToken = 1 constant maxAttempts (line 27) | maxAttempts = 5 constant baseBackoff (line 29) | baseBackoff = 100 * time.Millisecond constant maxBackoff (line 30) | maxBackoff = 10_000 * time.Millisecond constant errSystemOverloadedError (line 32) | errSystemOverloadedError = "SystemOverloadedError" constant errRetryableError (line 33) | errRetryableError = "RetryableError" function isSystemOverloadedError (line 37) | func isSystemOverloadedError(err error) bool { type tokenBucket (line 46) | type tokenBucket struct method Consume (line 59) | func (tb *tokenBucket) Consume(amount int) bool { method Deposit (line 69) | func (tb *tokenBucket) Deposit(amount int) { function newTokenBucket (line 52) | func newTokenBucket(capacity int) *tokenBucket { function executeWithRetries (line 80) | func executeWithRetries( function ExampleOverloadError_Find (line 135) | func ExampleOverloadError_Find() { FILE: examples/_logger/logrus/main.go function main (line 22) | func main() { FILE: examples/_logger/zap/main.go function main (line 22) | func main() { FILE: examples/_logger/zerolog/main.go function main (line 23) | func main() { FILE: internal/assert/assertbson/assertbson.go type tHelper (line 15) | type tHelper interface function EqualDocument (line 22) | func EqualDocument(t assert.TestingT, expected, actual []byte) bool { function EqualValue (line 41) | func EqualValue[T bson.RawValue | bsoncore.Value](t assert.TestingT, exp... FILE: internal/assert/assertbson/assertbson_test.go function TestEqualDocument (line 16) | func TestEqualDocument(t *testing.T) { function TestEqualValue (line 65) | func TestEqualValue(t *testing.T) { FILE: internal/assert/assertion_compare.go type CompareType (line 16) | type CompareType constant compareLess (line 19) | compareLess CompareType = iota - 1 constant compareEqual (line 20) | compareEqual constant compareGreater (line 21) | compareGreater function compare (line 46) | func compare(obj1, obj2 interface{}, kind reflect.Kind) (CompareType, bo... function Greater (line 363) | func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...i... function GreaterOrEqual (line 376) | func GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndAr... function Less (line 388) | func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...inte... function LessOrEqual (line 401) | func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ... function Positive (line 412) | func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) bool { function Negative (line 424) | func Negative(t TestingT, e interface{}, msgAndArgs ...interface{}) bool { function compareTwoValues (line 432) | func compareTwoValues(t TestingT, e1 interface{}, e2 interface{}, allowe... function containsValue (line 455) | func containsValue(values []CompareType, value CompareType) bool { function CompareErrors (line 466) | func CompareErrors(err1, err2 error) bool { FILE: internal/assert/assertion_compare_can_convert.go function canConvert (line 16) | func canConvert(value reflect.Value, to reflect.Type) bool { FILE: internal/assert/assertion_compare_go1.17_test.go function TestCompare17 (line 19) | func TestCompare17(t *testing.T) { function TestGreater17 (line 62) | func TestGreater17(t *testing.T) { function TestGreaterOrEqual17 (line 93) | func TestGreaterOrEqual17(t *testing.T) { function TestLess17 (line 124) | func TestLess17(t *testing.T) { function TestLessOrEqual17 (line 155) | func TestLessOrEqual17(t *testing.T) { FILE: internal/assert/assertion_compare_legacy.go function canConvert (line 16) | func canConvert(value reflect.Value, to reflect.Type) bool { FILE: internal/assert/assertion_compare_test.go function TestCompare (line 17) | func TestCompare(t *testing.T) { type outputT (line 92) | type outputT struct method Errorf (line 98) | func (t *outputT) Errorf(format string, args ...interface{}) { method Helper (line 103) | func (t *outputT) Helper() { function callerName (line 112) | func callerName(skip int) string { function TestGreater (line 124) | func TestGreater(t *testing.T) { function TestGreaterOrEqual (line 165) | func TestGreaterOrEqual(t *testing.T) { function TestLess (line 206) | func TestLess(t *testing.T) { function TestLessOrEqual (line 247) | func TestLessOrEqual(t *testing.T) { function TestPositive (line 288) | func TestPositive(t *testing.T) { function TestNegative (line 327) | func TestNegative(t *testing.T) { function Test_compareTwoValuesDifferentValuesTypes (line 366) | func Test_compareTwoValuesDifferentValuesTypes(t *testing.T) { function Test_compareTwoValuesNotComparableValues (line 384) | func Test_compareTwoValuesNotComparableValues(t *testing.T) { function Test_compareTwoValuesCorrectCompareResult (line 402) | func Test_compareTwoValuesCorrectCompareResult(t *testing.T) { function Test_containsValue (line 422) | func Test_containsValue(t *testing.T) { function TestComparingMsgAndArgsForwarding (line 438) | func TestComparingMsgAndArgsForwarding(t *testing.T) { FILE: internal/assert/assertion_format.go function Containsf (line 19) | func Containsf(t TestingT, s interface{}, contains interface{}, msg stri... function ElementsMatchf (line 31) | func ElementsMatchf(t TestingT, listA interface{}, listB interface{}, ms... function Equalf (line 45) | func Equalf(t TestingT, expected interface{}, actual interface{}, msg st... function EqualErrorf (line 57) | func EqualErrorf(t TestingT, theError error, errString string, msg strin... function EqualValuesf (line 68) | func EqualValuesf(t TestingT, expected interface{}, actual interface{}, ... function Errorf (line 81) | func Errorf(t TestingT, err error, msg string, args ...interface{}) bool { function ErrorContainsf (line 93) | func ErrorContainsf(t TestingT, theError error, contains string, msg str... function Eventuallyf (line 104) | func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duratio... function Failf (line 112) | func Failf(t TestingT, failureMessage string, msg string, args ...interf... function FailNowf (line 120) | func FailNowf(t TestingT, failureMessage string, msg string, args ...int... function Falsef (line 130) | func Falsef(t TestingT, value bool, msg string, args ...interface{}) bool { function Greaterf (line 142) | func Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, ar... function GreaterOrEqualf (line 155) | func GreaterOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg str... function InDeltaf (line 165) | func InDeltaf(t TestingT, expected interface{}, actual interface{}, delt... function IsTypef (line 173) | func IsTypef(t TestingT, expectedType interface{}, object interface{}, m... function Lenf (line 184) | func Lenf(t TestingT, object interface{}, length int, msg string, args .... function Lessf (line 196) | func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ... function LessOrEqualf (line 209) | func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string... function Negativef (line 220) | func Negativef(t TestingT, e interface{}, msg string, args ...interface{... function Nilf (line 230) | func Nilf(t TestingT, object interface{}, msg string, args ...interface{... function NoErrorf (line 243) | func NoErrorf(t TestingT, err error, msg string, args ...interface{}) bo... function NotContainsf (line 256) | func NotContainsf(t TestingT, s interface{}, contains interface{}, msg s... function NotEqualf (line 269) | func NotEqualf(t TestingT, expected interface{}, actual interface{}, msg... function NotEqualValuesf (line 279) | func NotEqualValuesf(t TestingT, expected interface{}, actual interface{... function NotNilf (line 289) | func NotNilf(t TestingT, object interface{}, msg string, args ...interfa... function Positivef (line 300) | func Positivef(t TestingT, e interface{}, msg string, args ...interface{... function Truef (line 310) | func Truef(t TestingT, value bool, msg string, args ...interface{}) bool { function WithinDurationf (line 320) | func WithinDurationf(t TestingT, expected time.Time, actual time.Time, d... FILE: internal/assert/assertion_mongo.go function DifferentAddressRanges (line 21) | func DifferentAddressRanges(t TestingT, a, b []byte) (ok bool) { function Soon (line 79) | func Soon(t TestingT, callback func(ctx context.Context), timeout time.D... FILE: internal/assert/assertion_mongo_test.go function TestDifferentAddressRanges (line 13) | func TestDifferentAddressRanges(t *testing.T) { FILE: internal/assert/assertions.go type TestingT (line 26) | type TestingT interface function ObjectsAreEqual (line 33) | func ObjectsAreEqual(expected, actual interface{}) bool { function ObjectsAreEqualValues (line 55) | func ObjectsAreEqualValues(expected, actual interface{}) bool { function CallerInfo (line 80) | func CallerInfo() []string { function isTest (line 143) | func isTest(name, prefix string) bool { function messageFromMsgAndArgs (line 154) | func messageFromMsgAndArgs(msgAndArgs ...interface{}) string { function indentMessageLines (line 175) | func indentMessageLines(message string, longestLabelLen int) string { type failNower (line 190) | type failNower interface function FailNow (line 195) | func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{... function Fail (line 216) | func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) ... type labeledContent (line 242) | type labeledContent struct function labeledOutput (line 256) | func labeledOutput(content ...labeledContent) string { function IsType (line 271) | func IsType(t TestingT, expectedType interface{}, object interface{}, ms... function Equal (line 290) | func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...inter... function validateEqualArgs (line 312) | func validateEqualArgs(expected, actual interface{}) error { function formatUnequalValues (line 329) | func formatUnequalValues(expected, actual interface{}) (e string, a stri... function truncatingFormat (line 345) | func truncatingFormat(data interface{}) string { function EqualValues (line 358) | func EqualValues(t TestingT, expected, actual interface{}, msgAndArgs ..... function NotNil (line 377) | func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) b... function containsKind (line 388) | func containsKind(kinds []reflect.Kind, kind reflect.Kind) bool { function isNil (line 399) | func isNil(object interface{}) bool { function Nil (line 424) | func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { function getLen (line 436) | func getLen(x interface{}) (ok bool, length int) { function Len (line 450) | func Len(t TestingT, object interface{}, length int, msgAndArgs ...inter... function True (line 468) | func True(t TestingT, value bool, msgAndArgs ...interface{}) bool { function False (line 482) | func False(t TestingT, value bool, msgAndArgs ...interface{}) bool { function NotEqual (line 499) | func NotEqual(t TestingT, expected, actual interface{}, msgAndArgs ...in... function NotEqualValues (line 518) | func NotEqualValues(t TestingT, expected, actual interface{}, msgAndArgs... function containsElement (line 534) | func containsElement(list interface{}, element interface{}) (ok, found b... function Contains (line 577) | func Contains(t TestingT, s, contains interface{}, msgAndArgs ...interfa... function NotContains (line 599) | func NotContains(t TestingT, s, contains interface{}, msgAndArgs ...inte... function isEmpty (line 616) | func isEmpty(object interface{}) bool { function ElementsMatch (line 648) | func ElementsMatch(t TestingT, listA, listB interface{}, msgAndArgs ...i... function isList (line 670) | func isList(t TestingT, list interface{}, msgAndArgs ...interface{}) (ok... function diffLists (line 682) | func diffLists(listA, listB interface{}) ([]interface{}, []interface{}) { function formatListDiff (line 721) | func formatListDiff(listA, listB interface{}, extraA, extraB []interface... function WithinDuration (line 744) | func WithinDuration(t TestingT, expected, actual time.Time, delta time.D... function toFloat (line 757) | func toFloat(x interface{}) (float64, bool) { function InDelta (line 798) | func InDelta(t TestingT, expected, actual interface{}, delta float64, ms... function NoError (line 840) | func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool { function Error (line 857) | func Error(t TestingT, err error, msgAndArgs ...interface{}) bool { function EqualError (line 873) | func EqualError(t TestingT, theError error, errString string, msgAndArgs... function ErrorIs (line 893) | func ErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) b... function ErrorContains (line 919) | func ErrorContains(t TestingT, theError error, contains string, msgAndAr... function typeAndKind (line 935) | func typeAndKind(v interface{}) (reflect.Type, reflect.Kind) { function diff (line 948) | func diff(expected interface{}, actual interface{}) string { function isFunction (line 991) | func isFunction(arg interface{}) bool { type tHelper (line 1015) | type tHelper interface function Eventually (line 1023) | func Eventually(t TestingT, condition func() bool, waitFor time.Duration... function buildErrorChainString (line 1052) | func buildErrorChainString(err error) string { function NotEmpty (line 1071) | func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{})... function Empty (line 1096) | func Empty(t TestingT, object interface{}, msgAndArgs ...interface{}) bo... FILE: internal/assert/assertions_test.go type AssertionTesterInterface (line 23) | type AssertionTesterInterface interface type AssertionTesterConformingObject (line 28) | type AssertionTesterConformingObject struct method TestMethod (line 30) | func (a *AssertionTesterConformingObject) TestMethod() { type AssertionTesterNonConformingObject (line 34) | type AssertionTesterNonConformingObject struct function TestObjectsAreEqual (line 36) | func TestObjectsAreEqual(t *testing.T) { function TestIsType (line 82) | func TestIsType(t *testing.T) { function TestEqual (line 93) | func TestEqual(t *testing.T) { type bufferT (line 136) | type bufferT struct method Errorf (line 140) | func (t *bufferT) Errorf(format string, args ...interface{}) { function TestStringEqual (line 176) | func TestStringEqual(_ *testing.T) { function TestEqualFormatting (line 190) | func TestEqualFormatting(_ *testing.T) { function TestFormatUnequalValues (line 207) | func TestFormatUnequalValues(t *testing.T) { function TestNotNil (line 233) | func TestNotNil(t *testing.T) { function TestNil (line 247) | func TestNil(t *testing.T) { function TestTrue (line 261) | func TestTrue(t *testing.T) { function TestFalse (line 272) | func TestFalse(t *testing.T) { function TestNotEqual (line 283) | func TestNotEqual(t *testing.T) { function TestNotEqualValues (line 322) | func TestNotEqualValues(t *testing.T) { function TestContainsNotContains (line 365) | func TestContainsNotContains(t *testing.T) { function TestContainsFailMessage (line 428) | func TestContainsFailMessage(t *testing.T) { function TestContainsNotContainsOnNilValue (line 439) | func TestContainsNotContainsOnNilValue(t *testing.T) { function Test_containsElement (line 455) | func Test_containsElement(t *testing.T) { function TestElementsMatch (line 505) | func TestElementsMatch(t *testing.T) { function TestDiffLists (line 546) | func TestDiffLists(t *testing.T) { function TestNoError (line 630) | func TestNoError(t *testing.T) { type customError (line 656) | type customError struct method Error (line 658) | func (*customError) Error() string { return "fail" } function TestError (line 660) | func TestError(t *testing.T) { function TestEqualError (line 689) | func TestEqualError(t *testing.T) { function TestErrorContains (line 705) | func TestErrorContains(t *testing.T) { function Test_isEmpty (line 723) | func Test_isEmpty(t *testing.T) { function Test_getLen (line 749) | func Test_getLen(t *testing.T) { function TestLen (line 794) | func TestLen(t *testing.T) { function TestWithinDuration (line 856) | func TestWithinDuration(t *testing.T) { function TestInDelta (line 874) | func TestInDelta(t *testing.T) { type diffTestingStruct (line 912) | type diffTestingStruct struct method String (line 917) | func (d *diffTestingStruct) String() string { function TestDiff (line 921) | func TestDiff(t *testing.T) { function TestTimeEqualityErrorFormatting (line 1055) | func TestTimeEqualityErrorFormatting(_ *testing.T) { function TestDiffEmptyCases (line 1061) | func TestDiffEmptyCases(t *testing.T) { function TestDiffRace (line 1071) | func TestDiffRace(t *testing.T) { type mockTestingT (line 1104) | type mockTestingT struct method errorString (line 1109) | func (m *mockTestingT) errorString() string { method Errorf (line 1113) | func (m *mockTestingT) Errorf(format string, args ...interface{}) { type mockFailNowTestingT (line 1118) | type mockFailNowTestingT struct method Errorf (line 1120) | func (m *mockFailNowTestingT) Errorf(string, ...interface{}) {} method FailNow (line 1122) | func (m *mockFailNowTestingT) FailNow() {} function TestBytesEqual (line 1124) | func TestBytesEqual(t *testing.T) { function BenchmarkBytesEqual (line 1137) | func BenchmarkBytesEqual(b *testing.B) { function BenchmarkNotNil (line 1153) | func BenchmarkNotNil(b *testing.B) { function TestEventuallyFalse (line 1159) | func TestEventuallyFalse(t *testing.T) { function TestEventuallyTrue (line 1169) | func TestEventuallyTrue(t *testing.T) { function Test_validateEqualArgs (line 1181) | func Test_validateEqualArgs(t *testing.T) { function Test_truncatingFormat (line 1195) | func Test_truncatingFormat(t *testing.T) { FILE: internal/assert/difflib.go function min (line 16) | func min(a, b int) int { function max (line 23) | func max(a, b int) int { function calculateRatio (line 30) | func calculateRatio(matches, length int) float64 { type Match (line 37) | type Match struct type OpCode (line 43) | type OpCode struct type SequenceMatcher (line 77) | type SequenceMatcher struct method SetSeqs (line 105) | func (m *SequenceMatcher) SetSeqs(a, b []string) { method SetSeq1 (line 119) | func (m *SequenceMatcher) SetSeq1(a []string) { method SetSeq2 (line 130) | func (m *SequenceMatcher) SetSeq2(b []string) { method chainB (line 141) | func (m *SequenceMatcher) chainB() { method isBJunk (line 182) | func (m *SequenceMatcher) isBJunk(s string) bool { method findLongestMatch (line 214) | func (m *SequenceMatcher) findLongestMatch(alo, ahi, blo, bhi int) Mat... method GetMatchingBlocks (line 298) | func (m *SequenceMatcher) GetMatchingBlocks() []Match { method GetOpCodes (line 366) | func (m *SequenceMatcher) GetOpCodes() []OpCode { method GetGroupedOpCodes (line 406) | func (m *SequenceMatcher) GetGroupedOpCodes(n int) [][]OpCode { method Ratio (line 460) | func (m *SequenceMatcher) Ratio() float64 { method QuickRatio (line 472) | func (m *SequenceMatcher) QuickRatio() float64 { method RealQuickRatio (line 504) | func (m *SequenceMatcher) RealQuickRatio() float64 { function NewMatcher (line 90) | func NewMatcher(a, b []string) *SequenceMatcher { function NewMatcherWithJunk (line 96) | func NewMatcherWithJunk(a, b []string, autoJunk bool, function formatRangeUnified (line 510) | func formatRangeUnified(start, stop int) string { type UnifiedDiff (line 524) | type UnifiedDiff struct function WriteUnifiedDiff (line 555) | func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error { function GetUnifiedDiffString (line 631) | func GetUnifiedDiffString(diff UnifiedDiff) (string, error) { function formatRangeContext (line 638) | func formatRangeContext(start, stop int) string { type ContextDiff (line 651) | type ContextDiff function WriteContextDiff (line 670) | func WriteContextDiff(writer io.Writer, diff ContextDiff) error { function GetContextDiffString (line 756) | func GetContextDiffString(diff ContextDiff) (string, error) { function SplitLines (line 764) | func SplitLines(s string) []string { FILE: internal/assert/difflib_test.go function assertAlmostEqual (line 17) | func assertAlmostEqual(t *testing.T, a, b float64, places int) { function assertEqual (line 23) | func assertEqual(t *testing.T, a, b interface{}) { function splitChars (line 29) | func splitChars(s string) []string { function TestSequenceMatcherRatio (line 38) | func TestSequenceMatcherRatio(t *testing.T) { function TestGetOptCodes (line 45) | func TestGetOptCodes(t *testing.T) { function TestGroupedOpCodes (line 66) | func TestGroupedOpCodes(t *testing.T) { function rep (line 110) | func rep(s string, count int) string { function TestWithAsciiOneInsert (line 114) | func TestWithAsciiOneInsert(t *testing.T) { function TestWithAsciiOnDelete (line 130) | func TestWithAsciiOnDelete(t *testing.T) { function TestWithAsciiBJunk (line 138) | func TestWithAsciiBJunk(t *testing.T) { function TestSFBugsRatioForNullSeqn (line 158) | func TestSFBugsRatioForNullSeqn(t *testing.T) { function TestSFBugsComparingEmptyLists (line 165) | func TestSFBugsComparingEmptyLists(t *testing.T) { function TestOutputFormatRangeFormatUnified (line 178) | func TestOutputFormatRangeFormatUnified(t *testing.T) { function TestOutputFormatRangeFormatContext (line 195) | func TestOutputFormatRangeFormatContext(t *testing.T) { function TestOutputFormatTabDelimiter (line 219) | func TestOutputFormatTabDelimiter(t *testing.T) { function TestOutputFormatNoTrailingTabOnEmptyFiledate (line 243) | func TestOutputFormatNoTrailingTabOnEmptyFiledate(t *testing.T) { function TestOmitFilenames (line 260) | func TestOmitFilenames(t *testing.T) { function TestSplitLines (line 295) | func TestSplitLines(t *testing.T) { function benchmarkSplitLines (line 309) | func benchmarkSplitLines(b *testing.B, count int) { function BenchmarkSplitLines100 (line 320) | func BenchmarkSplitLines100(b *testing.B) { function BenchmarkSplitLines10000 (line 324) | func BenchmarkSplitLines10000(b *testing.B) { FILE: internal/aws/awserr/error.go type Error (line 17) | type Error interface type BatchedErrors (line 36) | type BatchedErrors interface function New (line 48) | func New(code, message string, origErr error) Error { function NewBatchError (line 58) | func NewBatchError(code, message string, errs []error) BatchedErrors { FILE: internal/aws/awserr/types.go function SprintError (line 21) | func SprintError(code, message, extra string, origErr error) string { type baseError (line 37) | type baseError struct method Error (line 74) | func (b baseError) Error() string { method String (line 85) | func (b baseError) String() string { method Code (line 90) | func (b baseError) Code() string { method Message (line 95) | func (b baseError) Message() string { method OrigErr (line 102) | func (b baseError) OrigErr() error { method OrigErrs (line 119) | func (b baseError) OrigErrs() []error { function newBaseError (line 59) | func newBaseError(code, message string, origErrs []error) *baseError { type errorList (line 124) | type errorList method Error (line 129) | func (e errorList) Error() string { FILE: internal/aws/credentials/chain_provider.go type ChainProvider (line 30) | type ChainProvider struct method Retrieve (line 48) | func (c *ChainProvider) Retrieve() (Value, error) { method IsExpired (line 66) | func (c *ChainProvider) IsExpired() bool { function NewChainCredentials (line 37) | func NewChainCredentials(providers []Provider) *Credentials { FILE: internal/aws/credentials/chain_provider_test.go type secondStubProvider (line 20) | type secondStubProvider struct method Retrieve (line 26) | func (s *secondStubProvider) Retrieve() (Value, error) { method IsExpired (line 32) | func (s *secondStubProvider) IsExpired() bool { function TestChainProviderWithNames (line 36) | func TestChainProviderWithNames(t *testing.T) { function TestChainProviderGet (line 78) | func TestChainProviderGet(t *testing.T) { function TestChainProviderIsExpired (line 108) | func TestChainProviderIsExpired(t *testing.T) { function TestChainProviderWithNoProvider (line 141) | func TestChainProviderWithNoProvider(t *testing.T) { function TestChainProviderWithNoValidProvider (line 155) | func TestChainProviderWithNoValidProvider(t *testing.T) { FILE: internal/aws/credentials/credentials.go type Value (line 26) | type Value struct method HasKeys (line 42) | func (v Value) HasKeys() bool { type Provider (line 52) | type Provider interface type ProviderWithContext (line 63) | type ProviderWithContext interface type Credentials (line 83) | type Credentials struct method GetWithContext (line 109) | func (c *Credentials) GetWithContext(ctx context.Context) (Value, erro... method singleRetrieve (line 138) | func (c *Credentials) singleRetrieve(ctx context.Context) (interface{}... method asyncIsExpired (line 162) | func (c *Credentials) asyncIsExpired() <-chan Value { method isExpiredLocked (line 179) | func (c *Credentials) isExpiredLocked(creds interface{}) bool { function NewCredentials (line 92) | func NewCredentials(provider Provider) *Credentials { type suppressedContext (line 183) | type suppressedContext struct method Deadline (line 187) | func (s *suppressedContext) Deadline() (deadline time.Time, ok bool) { method Done (line 191) | func (s *suppressedContext) Done() <-chan struct{} { method Err (line 195) | func (s *suppressedContext) Err() error { FILE: internal/aws/credentials/credentials_test.go function isExpired (line 22) | func isExpired(c *Credentials) bool { type stubProvider (line 29) | type stubProvider struct method Retrieve (line 36) | func (s *stubProvider) Retrieve() (Value, error) { method IsExpired (line 43) | func (s *stubProvider) IsExpired() bool { function TestCredentialsGet (line 47) | func TestCredentialsGet(t *testing.T) { function TestCredentialsGetWithError (line 72) | func TestCredentialsGetWithError(t *testing.T) { function TestCredentialsExpire (line 81) | func TestCredentialsExpire(t *testing.T) { function TestCredentialsGetWithProviderName (line 104) | func TestCredentialsGetWithProviderName(t *testing.T) { type MockProvider (line 118) | type MockProvider struct method IsExpired (line 129) | func (e *MockProvider) IsExpired() bool { method Retrieve (line 137) | func (*MockProvider) Retrieve() (Value, error) { function TestCredentialsIsExpired_Race (line 141) | func TestCredentialsIsExpired_Race(_ *testing.T) { type stubProviderConcurrent (line 161) | type stubProviderConcurrent struct method Retrieve (line 166) | func (s *stubProviderConcurrent) Retrieve() (Value, error) { function TestCredentialsGetConcurrent (line 171) | func TestCredentialsGetConcurrent(t *testing.T) { FILE: internal/aws/signer/v4/header_rules.go type rules (line 15) | type rules method IsValid (line 25) | func (r rules) IsValid(value string) bool { type rule (line 19) | type rule interface type mapRule (line 35) | type mapRule method IsValid (line 38) | func (m mapRule) IsValid(value string) bool { type excludeList (line 44) | type excludeList struct method IsValid (line 49) | func (b excludeList) IsValid(value string) bool { FILE: internal/aws/signer/v4/request.go function getHost (line 19) | func getHost(r *http.Request) string { function stripPort (line 38) | func stripPort(hostport string) string { function portOnly (line 53) | func portOnly(hostport string) string { function isDefaultPort (line 69) | func isDefaultPort(scheme, port string) bool { FILE: internal/aws/signer/v4/uri_path.go function init (line 24) | func init() { function getURIPath (line 37) | func getURIPath(u *url.URL) string { function EscapePath (line 54) | func EscapePath(path string, encodeSep bool) string { FILE: internal/aws/signer/v4/v4.go constant authorizationHeader (line 31) | authorizationHeader = "Authorization" constant authHeaderSignatureElem (line 32) | authHeaderSignatureElem = "Signature=" constant authHeaderPrefix (line 34) | authHeaderPrefix = "AWS4-HMAC-SHA256" constant timeFormat (line 35) | timeFormat = "20060102T150405Z" constant shortTimeFormat (line 36) | shortTimeFormat = "20060102" constant awsV4Request (line 37) | awsV4Request = "aws4_request" constant emptyStringSHA256 (line 40) | emptyStringSHA256 = `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca49... type Signer (line 55) | type Signer struct method Sign (line 115) | func (v4 Signer) Sign(r *http.Request, body io.ReadSeeker, service, re... method signWithBody (line 119) | func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, ser... function NewSigner (line 62) | func NewSigner(credentials *credentials.Credentials) *Signer { type signingCtx (line 70) | type signingCtx struct method sanitizeHostForHeader (line 162) | func (ctx *signingCtx) sanitizeHostForHeader() { method assignAmzQueryValues (line 171) | func (ctx *signingCtx) assignAmzQueryValues() { method build (line 177) | func (ctx *signingCtx) build() error { method buildTime (line 202) | func (ctx *signingCtx) buildTime() { method buildCredentialString (line 206) | func (ctx *signingCtx) buildCredentialString() { method buildCanonicalHeaders (line 210) | func (ctx *signingCtx) buildCanonicalHeaders(r rule, header http.Heade... method buildCanonicalString (line 256) | func (ctx *signingCtx) buildCanonicalString() { method buildStringToSign (line 273) | func (ctx *signingCtx) buildStringToSign() { method buildSignature (line 282) | func (ctx *signingCtx) buildSignature() { method buildBodyDigest (line 288) | func (ctx *signingCtx) buildBodyDigest() error { method isRequestSigned (line 310) | func (ctx *signingCtx) isRequestSigned() bool { function hmacSHA256 (line 314) | func hmacSHA256(key []byte, data []byte) []byte { function hashSHA256 (line 320) | func hashSHA256(data []byte) []byte { function makeSha256Reader (line 326) | func makeSha256Reader(reader io.ReadSeeker) (hashBytes []byte, err error) { constant doubleSpace (line 349) | doubleSpace = " " function stripExcessSpaces (line 353) | func stripExcessSpaces(vals []string) { function buildSigningScope (line 398) | func buildSigningScope(region, service string, dt time.Time) string { function deriveSigningKey (line 407) | func deriveSigningKey(region, service, secretKey string, dt time.Time) [... function formatShortTime (line 415) | func formatShortTime(dt time.Time) string { function formatTime (line 419) | func formatTime(dt time.Time) string { FILE: internal/aws/signer/v4/v4_test.go function epochTime (line 30) | func epochTime() time.Time { return time.Unix(0, 0) } function TestStripExcessHeaders (line 32) | func TestStripExcessHeaders(t *testing.T) { function buildRequest (line 75) | func buildRequest(body string) (*http.Request, io.ReadSeeker) { function buildRequestReaderSeeker (line 80) | func buildRequestReaderSeeker(serviceName, region, body string) (*http.R... function buildRequestWithBodyReader (line 85) | func buildRequestWithBodyReader(serviceName, region string, body io.Read... function buildSigner (line 119) | func buildSigner() Signer { function newTestStaticCredentials (line 125) | func newTestStaticCredentials() *credentials.Credentials { function TestSignRequest (line 133) | func TestSignRequest(t *testing.T) { function TestSignUnseekableBody (line 153) | func TestSignUnseekableBody(t *testing.T) { function TestSignPreComputedHashUnseekableBody (line 166) | func TestSignPreComputedHashUnseekableBody(t *testing.T) { function TestSignPrecomputedBodyChecksum (line 183) | func TestSignPrecomputedBodyChecksum(t *testing.T) { function TestSignWithRequestBody (line 197) | func TestSignWithRequestBody(t *testing.T) { function TestSignWithRequestBody_Overwrite (line 235) | func TestSignWithRequestBody_Overwrite(t *testing.T) { function TestBuildCanonicalRequest (line 275) | func TestBuildCanonicalRequest(t *testing.T) { function TestSignWithBody_ReplaceRequestBody (line 294) | func TestSignWithBody_ReplaceRequestBody(t *testing.T) { function TestRequestHost (line 316) | func TestRequestHost(t *testing.T) { function TestSign_buildCanonicalHeaders (line 335) | func TestSign_buildCanonicalHeaders(t *testing.T) { function BenchmarkSignRequest (line 381) | func BenchmarkSignRequest(b *testing.B) { function BenchmarkStripExcessSpaces (line 411) | func BenchmarkStripExcessSpaces(b *testing.B) { type readerSeekerWrapper (line 420) | type readerSeekerWrapper struct method Read (line 424) | func (r *readerSeekerWrapper) Read(p []byte) (n int, err error) { method Seek (line 428) | func (r *readerSeekerWrapper) Seek(offset int64, whence int) (int64, e... method Len (line 432) | func (r *readerSeekerWrapper) Len() int { FILE: internal/aws/types.go function ReadSeekCloser (line 29) | func ReadSeekCloser(r io.Reader) ReaderSeekerCloser { type ReaderSeekerCloser (line 35) | type ReaderSeekerCloser struct method Read (line 62) | func (r ReaderSeekerCloser) Read(p []byte) (int, error) { method Seek (line 76) | func (r ReaderSeekerCloser) Seek(offset int64, whence int) (int64, err... method IsSeeker (line 85) | func (r ReaderSeekerCloser) IsSeeker() bool { method HasLen (line 92) | func (r ReaderSeekerCloser) HasLen() (int, bool) { method GetLen (line 109) | func (r ReaderSeekerCloser) GetLen() (int64, error) { function IsReaderSeekable (line 42) | func IsReaderSeekable(r io.Reader) bool { function SeekerLen (line 123) | func SeekerLen(s io.Seeker) (int64, error) { function seekerLen (line 136) | func seekerLen(s io.Seeker) (int64, error) { FILE: internal/binaryutil/binaryutil.go function Append32 (line 20) | func Append32[T ~uint32 | ~int32](dst []byte, v T) []byte { function Append64 (line 34) | func Append64[T ~uint64 | ~int64](dst []byte, v T) []byte { function ReadU32 (line 50) | func ReadU32(src []byte) (uint32, []byte, bool) { function ReadI32 (line 64) | func ReadI32(src []byte) (int32, []byte, bool) { function ReadU64 (line 82) | func ReadU64(src []byte) (uint64, []byte, bool) { function ReadI64 (line 96) | func ReadI64(src []byte) (int64, []byte, bool) { function ReadCStringBytes (line 118) | func ReadCStringBytes(src []byte) ([]byte, []byte, bool) { function ReadCString (line 129) | func ReadCString(src []byte) (string, []byte, bool) { FILE: internal/binaryutil/binaryutil_test.go function BenchmarkAppend32 (line 41) | func BenchmarkAppend32(b *testing.B) { function BenchmarkAppend64 (line 53) | func BenchmarkAppend64(b *testing.B) { function BenchmarkStdlibAppendUint32 (line 66) | func BenchmarkStdlibAppendUint32(b *testing.B) { function BenchmarkStdlibAppendUint64 (line 78) | func BenchmarkStdlibAppendUint64(b *testing.B) { function BenchmarkReadU32 (line 94) | func BenchmarkReadU32(b *testing.B) { function BenchmarkReadI32 (line 104) | func BenchmarkReadI32(b *testing.B) { function BenchmarkReadU64 (line 114) | func BenchmarkReadU64(b *testing.B) { function BenchmarkReadI64 (line 124) | func BenchmarkReadI64(b *testing.B) { function BenchmarkStdlibUint32 (line 135) | func BenchmarkStdlibUint32(b *testing.B) { function BenchmarkStdlibUint64 (line 145) | func BenchmarkStdlibUint64(b *testing.B) { function BenchmarkReadCString (line 159) | func BenchmarkReadCString(b *testing.B) { function BenchmarkReadCStringBytes (line 169) | func BenchmarkReadCStringBytes(b *testing.B) { function BenchmarkReadCStringLong (line 179) | func BenchmarkReadCStringLong(b *testing.B) { function TestAppend32RoundTrip (line 198) | func TestAppend32RoundTrip(t *testing.T) { function TestAppend32RoundTripSigned (line 220) | func TestAppend32RoundTripSigned(t *testing.T) { function TestAppend64RoundTrip (line 251) | func TestAppend64RoundTrip(t *testing.T) { function TestAppend64RoundTripSigned (line 273) | func TestAppend64RoundTripSigned(t *testing.T) { function TestAppend32MatchesStdlib (line 308) | func TestAppend32MatchesStdlib(t *testing.T) { function TestAppend64MatchesStdlib (line 323) | func TestAppend64MatchesStdlib(t *testing.T) { function TestReadU32MatchesStdlib (line 338) | func TestReadU32MatchesStdlib(t *testing.T) { function TestReadU64MatchesStdlib (line 358) | func TestReadU64MatchesStdlib(t *testing.T) { function TestReadU32ShortSlice (line 382) | func TestReadU32ShortSlice(t *testing.T) { function TestReadI32ShortSlice (line 411) | func TestReadI32ShortSlice(t *testing.T) { function TestReadU64ShortSlice (line 440) | func TestReadU64ShortSlice(t *testing.T) { function TestReadI64ShortSlice (line 469) | func TestReadI64ShortSlice(t *testing.T) { function TestReadU32ReturnsRemaining (line 502) | func TestReadU32ReturnsRemaining(t *testing.T) { function TestReadU64ReturnsRemaining (line 519) | func TestReadU64ReturnsRemaining(t *testing.T) { function TestReadCString (line 539) | func TestReadCString(t *testing.T) { function TestReadCStringBytes (line 609) | func TestReadCStringBytes(t *testing.T) { function TestAppend32ToExistingBuffer (line 676) | func TestAppend32ToExistingBuffer(t *testing.T) { function TestAppend64ToExistingBuffer (line 697) | func TestAppend64ToExistingBuffer(t *testing.T) { function TestAppend32ByteOrder (line 722) | func TestAppend32ByteOrder(t *testing.T) { function TestAppend64ByteOrder (line 732) | func TestAppend64ByteOrder(t *testing.T) { function TestReadU32ByteOrder (line 742) | func TestReadU32ByteOrder(t *testing.T) { function TestReadU64ByteOrder (line 755) | func TestReadU64ByteOrder(t *testing.T) { function TestMultipleSequentialReads (line 772) | func TestMultipleSequentialReads(t *testing.T) { FILE: internal/bsoncoreutil/bsoncoreutil.go function Truncate (line 10) | func Truncate(str string, width int) string { FILE: internal/bsoncoreutil/bsoncoreutil_test.go function TestTruncate (line 15) | func TestTruncate(t *testing.T) { FILE: internal/bsonutil/bsonutil.go function StringSliceFromRawValue (line 18) | func StringSliceFromRawValue(name string, val bson.RawValue) ([]string, ... function RawArrayToDocuments (line 41) | func RawArrayToDocuments(arr bson.RawArray) []bson.Raw { function RawToInterfaces (line 56) | func RawToInterfaces(docs ...bson.Raw) []any { FILE: internal/cmd/benchmark/benchmark_test.go constant defaultOutputFileName (line 32) | defaultOutputFileName = "perf.json" constant legacyHelloLowercase (line 33) | legacyHelloLowercase = "ismaster" constant tarFile (line 34) | tarFile = "perf.tar.gz" constant perfDir (line 35) | perfDir = "perf" constant testdataURL (line 36) | testdataURL = "https://s3.amazonaws.com/boxes.10gen.com/build/... constant perftestDB (line 37) | perftestDB = "perftest" constant corpusColl (line 38) | corpusColl = "corpus" constant bsonDataDir (line 39) | bsonDataDir = "extended_bson" constant flatBSONData (line 42) | flatBSONData = "flat_bson.json" constant deepBSONData (line 43) | deepBSONData = "deep_bson.json" constant fullBSONData (line 44) | fullBSONData = "full_bson.json" constant singleAndMultiDataDir (line 47) | singleAndMultiDataDir = "single_and_multi_document" constant tweetData (line 48) | tweetData = "tweet.json" constant smallData (line 49) | smallData = "small_doc.json" constant largeData (line 50) | largeData = "large_doc.json" constant opsPerSecondMaxName (line 53) | opsPerSecondMaxName = "ops_per_second_max" constant opsPerSecondMinName (line 54) | opsPerSecondMinName = "ops_per_second_min" constant opsPerSecondMedName (line 55) | opsPerSecondMedName = "ops_per_second_med" function init (line 63) | func init() { type metrics (line 67) | type metrics struct function recordMetrics (line 71) | func recordMetrics(b *testing.B, throughput *metrics, fn func(*testing.B... function reportThroughputStats (line 84) | func reportThroughputStats(b *testing.B, times []float64) { function reportMetrics (line 100) | func reportMetrics(b *testing.B, metrics *metrics) { function testdataDir (line 109) | func testdataDir(tb testing.TB) string { function testdataTarFileName (line 129) | func testdataTarFileName(tb testing.TB) string { function testdataPerfDir (line 134) | func testdataPerfDir(tb testing.TB) string { function downloadTestDataTgz (line 139) | func downloadTestDataTgz(t *testing.T) { function extractTestDataTgz (line 155) | func extractTestDataTgz(t *testing.T) { function loadSourceDocument (line 196) | func loadSourceDocument(b *testing.B, canonicalOnly bool, pathParts ...s... function benchmarkBSONEncoding (line 212) | func benchmarkBSONEncoding(b *testing.B, canonicalOnly bool, source stri... function benchmarkBSONDecoding (line 231) | func benchmarkBSONDecoding(b *testing.B, canonicalOnly bool, source stri... function BenchmarkBSONFlatDocumentEncoding (line 255) | func BenchmarkBSONFlatDocumentEncoding(b *testing.B) { function BenchmarkBSONFlatDocumentDecoding (line 261) | func BenchmarkBSONFlatDocumentDecoding(b *testing.B) { function BenchmarkBSONDeepDocumentEncoding (line 267) | func BenchmarkBSONDeepDocumentEncoding(b *testing.B) { function BenchmarkBSONDeepDocumentDecoding (line 273) | func BenchmarkBSONDeepDocumentDecoding(b *testing.B) { function BenchmarkBSONFullDocumentEncoding (line 279) | func BenchmarkBSONFullDocumentEncoding(b *testing.B) { function BenchmarkBSONFullDocumentDecoding (line 285) | func BenchmarkBSONFullDocumentDecoding(b *testing.B) { function BenchmarkSingleRunCommand (line 291) | func BenchmarkSingleRunCommand(b *testing.B) { function setupBench (line 320) | func setupBench(b *testing.B) (*mongo.Collection, func(b *testing.B)) { function BenchmarkSingleFindOneByID (line 355) | func BenchmarkSingleFindOneByID(b *testing.B) { function benchmarkSingleInsert (line 388) | func benchmarkSingleInsert(b *testing.B, source string) { function BenchmarkSmallDocInsertOne (line 410) | func BenchmarkSmallDocInsertOne(b *testing.B) { function BenchmarkLargeDocInsertOne (line 415) | func BenchmarkLargeDocInsertOne(b *testing.B) { function BenchmarkMultiFindMany (line 420) | func BenchmarkMultiFindMany(b *testing.B) { function benchmarkMultiInsert (line 467) | func benchmarkMultiInsert(b *testing.B, source string) { function BenchmarkMultiInsertSmallDocument (line 489) | func BenchmarkMultiInsertSmallDocument(b *testing.B) { function BenchmarkMultiInsertLargeDocument (line 494) | func BenchmarkMultiInsertLargeDocument(b *testing.B) { function runBenchmark (line 498) | func runBenchmark(name string, fn func(*testing.B)) (poplarTest, error) { function TestRunAllBenchmarks (line 552) | func TestRunAllBenchmarks(t *testing.T) { type poplarTest (line 615) | type poplarTest struct type poplarTestInfo (line 627) | type poplarTestInfo struct type poplarTestArtifact (line 637) | type poplarTestArtifact struct type poplarTestMetrics (line 665) | type poplarTestMetrics struct FILE: internal/cmd/build-oss-fuzz-corpus/main.go constant dataDir (line 25) | dataDir = "testdata/bson-corpus/" type validityTestCase (line 27) | type validityTestCase struct function findJSONFilesInDir (line 35) | func findJSONFilesInDir(dir string) ([]string, error) { function jsonToNative (line 55) | func jsonToNative(ej, ejType, testDesc string) (bson.D, error) { function jsonToBytes (line 64) | func jsonToBytes(ej, ejType, testDesc string) ([]byte, error) { function seedExtJSON (line 79) | func seedExtJSON(zw *zip.Writer, extJSON string, extJSONType string, des... function seedTestCase (line 102) | func seedTestCase(zw *zip.Writer, tcase []*validityTestCase) { function seedBSONCorpus (line 125) | func seedBSONCorpus(zw *zip.Writer) { function main (line 153) | func main() { FILE: internal/cmd/faas/awslambda/mongodb/bootstrap.go constant timeout (line 24) | timeout = 60 * time.Second type eventListener (line 29) | type eventListener struct method commandMonitor (line 41) | func (listener *eventListener) commandMonitor() *event.CommandMonitor { method serverMonitor (line 61) | func (listener *eventListener) serverMonitor() *event.ServerMonitor { method poolMonitor (line 88) | func (listener *eventListener) poolMonitor() *event.PoolMonitor { type response (line 102) | type response struct function gateway500 (line 111) | func gateway500() events.APIGatewayProxyResponse { function handler (line 119) | func handler(ctx context.Context, request events.APIGatewayProxyRequest)... function main (line 190) | func main() { FILE: internal/cmd/parse-api-report/main.go function main (line 17) | func main() { FILE: internal/cmd/testatlas/atlas_test.go function TestAtlas (line 32) | func TestAtlas(t *testing.T) { function runTest (line 157) | func runTest(ctx context.Context, clientOpts *options.ClientOptions) err... function createAtlasX509DevCertKeyFile (line 181) | func createAtlasX509DevCertKeyFile(t *testing.T) string { function createAtlasX509DevCertKeyFileNoUser (line 198) | func createAtlasX509DevCertKeyFileNoUser(t *testing.T) string { function addTLSCertKeyFile (line 215) | func addTLSCertKeyFile(t *testing.T, certKeyFile, uri string) string { FILE: internal/cmd/testentauth/main.go function main (line 20) | func main() { FILE: internal/cmd/testkms/main.go function main (line 37) | func main() { FILE: internal/codecutil/encoding.go type MarshalError (line 24) | type MarshalError struct method Error (line 30) | func (e MarshalError) Error() string { method Unwrap (line 35) | func (e MarshalError) Unwrap() error { return e.Err } type EncoderFn (line 38) | type EncoderFn function MarshalValue (line 42) | func MarshalValue(val any, encFn EncoderFn) (bsoncore.Value, error) { FILE: internal/codecutil/encoding_test.go function testEncFn (line 17) | func testEncFn(t *testing.T) EncoderFn { function TestMarshalValue (line 26) | func TestMarshalValue(t *testing.T) { FILE: internal/credproviders/assume_role_provider.go constant assumeRoleProviderName (line 24) | assumeRoleProviderName = "AssumeRoleProvider" constant stsURI (line 26) | stsURI = `https://sts.amazonaws.com/?Action=AssumeRoleWithWebIdentity&Ro... type AssumeRoleProvider (line 30) | type AssumeRoleProvider struct method RetrieveWithContext (line 61) | func (a *AssumeRoleProvider) RetrieveWithContext(ctx context.Context) ... method Retrieve (line 141) | func (a *AssumeRoleProvider) Retrieve() (credentials.Value, error) { method IsExpired (line 146) | func (a *AssumeRoleProvider) IsExpired() bool { function NewAssumeRoleProvider (line 47) | func NewAssumeRoleProvider(httpClient *http.Client, expiryWindow time.Du... FILE: internal/credproviders/ec2_provider.go constant ec2ProviderName (line 23) | ec2ProviderName = "EC2Provider" constant awsEC2URI (line 25) | awsEC2URI = "http://169.254.169.254/" constant awsEC2RolePath (line 26) | awsEC2RolePath = "latest/meta-data/iam/security-credentials/" constant awsEC2TokenPath (line 27) | awsEC2TokenPath = "latest/api/token" constant defaultHTTPTimeout (line 29) | defaultHTTPTimeout = 10 * time.Second type EC2Provider (line 33) | type EC2Provider struct method getToken (line 53) | func (e *EC2Provider) getToken(ctx context.Context) (string, error) { method getRoleName (line 82) | func (e *EC2Provider) getRoleName(ctx context.Context, token string) (... method getCredentials (line 110) | func (e *EC2Provider) getCredentials(ctx context.Context, token string... method RetrieveWithContext (line 150) | func (e *EC2Provider) RetrieveWithContext(ctx context.Context) (creden... method Retrieve (line 176) | func (e *EC2Provider) Retrieve() (credentials.Value, error) { method IsExpired (line 181) | func (e *EC2Provider) IsExpired() bool { function NewEC2Provider (line 46) | func NewEC2Provider(httpClient *http.Client, expiryWindow time.Duration)... FILE: internal/credproviders/ecs_provider.go constant ecsProviderName (line 22) | ecsProviderName = "ECSProvider" constant awsRelativeURI (line 24) | awsRelativeURI = "http://169.254.170.2/" type ECSProvider (line 28) | type ECSProvider struct method RetrieveWithContext (line 53) | func (e *ECSProvider) RetrieveWithContext(ctx context.Context) (creden... method Retrieve (line 105) | func (e *ECSProvider) Retrieve() (credentials.Value, error) { method IsExpired (line 110) | func (e *ECSProvider) IsExpired() bool { function NewECSProvider (line 43) | func NewECSProvider(httpClient *http.Client, expiryWindow time.Duration)... FILE: internal/credproviders/env_provider.go constant envProviderName (line 16) | envProviderName = "EnvProvider" type EnvVar (line 19) | type EnvVar method Get (line 22) | func (ev EnvVar) Get() string { type EnvProvider (line 28) | type EnvProvider struct method Retrieve (line 49) | func (e *EnvProvider) Retrieve() (credentials.Value, error) { method IsExpired (line 67) | func (e *EnvProvider) IsExpired() bool { function NewEnvProvider (line 37) | func NewEnvProvider() *EnvProvider { FILE: internal/credproviders/imds_provider.go constant AzureProviderName (line 23) | AzureProviderName = "AzureProvider" constant azureURI (line 25) | azureURI = "http://169.254.169.254/metadata/identity/oauth2/token" type AzureProvider (line 29) | type AzureProvider struct method RetrieveWithContext (line 45) | func (a *AzureProvider) RetrieveWithContext(ctx context.Context) (cred... method Retrieve (line 96) | func (a *AzureProvider) Retrieve() (credentials.Value, error) { method IsExpired (line 101) | func (a *AzureProvider) IsExpired() bool { function NewAzureProvider (line 36) | func NewAzureProvider(httpClient *http.Client, expiryWindow time.Duratio... FILE: internal/credproviders/static_provider.go constant staticProviderName (line 16) | staticProviderName = "StaticProvider" type StaticProvider (line 20) | type StaticProvider struct method Retrieve (line 44) | func (s *StaticProvider) Retrieve() (credentials.Value, error) { method IsExpired (line 56) | func (s *StaticProvider) IsExpired() bool { function verify (line 27) | func verify(v credentials.Value) error { FILE: internal/csfle/csfle.go constant EncryptedCacheCollection (line 17) | EncryptedCacheCollection = "ecc" constant EncryptedStateCollection (line 18) | EncryptedStateCollection = "esc" constant EncryptedCompactionCollection (line 19) | EncryptedCompactionCollection = "ecoc" function GetEncryptedStateCollectionName (line 23) | func GetEncryptedStateCollectionName(efBSON bsoncore.Document, dataColle... FILE: internal/csot/csot.go type clientLevel (line 14) | type clientLevel struct function isClientLevel (line 16) | func isClientLevel(ctx context.Context) bool { function IsTimeoutContext (line 27) | func IsTimeoutContext(ctx context.Context) bool { function WithTimeout (line 40) | func WithTimeout(parent context.Context, timeout *time.Duration) (contex... function WithServerSelectionTimeout (line 73) | func WithServerSelectionTimeout( type ZeroRTTMonitor (line 86) | type ZeroRTTMonitor struct method EWMA (line 89) | func (zrm *ZeroRTTMonitor) EWMA() time.Duration { method Min (line 94) | func (zrm *ZeroRTTMonitor) Min() time.Duration { method P90 (line 99) | func (zrm *ZeroRTTMonitor) P90() time.Duration { method Stats (line 104) | func (zrm *ZeroRTTMonitor) Stats() string { FILE: internal/csot/csot_test.go function newTestContext (line 18) | func newTestContext(t *testing.T, timeout time.Duration) context.Context { function TestWithServerSelectionTimeout (line 25) | func TestWithServerSelectionTimeout(t *testing.T) { function TestWithTimeout (line 151) | func TestWithTimeout(t *testing.T) { FILE: internal/decimal128/decimal128.go constant MaxDecimal128Exp (line 15) | MaxDecimal128Exp = 6111 constant MinDecimal128Exp (line 16) | MinDecimal128Exp = -6176 function divmod (line 19) | func divmod(h, l uint64, div uint32) (qh, ql uint64, rem uint32) { function String (line 37) | func String(h, l uint64) string { FILE: internal/docexamples/examples.go function requireCursorLength (line 29) | func requireCursorLength(t *testing.T, cursor *mongo.Cursor, length int) { function containsKey (line 39) | func containsKey(doc bson.Raw, key ...string) bool { function parseDate (line 44) | func parseDate(t *testing.T, dateString string) time.Time { function InsertExamples (line 54) | func InsertExamples(t *testing.T, db *mongo.Database) { function QueryToplevelFieldsExamples (line 143) | func QueryToplevelFieldsExamples(t *testing.T, db *mongo.Database) { function QueryEmbeddedDocumentsExamples (line 313) | func QueryEmbeddedDocumentsExamples(t *testing.T, db *mongo.Database) { function QueryArraysExamples (line 474) | func QueryArraysExamples(t *testing.T, db *mongo.Database) { function QueryArrayEmbeddedDocumentsExamples (line 660) | func QueryArrayEmbeddedDocumentsExamples(t *testing.T, db *mongo.Databas... function QueryNullMissingFieldsExamples (line 890) | func QueryNullMissingFieldsExamples(t *testing.T, db *mongo.Database) { function ProjectionExamples (line 969) | func ProjectionExamples(t *testing.T, db *mongo.Database) { function UpdateExamples (line 1354) | func UpdateExamples(t *testing.T, db *mongo.Database) { function DeleteExamples (line 1634) | func DeleteExamples(t *testing.T, db *mongo.Database) { function UpdateEmployeeInfo (line 1755) | func UpdateEmployeeInfo(ctx context.Context, client *mongo.Client) error { function RunTransactionWithRetry (line 1808) | func RunTransactionWithRetry(ctx context.Context, txnFn func(context.Con... function CommitWithRetry (line 1831) | func CommitWithRetry(ctx context.Context) error { function TransactionsExamples (line 1858) | func TransactionsExamples(ctx context.Context, client *mongo.Client) err... function WithTransactionExample (line 1965) | func WithTransactionExample(ctx context.Context) error { function ChangeStreamExamples (line 2018) | func ChangeStreamExamples(t *testing.T, db *mongo.Database) { function AggregationExamples (line 2129) | func AggregationExamples(t *testing.T, db *mongo.Database) { function CausalConsistencyExamples (line 2552) | func CausalConsistencyExamples(client *mongo.Client) error { function RunCommandExamples (line 2642) | func RunCommandExamples(t *testing.T, db *mongo.Database) { function IndexExamples (line 2663) | func IndexExamples(t *testing.T, db *mongo.Database) { function StableAPIExample (line 2783) | func StableAPIExample() { function StableAPIStrictExample (line 2805) | func StableAPIStrictExample() { function StableAPINonStrictExample (line 2827) | func StableAPINonStrictExample() { function StableAPIDeprecationErrorsExample (line 2850) | func StableAPIDeprecationErrorsExample() { function StableAPIStrictCountExample (line 2871) | func StableAPIStrictCountExample(t *testing.T) { function StableAPIExamples (line 2933) | func StableAPIExamples() { function insertSnapshotQueryTestData (line 2940) | func insertSnapshotQueryTestData(mt *mtest.T) { function snapshotQueryPetExample (line 2986) | func snapshotQueryPetExample(mt *mtest.T) error { function snapshotQueryRetailExample (line 3050) | func snapshotQueryRetailExample(mt *mtest.T) error { function SnapshotQueryExamples (line 3116) | func SnapshotQueryExamples(mt *mtest.T) { FILE: internal/docexamples/examples_test.go function TestMain (line 24) | func TestMain(m *testing.M) { function TestDocumentationExamples (line 43) | func TestDocumentationExamples(t *testing.T) { FILE: internal/driverutil/description.go constant MinWireVersion (line 24) | MinWireVersion = 8 constant MaxWireVersion (line 25) | MaxWireVersion = 25 function equalWireVersion (line 28) | func equalWireVersion(wv1, wv2 *description.VersionRange) bool { function EqualServers (line 42) | func EqualServers(srv1, srv2 description.Server) bool { function IsServerLoadBalanced (line 112) | func IsServerLoadBalanced(srv description.Server) bool { function stringSliceFromRawElement (line 120) | func stringSliceFromRawElement(element bson.RawElement) ([]string, error) { function decodeStringMap (line 124) | func decodeStringMap(element bson.RawElement, name string) (map[string]s... function NewTopologyVersion (line 146) | func NewTopologyVersion(doc bson.Raw) (*description.TopologyVersion, err... function NewVersionRange (line 171) | func NewVersionRange(min, max int32) description.VersionRange { function VersionRangeIncludes (line 177) | func VersionRangeIncludes(versionRange description.VersionRange, v int32... function CompareTopologyVersions (line 188) | func CompareTopologyVersions(receiver, response *description.TopologyVer... function NewServerDescription (line 206) | func NewServerDescription(addr address.Address, response bson.Raw) descr... function sliceStringEqual (line 481) | func sliceStringEqual(a []string, b []string) bool { FILE: internal/driverutil/hello.go constant AwsLambdaPrefix (line 14) | AwsLambdaPrefix = "AWS_Lambda_" constant EnvVarAWSExecutionEnv (line 20) | EnvVarAWSExecutionEnv = "AWS_EXECUTION_ENV" constant EnvVarAWSLambdaRuntimeAPI (line 22) | EnvVarAWSLambdaRuntimeAPI = "AWS_LAMBDA_RUNTIME_API" constant EnvVarFunctionsWorkerRuntime (line 24) | EnvVarFunctionsWorkerRuntime = "FUNCTIONS_WORKER_RUNTIME" constant EnvVarKService (line 26) | EnvVarKService = "K_SERVICE" constant EnvVarFunctionName (line 28) | EnvVarFunctionName = "FUNCTION_NAME" constant EnvVarVercel (line 30) | EnvVarVercel = "VERCEL" constant EnvVarK8s (line 32) | EnvVarK8s = "KUBERNETES_SERVICE_HOST" constant EnvVarAWSRegion (line 39) | EnvVarAWSRegion = "AWS_REGION" constant EnvVarAWSLambdaFunctionMemorySize (line 41) | EnvVarAWSLambdaFunctionMemorySize = "AWS_LAMBDA_FUNCTION_MEMORY_SIZE" constant EnvVarFunctionMemoryMB (line 43) | EnvVarFunctionMemoryMB = "FUNCTION_MEMORY_MB" constant EnvVarFunctionTimeoutSec (line 45) | EnvVarFunctionTimeoutSec = "FUNCTION_TIMEOUT_SEC" constant EnvVarFunctionRegion (line 47) | EnvVarFunctionRegion = "FUNCTION_REGION" constant EnvVarVercelRegion (line 49) | EnvVarVercelRegion = "VERCEL_REGION" constant EnvNameAWSLambda (line 56) | EnvNameAWSLambda = "aws.lambda" constant EnvNameAzureFunc (line 58) | EnvNameAzureFunc = "azure.func" constant EnvNameGCPFunc (line 60) | EnvNameGCPFunc = "gcp.func" constant EnvNameVercel (line 62) | EnvNameVercel = "vercel" function GetFaasEnvName (line 71) | func GetFaasEnvName() string { FILE: internal/driverutil/operation.go constant AbortTransactionOp (line 18) | AbortTransactionOp = "abortTransaction" constant AggregateOp (line 19) | AggregateOp = "aggregate" constant CommitTransactionOp (line 20) | CommitTransactionOp = "commitTransaction" constant CountOp (line 21) | CountOp = "count" constant CreateOp (line 22) | CreateOp = "create" constant CreateIndexesOp (line 23) | CreateIndexesOp = "createIndexes" constant DeleteOp (line 24) | DeleteOp = "delete" constant DistinctOp (line 25) | DistinctOp = "distinct" constant DropOp (line 26) | DropOp = "drop" constant DropDatabaseOp (line 27) | DropDatabaseOp = "dropDatabase" constant DropIndexesOp (line 28) | DropIndexesOp = "dropIndexes" constant EndSessionsOp (line 29) | EndSessionsOp = "endSessions" constant FindAndModifyOp (line 30) | FindAndModifyOp = "findAndModify" constant FindOp (line 31) | FindOp = "find" constant InsertOp (line 32) | InsertOp = "insert" constant ListCollectionsOp (line 33) | ListCollectionsOp = "listCollections" constant ListIndexesOp (line 34) | ListIndexesOp = "listIndexes" constant ListDatabasesOp (line 35) | ListDatabasesOp = "listDatabases" constant UpdateOp (line 36) | UpdateOp = "update" constant BulkWriteOp (line 37) | BulkWriteOp = "bulkWrite" function CalculateMaxTimeMS (line 44) | func CalculateMaxTimeMS(ctx context.Context, rttMin time.Duration) (int6... FILE: internal/driverutil/operation_test.go function TestCalculateMaxTimeMS (line 18) | func TestCalculateMaxTimeMS(t *testing.T) { FILE: internal/errutil/join.go function join (line 17) | func join(errs ...error) error { type joinError (line 44) | type joinError struct method Error (line 48) | func (e *joinError) Error() string { method Unwrap (line 64) | func (e *joinError) Unwrap() error { method Is (line 72) | func (e *joinError) Is(target error) bool { method As (line 80) | func (e *joinError) As(target any) bool { FILE: internal/errutil/join_go1.19.go function Join (line 17) | func Join(errs ...error) error { FILE: internal/errutil/join_go1.20.go function Join (line 14) | func Join(errs ...error) error { FILE: internal/errutil/join_test.go function TestJoin_Nil (line 20) | func TestJoin_Nil(t *testing.T) { function TestJoin_Error (line 30) | func TestJoin_Error(t *testing.T) { function TestJoin_ErrorsIs (line 69) | func TestJoin_ErrorsIs(t *testing.T) { type errType1 (line 154) | type errType1 struct method Error (line 156) | func (errType1) Error() string { return "" } type errType2 (line 158) | type errType2 struct method Error (line 160) | func (errType2) Error() string { return "" } function TestJoin_ErrorsAs (line 164) | func TestJoin_ErrorsAs(t *testing.T) { FILE: internal/eventtest/eventtest.go type TestPoolMonitor (line 19) | type TestPoolMonitor struct method Events (line 43) | func (tpm *TestPoolMonitor) Events(filters ...func(*event.PoolEvent) b... method ClearEvents (line 65) | func (tpm *TestPoolMonitor) ClearEvents() { method IsPoolCleared (line 73) | func (tpm *TestPoolMonitor) IsPoolCleared() bool { method Interruptions (line 81) | func (tpm *TestPoolMonitor) Interruptions() int { function NewTestPoolMonitor (line 26) | func NewTestPoolMonitor() *TestPoolMonitor { FILE: internal/failpoint/failpoint.go constant ModeAlwaysOn (line 16) | ModeAlwaysOn = "alwaysOn" constant ModeOff (line 19) | ModeOff = "off" type FailPoint (line 27) | type FailPoint struct type Mode (line 36) | type Mode struct type Data (line 43) | type Data struct type WriteConcernError (line 57) | type WriteConcernError struct FILE: internal/httputil/httputil.go function NewHTTPClient (line 17) | func NewHTTPClient() *http.Client { function CloseIdleHTTPConnections (line 31) | func CloseIdleHTTPConnections(client *http.Client) { FILE: internal/httputil/httputil_test.go type nonDefaultTransport (line 16) | type nonDefaultTransport struct method RoundTrip (line 18) | func (*nonDefaultTransport) RoundTrip(*http.Request) (*http.Response, ... function TestDefaultHTTPClientTransport (line 20) | func TestDefaultHTTPClientTransport(t *testing.T) { FILE: internal/integration/causal_consistency_test.go function TestCausalConsistency_Supported (line 29) | func TestCausalConsistency_Supported(t *testing.T) { function checkOperationTime (line 204) | func checkOperationTime(mt *mtest.T, cmd bson.Raw, shouldInclude bool) { function getReadConcernFields (line 215) | func getReadConcernFields(mt *mtest.T, cmd bson.Raw) (string, *bson.Time... FILE: internal/integration/change_stream_test.go type resumeType (line 28) | type resumeType type streamType (line 29) | type streamType constant minChangeStreamVersion (line 33) | minChangeStreamVersion = "3.6.0" constant minPbrtVersion (line 34) | minPbrtVersion = "4.0.7" constant minStartAfterVersion (line 35) | minStartAfterVersion = "4.1.1" constant startAfter (line 37) | startAfter resumeType = iota constant resumeAfter (line 38) | resumeAfter constant operationTime (line 39) | operationTime constant client (line 41) | client streamType = iota constant database (line 42) | database constant collection (line 43) | collection constant errorInterrupted (line 45) | errorInterrupted int32 = 11601 constant errorHostUnreachable (line 46) | errorHostUnreachable int32 = 6 constant resumableChangeStreamError (line 48) | resumableChangeStreamError = "ResumableChangeStreamError" function TestChangeStream_Standalone (line 51) | func TestChangeStream_Standalone(t *testing.T) { function TestChangeStream_ReplicaSet (line 62) | func TestChangeStream_ReplicaSet(t *testing.T) { function closeStream (line 742) | func closeStream(cs *mongo.ChangeStream) { function generateEvents (line 746) | func generateEvents(mt *mtest.T, numEvents int) { function getAggregateResponseInfo (line 757) | func getAggregateResponseInfo(mt *mtest.T) (bson.Raw, bson.Timestamp) { function compareResumeTokens (line 769) | func compareResumeTokens(mt *mtest.T, cs *mongo.ChangeStream, expected b... FILE: internal/integration/clam_prose_test.go function clamTruncErr (line 26) | func clamTruncErr(mt *mtest.T, op string, want, got int) error { function clamDefaultTruncLimitOp (line 32) | func clamDefaultTruncLimitOp(ctx context.Context, mt *mtest.T, coll *mon... function clamDefaultTruncLimitLogs (line 53) | func clamDefaultTruncLimitLogs(mt *mtest.T) []truncValidator { function clamExplicitTruncLimitOp (line 95) | func clamExplicitTruncLimitOp(ctx context.Context, mt *mtest.T, coll *mo... function clamExplicitTruncLimitLogs (line 102) | func clamExplicitTruncLimitLogs(mt *mtest.T) []truncValidator { function clamExplicitTruncLimitFailOp (line 132) | func clamExplicitTruncLimitFailOp(ctx context.Context, mt *mtest.T, coll... function clamExplicitTruncLimitFailLogs (line 139) | func clamExplicitTruncLimitFailLogs(mt *mtest.T) []truncValidator { function clamMultiByteTrunc (line 175) | func clamMultiByteTrunc(ctx context.Context, mt *mtest.T, coll *mongo.Co... function clamMultiByteTruncLogs (line 191) | func clamMultiByteTruncLogs(mt *mtest.T) []truncValidator { function TestCommandLoggingAndMonitoringProse (line 218) | func TestCommandLoggingAndMonitoringProse(t *testing.T) { FILE: internal/integration/client_options_test.go function TestClientOptions_CustomDialer (line 22) | func TestClientOptions_CustomDialer(t *testing.T) { type testDialer (line 37) | type testDialer struct method DialContext (line 42) | func (td *testDialer) DialContext(ctx context.Context, network, addres... FILE: internal/integration/client_side_encryption_prose_test.go constant clientEncryptionProseDir (line 66) | clientEncryptionProseDir = "../../testdata/client-side-encryption-p... constant deterministicAlgorithm (line 67) | deterministicAlgorithm = "AEAD_AES_256_CBC_HMAC_SHA_512-Determini... constant randomAlgorithm (line 68) | randomAlgorithm = "AEAD_AES_256_CBC_HMAC_SHA_512-Random" constant kvNamespace (line 69) | kvNamespace = "keyvault.datakeys" constant keySubtype (line 70) | keySubtype byte = 4 constant encryptedValueSubtype (line 71) | encryptedValueSubtype byte = 6 constant cryptMaxBatchSizeBytes (line 72) | cryptMaxBatchSizeBytes = 2097152 constant maxBsonObjSize (line 73) | maxBsonObjSize = 16777216 function newCSE_T (line 76) | func newCSE_T(t *testing.T, opts *mtest.Options) *mtest.T { function newNoClientOpts (line 88) | func newNoClientOpts() *mtest.Options { function TestClientSideEncryptionProse_1_custom_key_material_test (line 92) | func TestClientSideEncryptionProse_1_custom_key_material_test(t *testing... function TestClientSideEncryptionProse_2_data_key_and_double_encryption (line 183) | func TestClientSideEncryptionProse_2_data_key_and_double_encryption(t *t... function TestClientSideEncryptionProse_3_external_key_vault_test (line 328) | func TestClientSideEncryptionProse_3_external_key_vault_test(t *testing.... function TestClientSideEncryptionProse_4_bson_size_limits_and_batch_splitting (line 399) | func TestClientSideEncryptionProse_4_bson_size_limits_and_batch_splittin... function TestClientSideEncryptionProse_5_views_are_prohibited (line 504) | func TestClientSideEncryptionProse_5_views_are_prohibited(t *testing.T) { function TestClientSideEncryptionProse_6_corpus_test (line 539) | func TestClientSideEncryptionProse_6_corpus_test(t *testing.T) { function TestClientSideEncryptionProse_7_custom_endpoint_test (line 782) | func TestClientSideEncryptionProse_7_custom_endpoint_test(t *testing.T) { function TestClientSideEncryptionProse_8_bypass_spawning_mongocryptd (line 1069) | func TestClientSideEncryptionProse_8_bypass_spawning_mongocryptd(t *test... function TestClientSideEncryptionProse_9_deadlock_tests (line 1198) | func TestClientSideEncryptionProse_9_deadlock_tests(t *testing.T) { function TestClientSideEncryptionProse_10_kms_tls_tests (line 1343) | func TestClientSideEncryptionProse_10_kms_tls_tests(t *testing.T) { function TestClientSideEncryptionProse_11_kms_tls_options_tests (line 1390) | func TestClientSideEncryptionProse_11_kms_tls_options_tests(t *testing.T) { function newTopoOpts (line 1625) | func newTopoOpts() *mtest.Options { function TestClientSideEncryptionProse_12_explicit_encryption (line 1629) | func TestClientSideEncryptionProse_12_explicit_encryption(t *testing.T) { function TestClientSideEncryptionProse_13_unique_index_on_keyAltNames (line 1817) | func TestClientSideEncryptionProse_13_unique_index_on_keyAltNames(t *tes... function TestClientSideEncryptionProse_16_rewrap (line 1958) | func TestClientSideEncryptionProse_16_rewrap(t *testing.T) { function TestClientSideEncryptionProse_18_azure_imds_credentials (line 2122) | func TestClientSideEncryptionProse_18_azure_imds_credentials(t *testing.... function TestClientSideEncryptionProse_20_bypass_creating_mongocryptd_client_when_shared_library_is_loaded (line 2228) | func TestClientSideEncryptionProse_20_bypass_creating_mongocryptd_client... function newQEOpts (line 2275) | func newQEOpts() *mtest.Options { function TestClientSideEncryptionProse_21_automatic_data_encryption_keys (line 2279) | func TestClientSideEncryptionProse_21_automatic_data_encryption_keys(t *... function TestClientSideEncryptionProse_22_range_explicit_encryption (line 2441) | func TestClientSideEncryptionProse_22_range_explicit_encryption(t *testi... function TestClientSideEncryptionProse_23_range_explicit_encryption_applies_defaults (line 2909) | func TestClientSideEncryptionProse_23_range_explicit_encryption_applies_... function TestClientSideEncryptionProse_24_kmw_retry_tests (line 2976) | func TestClientSideEncryptionProse_24_kmw_retry_tests(t *testing.T) { function TestClientSideEncryptionProse_27_text_explicit_encryption (line 3125) | func TestClientSideEncryptionProse_27_text_explicit_encryption(t *testin... function TestChangeStreams (line 3445) | func TestChangeStreams(t *testing.T) { function getWatcher (line 3534) | func getWatcher(mt *mtest.T, streamType mongo.StreamType, cpt *cseProseT... type cseProseTest (line 3550) | type cseProseTest struct method teardown (line 3600) | func (cpt *cseProseTest) teardown(mt *mtest.T) { function setup (line 3560) | func setup(mt *mtest.T, aeo *options.AutoEncryptionOptions, kvClientOpts... function readJSONFile (line 3611) | func readJSONFile(mt *mtest.T, file string) bson.Raw { function decodeJSONFile (line 3623) | func decodeJSONFile(mt *mtest.T, file string, val any) bson.Raw { function rawValueToCoreValue (line 3635) | func rawValueToCoreValue(rv bson.RawValue) bsoncore.Value { type deadlockTest (line 3639) | type deadlockTest struct method disconnect (line 3708) | func (d *deadlockTest) disconnect(mt *mtest.T) { type startedEvent (line 3647) | type startedEvent struct function newDeadlockTest (line 3652) | func newDeadlockTest(mt *mtest.T) *deadlockTest { function listenForConnections (line 3719) | func listenForConnections(t *testing.T, run func(net.Conn)) net.Listener { type localTransport (line 3740) | type localTransport struct method RoundTrip (line 3746) | func (t *localTransport) RoundTrip(req *http.Request) (*http.Response,... FILE: internal/integration/client_side_encryption_spec_test.go function verifyClientSideEncryptionVarsSet (line 22) | func verifyClientSideEncryptionVarsSet(t *testing.T) { function TestClientSideEncryptionSpec (line 52) | func TestClientSideEncryptionSpec(t *testing.T) { FILE: internal/integration/client_side_encryption_test.go function createDataKeyAndEncrypt (line 29) | func createDataKeyAndEncrypt(mt *mtest.T, keyName string) bson.Binary { function getLsid (line 71) | func getLsid(mt *mtest.T, doc bson.Raw) bson.Raw { function makeMonitor (line 81) | func makeMonitor(mt *mtest.T, captured *[]event.CommandStartedEvent) *ev... function TestClientSideEncryptionWithExplicitSessions (line 93) | func TestClientSideEncryptionWithExplicitSessions(t *testing.T) { type customCrypt (line 241) | type customCrypt struct method Encrypt (line 259) | func (c *customCrypt) Encrypt(_ context.Context, _ string, cmd bsoncor... method Decrypt (line 279) | func (c *customCrypt) Decrypt(_ context.Context, cmdResponse bsoncore.... method CreateDataKey (line 299) | func (c *customCrypt) CreateDataKey(_ context.Context, _ string, _ *mc... method EncryptExplicit (line 305) | func (c *customCrypt) EncryptExplicit(_ context.Context, _ bsoncore.Va... method EncryptExplicitExpression (line 311) | func (c *customCrypt) EncryptExplicitExpression(_ context.Context, _ b... method DecryptExplicit (line 317) | func (c *customCrypt) DecryptExplicit(_ context.Context, _ byte, _ []b... method Close (line 323) | func (c *customCrypt) Close() { method BypassAutoEncryption (line 328) | func (c *customCrypt) BypassAutoEncryption() bool { method RewrapDataKey (line 335) | func (c *customCrypt) RewrapDataKey(_ context.Context, _ []byte, function TestClientSideEncryptionCustomCrypt (line 342) | func TestClientSideEncryptionCustomCrypt(t *testing.T) { function TestFLE2CreateCollection (line 401) | func TestFLE2CreateCollection(t *testing.T) { function TestFLE2DocsExample (line 472) | func TestFLE2DocsExample(t *testing.T) { function TestFLE2CreateCollectionWithAutoEncryption (line 600) | func TestFLE2CreateCollectionWithAutoEncryption(t *testing.T) { function TestFLEIndexView (line 672) | func TestFLEIndexView(t *testing.T) { FILE: internal/integration/client_test.go type negateCodec (line 45) | type negateCodec struct method EncodeValue (line 49) | func (e *negateCodec) EncodeValue(_ bson.EncodeContext, vw bson.ValueW... method DecodeValue (line 54) | func (e *negateCodec) DecodeValue(_ bson.DecodeContext, vr bson.ValueR... type intKey (line 64) | type intKey method MarshalKey (line 66) | func (i intKey) MarshalKey() (string, error) { type slowConnDialer (line 73) | type slowConnDialer struct method DialContext (line 90) | func (scd *slowConnDialer) DialContext(ctx context.Context, network, a... function newSlowConnDialer (line 83) | func newSlowConnDialer(delay time.Duration) *slowConnDialer { type slowConn (line 105) | type slowConn struct method Read (line 110) | func (sc *slowConn) Read(b []byte) (n int, err error) { function TestClient (line 115) | func TestClient(t *testing.T) { function TestClient_BulkWrite (line 742) | func TestClient_BulkWrite(t *testing.T) { function TestClient_BulkWrite_AddCommandFields (line 864) | func TestClient_BulkWrite_AddCommandFields(t *testing.T) { function TestClient_BSONOptions (line 949) | func TestClient_BSONOptions(t *testing.T) { function TestClientStress (line 1259) | func TestClientStress(t *testing.T) { FILE: internal/integration/cmd_monitoring_helpers_test.go function numberFromValue (line 25) | func numberFromValue(mt *mtest.T, val bson.RawValue) int64 { function compareNumberValues (line 42) | func compareNumberValues(mt *mtest.T, key string, expected, actual bson.... function compareValues (line 63) | func compareValues(mt *mtest.T, key string, expected, actual bson.RawVal... function checkValueType (line 136) | func checkValueType(mt *mtest.T, key string, actual bson.Type, typeStr s... function compareDocsHelper (line 194) | func compareDocsHelper(mt *mtest.T, expected, actual bson.Raw, prefix st... function compareDocs (line 229) | func compareDocs(mt *mtest.T, expected, actual bson.Raw) error { function checkExpectations (line 234) | func checkExpectations(mt *mtest.T, expectations *[]*expectation, id0, i... function newMatchError (line 298) | func newMatchError(mt *mtest.T, expected bson.Raw, actual bson.Raw, form... function compareStartedEvent (line 308) | func compareStartedEvent(mt *mtest.T, expectation *expectation, id0, id1... function compareWriteErrors (line 389) | func compareWriteErrors(mt *mtest.T, expected, actual bson.Raw) error { function compareSucceededEvent (line 426) | func compareSucceededEvent(mt *mtest.T, expectation *expectation) error { function compareFailedEvent (line 466) | func compareFailedEvent(mt *mtest.T, expectation *expectation) error { FILE: internal/integration/collection_test.go constant errorDuplicateKey (line 30) | errorDuplicateKey = 11000 constant errorCappedCollDeleteLegacy (line 31) | errorCappedCollDeleteLegacy = 10101 constant errorCappedCollDelete (line 32) | errorCappedCollDelete = 20 constant errorModifiedIDLegacy (line 33) | errorModifiedIDLegacy = 16837 constant errorModifiedID (line 34) | errorModifiedID = 66 function TestCollection (line 44) | func TestCollection(t *testing.T) { function TestBypassEmptyTsReplacement (line 2032) | func TestBypassEmptyTsReplacement(t *testing.T) { function initCollection (line 2412) | func initCollection(tb testing.TB, coll *mongo.Collection) { function testAggregateWithOptions (line 2424) | func testAggregateWithOptions(mt *mtest.T, createIndex bool, opts option... function create16MBDocument (line 2457) | func create16MBDocument(mt *mtest.T) bsoncore.Document { function assertGetMoreCommandsAreMonitored (line 2490) | func assertGetMoreCommandsAreMonitored(mt *mtest.T, cmdName string, curs... function assertKillCursorsCommandsAreMonitored (line 2510) | func assertKillCursorsCommandsAreMonitored(mt *mtest.T, cmdName string, ... FILE: internal/integration/crud_helpers_test.go function createUpdate (line 47) | func createUpdate(mt *mtest.T, updateVal bson.RawValue) any { function createHint (line 67) | func createHint(mt *mtest.T, val bson.RawValue) any { function isExpectedKillAllSessionsError (line 83) | func isExpectedKillAllSessionsError(err error) bool { function killSessions (line 97) | func killSessions(mt *mtest.T) { function runCommandOnAllServers (line 121) | func runCommandOnAllServers(commandFn func(client *mongo.Client) error) ... type aggregator (line 157) | type aggregator interface type watcher (line 162) | type watcher interface function executeAggregate (line 166) | func executeAggregate(mt *mtest.T, agg aggregator, sess *mongo.Session, ... function executeWatch (line 204) | func executeWatch(mt *mtest.T, w watcher, sess *mongo.Session, args bson... function executeCountDocuments (line 233) | func executeCountDocuments(mt *mtest.T, sess *mongo.Session, args bson.R... function executeInsertOne (line 271) | func executeInsertOne(mt *mtest.T, sess *mongo.Session, args bson.Raw) (... function executeInsertMany (line 305) | func executeInsertMany(mt *mtest.T, sess *mongo.Session, args bson.Raw) ... function setFindModifiers (line 343) | func setFindModifiers(modifiersDoc bson.Raw, opts *options.FindOptionsBu... function executeFind (line 366) | func executeFind(mt *mtest.T, sess *mongo.Session, args bson.Raw) (*mong... function executeRunCommand (line 414) | func executeRunCommand(mt *mtest.T, sess *mongo.Session, args bson.Raw) ... function executeListCollections (line 447) | func executeListCollections(mt *mtest.T, sess *mongo.Session, args bson.... function executeListCollectionNames (line 476) | func executeListCollectionNames(mt *mtest.T, sess *mongo.Session, args b... function executeListDatabaseNames (line 505) | func executeListDatabaseNames(mt *mtest.T, sess *mongo.Session, args bso... function executeListDatabases (line 534) | func executeListDatabases(mt *mtest.T, sess *mongo.Session, args bson.Ra... function executeFindOne (line 563) | func executeFindOne(mt *mtest.T, sess *mongo.Session, args bson.Raw) *mo... function executeListIndexes (line 591) | func executeListIndexes(mt *mtest.T, sess *mongo.Session, args bson.Raw)... function executeDistinct (line 608) | func executeDistinct(mt *mtest.T, sess *mongo.Session, args bson.Raw) (b... function executeFindOneAndDelete (line 650) | func executeFindOneAndDelete(mt *mtest.T, sess *mongo.Session, args bson... function executeFindOneAndUpdate (line 689) | func executeFindOneAndUpdate(mt *mtest.T, sess *mongo.Session, args bson... function executeFindOneAndReplace (line 746) | func executeFindOneAndReplace(mt *mtest.T, sess *mongo.Session, args bso... function executeDeleteOne (line 799) | func executeDeleteOne(mt *mtest.T, sess *mongo.Session, args bson.Raw) (... function executeDeleteMany (line 835) | func executeDeleteMany(mt *mtest.T, sess *mongo.Session, args bson.Raw) ... function executeUpdateOne (line 871) | func executeUpdateOne(mt *mtest.T, sess *mongo.Session, args bson.Raw) (... function executeUpdateMany (line 923) | func executeUpdateMany(mt *mtest.T, sess *mongo.Session, args bson.Raw) ... function executeReplaceOne (line 975) | func executeReplaceOne(mt *mtest.T, sess *mongo.Session, args bson.Raw) ... type withTransactionArgs (line 1023) | type withTransactionArgs struct function runWithTransactionOperations (line 1030) | func runWithTransactionOperations(mt *mtest.T, operations []*operation, ... function executeWithTransaction (line 1058) | func executeWithTransaction(mt *mtest.T, sess *mongo.Session, args bson.... function executeBulkWrite (line 1075) | func executeBulkWrite(mt *mtest.T, sess *mongo.Session, args bson.Raw) (... function createBulkWriteModels (line 1109) | func createBulkWriteModels(mt *mtest.T, rawModels bson.Raw) []mongo.Writ... function createBulkWriteModel (line 1119) | func createBulkWriteModel(mt *mtest.T, rawModel bson.Raw) mongo.WriteMod... function executeEstimatedDocumentCount (line 1219) | func executeEstimatedDocumentCount(mt *mtest.T, sess *mongo.Session, arg... function executeGridFSDownload (line 1238) | func executeGridFSDownload(mt *mtest.T, bucket *mongo.GridFSBucket, args... function executeGridFSDownloadByName (line 1258) | func executeGridFSDownloadByName(mt *mtest.T, bucket *mongo.GridFSBucket... function executeCreateIndex (line 1278) | func executeCreateIndex(mt *mtest.T, sess *mongo.Session, args bson.Raw)... function executeDropIndex (line 1312) | func executeDropIndex(mt *mtest.T, sess *mongo.Session, args bson.Raw) e... function executeDropCollection (line 1338) | func executeDropCollection(mt *mtest.T, sess *mongo.Session, args bson.R... function executeCreateCollection (line 1368) | func executeCreateCollection(mt *mtest.T, sess *mongo.Session, args bson... function executeAdminCommand (line 1401) | func executeAdminCommand(mt *mtest.T, op *operation) { function executeAdminCommandWithRetry (line 1436) | func executeAdminCommandWithRetry( function verifyCountResult (line 1461) | func verifyCountResult(mt *mtest.T, actualResult int64, expectedResult a... function verifyBulkWriteResult (line 1472) | func verifyBulkWriteResult(mt *mtest.T, actualResult *mongo.BulkWriteRes... function verifyUpdateResult (line 1512) | func verifyUpdateResult(mt *mtest.T, res *mongo.UpdateResult, result any) { function verifyDeleteResult (line 1540) | func verifyDeleteResult(mt *mtest.T, res *mongo.DeleteResult, result any) { function verifyDistinctResult (line 1556) | func verifyDistinctResult( function verifyInsertOneResult (line 1587) | func verifyInsertOneResult(mt *mtest.T, actualResult *mongo.InsertOneRes... function verifyInsertManyResult (line 1610) | func verifyInsertManyResult(mt *mtest.T, actualResult *mongo.InsertManyR... function verifyListDatabasesResult (line 1635) | func verifyListDatabasesResult(mt *mtest.T, actualResult mongo.ListDatab... function verifyCursorResult (line 1649) | func verifyCursorResult(mt *mtest.T, cur *mongo.Cursor, result any) { function verifySingleResult (line 1672) | func verifySingleResult( FILE: internal/integration/crud_prose_test.go function TestWriteErrorsWithLabels (line 30) | func TestWriteErrorsWithLabels(t *testing.T) { function TestWriteErrorsDetails (line 120) | func TestWriteErrorsDetails(t *testing.T) { function TestHintErrors (line 297) | func TestHintErrors(t *testing.T) { function TestWriteConcernError (line 327) | func TestWriteConcernError(t *testing.T) { function TestErrorsCodeNamePropagated (line 368) | func TestErrorsCodeNamePropagated(t *testing.T) { function TestClientBulkWriteProse (line 416) | func TestClientBulkWriteProse(t *testing.T) { FILE: internal/integration/csot_cse_prose_test.go function TestCSOTClientSideEncryptionProse (line 25) | func TestCSOTClientSideEncryptionProse(t *testing.T) { FILE: internal/integration/csot_prose_test.go function TestCSOTProse (line 29) | func TestCSOTProse(t *testing.T) { function TestCSOTProse_GridFS (line 237) | func TestCSOTProse_GridFS(t *testing.T) { FILE: internal/integration/csot_test.go function TestCSOT_maxTimeMS (line 30) | func TestCSOT_maxTimeMS(t *testing.T) { function TestCSOT_errors (line 420) | func TestCSOT_errors(t *testing.T) { FILE: internal/integration/cursor_test.go constant errorCursorNotFound (line 27) | errorCursorNotFound = 43 function TestCursor (line 30) | func TestCursor(t *testing.T) { function TestCursor_TryNext (line 80) | func TestCursor_TryNext(t *testing.T) { function TestCursor_RemainingBatchLength (line 128) | func TestCursor_RemainingBatchLength(t *testing.T) { function TestCursor_All (line 234) | func TestCursor_All(t *testing.T) { function TestCursor_Close (line 309) | func TestCursor_Close(t *testing.T) { function parseMaxAwaitTime (line 337) | func parseMaxAwaitTime(mt *mtest.T, evt *event.CommandStartedEvent) int64 { function tadcFindFactory (line 349) | func tadcFindFactory(ctx context.Context, mt *mtest.T, coll mongo.Collec... function tadcAggregateFactory (line 360) | func tadcAggregateFactory(ctx context.Context, mt *mtest.T, coll mongo.C... function tadcRunCommandCursorFactory (line 379) | func tadcRunCommandCursorFactory(ctx context.Context, mt *mtest.T, coll ... function TestCursor_tailableAwaitData_applyRemainingTimeout (line 400) | func TestCursor_tailableAwaitData_applyRemainingTimeout(t *testing.T) { function TestCursor_tailableAwaitData_ShortCircuitingGetMore (line 536) | func TestCursor_tailableAwaitData_ShortCircuitingGetMore(t *testing.T) { type tryNextCursor (line 654) | type tryNextCursor interface function tryNextExistingBatchTest (line 659) | func tryNextExistingBatchTest(mt *mtest.T, cursor tryNextCursor) { function verifyOneGetmoreSent (line 671) | func verifyOneGetmoreSent(mt *mtest.T) { function tryNextGetmoreError (line 684) | func tryNextGetmoreError(mt *mtest.T, cursor tryNextCursor) { FILE: internal/integration/database_test.go constant listCollCapped (line 29) | listCollCapped = "listcoll_capped" constant listCollUncapped (line 30) | listCollUncapped = "listcoll_uncapped" function TestDatabase (line 39) | func TestDatabase(t *testing.T) { function getCollectionOptions (line 589) | func getCollectionOptions(mt *mtest.T, collectionName string) bson.M { function verifyListCollections (line 610) | func verifyListCollections(cursor *mongo.Cursor, cappedOnly bool) error { FILE: internal/integration/errors_test.go function containsPattern (line 28) | func containsPattern(patterns []string, str string) bool { function TestErrors (line 39) | func TestErrors(t *testing.T) { FILE: internal/integration/gridfs_test.go function TestGridFS (line 28) | func TestGridFS(x *testing.T) { function assertGridFSCollectionState (line 532) | func assertGridFSCollectionState(mt *mtest.T, coll *mongo.Collection, ex... function findIndex (line 542) | func findIndex(ctx context.Context, mt *mtest.T, coll *mongo.Collection,... function skipRoundTripTest (line 560) | func skipRoundTripTest(mt *mtest.T) { FILE: internal/integration/handshake_test.go function TestHandshakeProse (line 28) | func TestHandshakeProse(t *testing.T) { function TestLoadBalancedConnectionHandshake (line 291) | func TestLoadBalancedConnectionHandshake(t *testing.T) { function TestHandshakeProse_AppendMetadata_Test1_Test2_Test3 (line 344) | func TestHandshakeProse_AppendMetadata_Test1_Test2_Test3(t *testing.T) { function TestHandshakeProse_AppendMetadata_MultipleUpdatesWithDuplicateFields (line 721) | func TestHandshakeProse_AppendMetadata_MultipleUpdatesWithDuplicateField... function TestHandshakeProse_AppendMetadata_NotAppendedIfIdentical (line 806) | func TestHandshakeProse_AppendMetadata_NotAppendedIfIdentical(t *testing... function TestHandshakeProse_AppendMetadata_NotAppendedIfIdentical_NonSequential (line 877) | func TestHandshakeProse_AppendMetadata_NotAppendedIfIdentical_NonSequent... function TestHandshakeProse_AppendMetadata_EmptyStrings (line 967) | func TestHandshakeProse_AppendMetadata_EmptyStrings(t *testing.T) { function TestHandshakeProse_AppendMetadata_EmptyStrings_InitializedClient (line 1114) | func TestHandshakeProse_AppendMetadata_EmptyStrings_InitializedClient(t ... function mustMarshalBSON (line 1256) | func mustMarshalBSON(val interface{}) []byte { function clientMetadataFromHandshake (line 1267) | func clientMetadataFromHandshake(mt *mtest.T, cmd bsoncore.Document) []b... FILE: internal/integration/index_view_test.go type index (line 24) | type index struct function TestIndexView (line 29) | func TestIndexView(t *testing.T) { function getIndexDoc (line 720) | func getIndexDoc(mt *mtest.T, iv mongo.IndexView, expectedKeyDoc bson.D)... function checkIndexDocContains (line 742) | func checkIndexDocContains(mt *mtest.T, indexDoc bson.D, expectedElem bs... function verifyIndexExists (line 755) | func verifyIndexExists(mt *mtest.T, iv mongo.IndexView, expected index) { function createIndexes (line 778) | func createIndexes(mt *mtest.T, coll *mongo.Collection, numIndexes int) { FILE: internal/integration/initial_dns_seedlist_discovery_test.go type seedlistTest (line 35) | type seedlistTest struct function TestInitialDNSSeedlistDiscoverySpec (line 46) | func TestInitialDNSSeedlistDiscoverySpec(t *testing.T) { function runSeedlistDiscoveryDirectory (line 66) | func runSeedlistDiscoveryDirectory(mt *mtest.T, subdirectory string) { function runSeedlistDiscoveryPingTest (line 76) | func runSeedlistDiscoveryPingTest(mt *mtest.T, clientOpts *options.Clien... function runSeedlistDiscoveryTest (line 93) | func runSeedlistDiscoveryTest(mt *mtest.T, file string) { function buildSet (line 171) | func buildSet(list []string) map[string]struct{} { function verifyConnstringOptions (line 179) | func verifyConnstringOptions(mt *mtest.T, expected bson.Raw, cs *connstr... function getSSLSettings (line 226) | func getSSLSettings(mt *mtest.T, test seedlistTest) *tls.Config { function getServerByAddress (line 254) | func getServerByAddress(address string, topo *topology.Topology) (descri... FILE: internal/integration/json_helpers_test.go function jsonFilesInDir (line 50) | func jsonFilesInDir(t testing.TB, dir string) []string { function createClientOptions (line 70) | func createClientOptions(t testing.TB, opts bson.Raw) *options.ClientOpt... function createAutoEncryptionOptions (line 128) | func createAutoEncryptionOptions(t testing.TB, opts bson.Raw) *options.A... function createTLSOptsMap (line 178) | func createTLSOptsMap(t testing.TB, opts bson.Raw) map[string]*tls.Config { function createKmsProvidersMap (line 204) | func createKmsProvidersMap(t testing.TB, opts bson.Raw) map[string]map[s... function createSessionOptions (line 280) | func createSessionOptions(t testing.TB, opts bson.Raw) *options.SessionO... function createDatabaseOptions (line 303) | func createDatabaseOptions(t testing.TB, opts bson.Raw) *options.Databas... function createCollectionOptions (line 326) | func createCollectionOptions(t testing.TB, opts bson.Raw) *options.Colle... function createTransactionOptions (line 351) | func createTransactionOptions(t testing.TB, opts bson.Raw) *options.Tran... function createReadConcern (line 377) | func createReadConcern(opt bson.RawValue) *readconcern.ReadConcern { function createWriteConcern (line 382) | func createWriteConcern(t testing.TB, opt bson.RawValue) *writeconcern.W... function readPrefFromString (line 420) | func readPrefFromString(s string) *readpref.ReadPref { function createReadPref (line 437) | func createReadPref(opt bson.RawValue) *readpref.ReadPref { function errorFromResult (line 443) | func errorFromResult(t testing.TB, result any) *operationError { type errorDetails (line 467) | type errorDetails struct function extractErrorDetails (line 474) | func extractErrorDetails(err error) (errorDetails, bool) { function verifyError (line 499) | func verifyError(expected *operationError, actual error) error { function getIntFromInterface (line 554) | func getIntFromInterface(i any) *int64 { function createCollation (line 584) | func createCollation(t testing.TB, m bson.Raw) *options.Collation { function convertValueToMilliseconds (line 615) | func convertValueToMilliseconds(t testing.TB, val bson.RawValue) time.Du... function stringSliceContains (line 625) | func stringSliceContains(stringSlice []string, target string) bool { FILE: internal/integration/load_balancer_prose_test.go function TestLoadBalancerSupport (line 24) | func TestLoadBalancerSupport(t *testing.T) { FILE: internal/integration/log_helpers_test.go type testLogSink (line 17) | type testLogSink struct method Info (line 61) | func (sink *testLogSink) Info(level int, msg string, keysAndValues ...... method Error (line 71) | func (sink *testLogSink) Error(err error, msg string, keysAndValues ..... method errs (line 76) | func (sink *testLogSink) errs() <-chan error { type logValidator (line 24) | type logValidator function newTestLogSink (line 26) | func newTestLogSink(ctx context.Context, mt *mtest.T, bufferSize int, va... function findLogValue (line 80) | func findLogValue(mt *mtest.T, key string, values ...any) any { type truncValidator (line 92) | type truncValidator function newTruncValidator (line 99) | func newTruncValidator(mt *mtest.T, key string, cond func(string) error)... FILE: internal/integration/main_test.go function TestMain (line 18) | func TestMain(m *testing.M) { FILE: internal/integration/mock_find_test.go type finder (line 21) | type finder interface type mockFinder (line 27) | type mockFinder struct method FindOne (line 34) | func (mf *mockFinder) FindOne(_ context.Context, _ any, _ ...options.L... method Find (line 39) | func (mf *mockFinder) Find(context.Context, any, ...options.Lister[opt... type ShopItem (line 44) | type ShopItem struct function getItem (line 50) | func getItem(f finder, id int) (*ShopItem, error) { function getItems (line 58) | func getItems(f finder) ([]ShopItem, error) { function TestMockFind (line 69) | func TestMockFind(t *testing.T) { FILE: internal/integration/mongointernal_test.go function TestNewSessionWithLSID (line 23) | func TestNewSessionWithLSID(t *testing.T) { FILE: internal/integration/mongos_pinning_test.go function TestMongosPinning (line 24) | func TestMongosPinning(t *testing.T) { function iterationErrmsg (line 102) | func iterationErrmsg(op string, i int, wrapped error) string { FILE: internal/integration/mtest/csfle_enabled.go function IsCSFLEEnabled (line 13) | func IsCSFLEEnabled() bool { FILE: internal/integration/mtest/csfle_not_enabled.go function IsCSFLEEnabled (line 13) | func IsCSFLEEnabled() bool { FILE: internal/integration/mtest/deployment_helpers.go type BatchIdentifier (line 14) | type BatchIdentifier constant FirstBatch (line 18) | FirstBatch BatchIdentifier = "firstBatch" constant NextBatch (line 19) | NextBatch BatchIdentifier = "nextBatch" type CommandError (line 23) | type CommandError struct type WriteError (line 31) | type WriteError struct type WriteConcernError (line 38) | type WriteConcernError struct function CreateCursorResponse (line 46) | func CreateCursorResponse(cursorID int64, ns string, identifier BatchIde... function CreateCommandErrorResponse (line 63) | func CreateCommandErrorResponse(ce CommandError) bson.D { function CreateWriteErrorsResponse (line 81) | func CreateWriteErrorsResponse(writeErrorrs ...WriteError) bson.D { function CreateWriteConcernErrorResponse (line 98) | func CreateWriteConcernErrorResponse(wce WriteConcernError) bson.D { function CreateSuccessResponse (line 115) | func CreateSuccessResponse(elems ...bson.E) bson.D { FILE: internal/integration/mtest/global_state.go function AuthEnabled (line 21) | func AuthEnabled() bool { function SSLEnabled (line 26) | func SSLEnabled() bool { function ClusterTopologyKind (line 31) | func ClusterTopologyKind() TopologyKind { function ClusterURI (line 36) | func ClusterURI() string { function Serverless (line 41) | func Serverless() bool { function SingleMongosLoadBalancerURI (line 47) | func SingleMongosLoadBalancerURI() string { function MultiMongosLoadBalancerURI (line 53) | func MultiMongosLoadBalancerURI() string { function ClusterConnString (line 58) | func ClusterConnString() *connstring.ConnString { function GlobalClient (line 64) | func GlobalClient() *mongo.Client { function GlobalTopology (line 69) | func GlobalTopology() *topology.Topology { function ServerVersion (line 75) | func ServerVersion() string { function SetFailPoint (line 80) | func SetFailPoint(fp failpoint.FailPoint, client *mongo.Client) error { function SetRawFailPoint (line 90) | func SetRawFailPoint(fp bson.Raw, client *mongo.Client) error { FILE: internal/integration/mtest/mongotest.go constant namespaceExistsErrCode (line 49) | namespaceExistsErrCode int32 = 48 type T (line 53) | type T struct method cleanup (line 149) | func (t *T) cleanup() { method Run (line 168) | func (t *T) Run(name string, callback func(mt *T)) { method Setup (line 175) | func (t *T) Setup() { method teardown (line 199) | func (t *T) teardown() { method RunOpts (line 226) | func (t *T) RunOpts(name string, opts *Options, callback func(mt *T)) { method AddMockResponses (line 238) | func (t *T) AddMockResponses(responses ...bson.D) { method ClearMockResponses (line 243) | func (t *T) ClearMockResponses() { method GetStartedEvent (line 249) | func (t *T) GetStartedEvent() *event.CommandStartedEvent { method GetSucceededEvent (line 260) | func (t *T) GetSucceededEvent() *event.CommandSucceededEvent { method GetFailedEvent (line 271) | func (t *T) GetFailedEvent() *event.CommandFailedEvent { method GetAllStartedEvents (line 282) | func (t *T) GetAllStartedEvents() []*event.CommandStartedEvent { method GetAllSucceededEvents (line 288) | func (t *T) GetAllSucceededEvents() []*event.CommandSucceededEvent { method GetAllFailedEvents (line 294) | func (t *T) GetAllFailedEvents() []*event.CommandFailedEvent { method FilterStartedEvents (line 301) | func (t *T) FilterStartedEvents(filter func(*event.CommandStartedEvent... method FilterSucceededEvents (line 314) | func (t *T) FilterSucceededEvents(filter func(*event.CommandSucceededE... method FilterFailedEvents (line 327) | func (t *T) FilterFailedEvents(filter func(*event.CommandFailedEvent) ... method GetProxyCapture (line 339) | func (t *T) GetProxyCapture() *ProxyCapture { method NumberConnectionsCheckedOut (line 347) | func (t *T) NumberConnectionsCheckedOut() int { method ClearEvents (line 352) | func (t *T) ClearEvents() { method ResetClient (line 362) | func (t *T) ResetClient(opts *options.ClientOptions) { method CreateCollection (line 407) | func (t *T) CreateCollection(coll Collection, createOnServer bool) *mo... method ClearCollections (line 480) | func (t *T) ClearCollections() { method SetFailPoint (line 505) | func (t *T) SetFailPoint(fp failpoint.FailPoint) { method SetFailPointFromDocument (line 550) | func (t *T) SetFailPointFromDocument(fp bson.Raw) { method TrackFailPoint (line 561) | func (t *T) TrackFailPoint(fpName string) { method ClearFailPoints (line 566) | func (t *T) ClearFailPoints() { method CloneDatabase (line 582) | func (t *T) CloneDatabase(opts *options.DatabaseOptionsBuilder) { method CloneCollection (line 587) | func (t *T) CloneCollection(opts *options.CollectionOptionsBuilder) { method createTestClient (line 604) | func (t *T) createTestClient() { method createTestCollection (line 704) | func (t *T) createTestCollection() { method verifyConstraints (line 831) | func (t *T) verifyConstraints() error { method interfaceToInt32 (line 874) | func (t *T) interfaceToInt32(i any) (int32, error) { function newT (line 100) | func newT(wrapped *testing.T, opts ...*Options) *T { function New (line 133) | func New(wrapped *testing.T, opts ...*Options) *T { type Collection (line 392) | type Collection struct function DropEncryptedCollection (line 454) | func DropEncryptedCollection(t *T, coll *mongo.Collection, encryptedFiel... function sanitizeCollectionName (line 591) | func sanitizeCollectionName(db string, coll string) string { function verifyVersionConstraints (line 720) | func verifyVersionConstraints(min, max string) error { function verifyTopologyConstraints (line 732) | func verifyTopologyConstraints(topologies []TopologyKind) error { function verifyServerParametersConstraints (line 747) | func verifyServerParametersConstraints(serverParameters map[string]bson.... function verifyAuthConstraint (line 760) | func verifyAuthConstraint(expected *bool) error { function verifyServerlessConstraint (line 767) | func verifyServerlessConstraint(expected string) error { function verifyRunOnBlockConstraint (line 785) | func verifyRunOnBlockConstraint(rob RunOnBlock) error { FILE: internal/integration/mtest/options.go type TopologyKind (line 18) | type TopologyKind constant ReplicaSet (line 22) | ReplicaSet TopologyKind = "replicaset" constant Sharded (line 23) | Sharded TopologyKind = "sharded" constant Single (line 24) | Single TopologyKind = "single" constant LoadBalanced (line 25) | LoadBalanced TopologyKind = "load-balanced" constant ShardedReplicaSet (line 28) | ShardedReplicaSet TopologyKind = "sharded-replicaset" type ClientType (line 32) | type ClientType constant Default (line 38) | Default ClientType = iota constant Pinned (line 40) | Pinned constant Mock (line 42) | Mock constant Proxy (line 45) | Proxy type CSFLEOptions (line 52) | type CSFLEOptions struct type CSFLE (line 63) | type CSFLE struct method UnmarshalBSON (line 72) | func (csfle *CSFLE) UnmarshalBSON(data []byte) error { type RunOnBlock (line 92) | type RunOnBlock struct method CSFLEEnabled (line 106) | func (r *RunOnBlock) CSFLEEnabled() bool { method CSFLEDisabled (line 113) | func (r *RunOnBlock) CSFLEDisabled() bool { method UnmarshalBSON (line 119) | func (r *RunOnBlock) UnmarshalBSON(data []byte) error { type optionFunc (line 161) | type optionFunc type Options (line 164) | type Options struct method CollectionCreateOptions (line 174) | func (op *Options) CollectionCreateOptions(opts *options.CreateCollect... method CollectionOptions (line 182) | func (op *Options) CollectionOptions(opts *options.CollectionOptionsBu... method ClientOptions (line 190) | func (op *Options) ClientOptions(opts *options.ClientOptions) *Options { method CreateClient (line 199) | func (op *Options) CreateClient(create bool) *Options { method CreateCollection (line 207) | func (op *Options) CreateCollection(create bool) *Options { method CollectionName (line 215) | func (op *Options) CollectionName(collName string) *Options { method DatabaseName (line 223) | func (op *Options) DatabaseName(dbName string) *Options { method ClientType (line 233) | func (op *Options) ClientType(ct ClientType) *Options { method MockResponses (line 246) | func (op *Options) MockResponses(responses ...bson.D) *Options { method RunOn (line 255) | func (op *Options) RunOn(blocks ...RunOnBlock) *Options { method MinServerVersion (line 263) | func (op *Options) MinServerVersion(version string) *Options { method MaxServerVersion (line 271) | func (op *Options) MaxServerVersion(version string) *Options { method Topologies (line 279) | func (op *Options) Topologies(topos ...TopologyKind) *Options { method Auth (line 288) | func (op *Options) Auth(auth bool) *Options { method SSL (line 297) | func (op *Options) SSL(ssl bool) *Options { method Enterprise (line 305) | func (op *Options) Enterprise(ent bool) *Options { method RequireAPIVersion (line 313) | func (op *Options) RequireAPIVersion(rav bool) *Options { method AllowFailPointsOnSharded (line 328) | func (op *Options) AllowFailPointsOnSharded() *Options { function NewOptions (line 169) | func NewOptions() *Options { FILE: internal/integration/mtest/proxy_capture.go type ProxyCapture (line 15) | type ProxyCapture struct method Capture (line 26) | func (hc *ProxyCapture) Capture(msg *ProxyMessage) { method TryNext (line 33) | func (hc *ProxyCapture) TryNext() *ProxyMessage { method Drain (line 43) | func (hc *ProxyCapture) Drain() []*ProxyMessage { function newProxyCapture (line 20) | func newProxyCapture(bufferSize int) *ProxyCapture { FILE: internal/integration/mtest/proxy_dialer.go type ProxyMessage (line 24) | type ProxyMessage struct method IsHandshake (line 181) | func (msg *ProxyMessage) IsHandshake() bool { type proxyDialer (line 33) | type proxyDialer struct method DialContext (line 62) | func (p *proxyDialer) DialContext(ctx context.Context, network, addres... method storeSentMessage (line 82) | func (p *proxyDialer) storeSentMessage(wm []byte) error { method storeReceivedMessage (line 97) | func (p *proxyDialer) storeReceivedMessage(wm []byte, addr string) err... function newProxyDialer (line 50) | func newProxyDialer() *proxyDialer { function newProxyErrorWithWireMsg (line 57) | func newProxyErrorWithWireMsg(wm []byte, err error) error { type proxyConn (line 136) | type proxyConn struct method Write (line 143) | func (pc *proxyConn) Write(wm []byte) (n int, err error) { method Read (line 154) | func (pc *proxyConn) Read(buffer []byte) (int, error) { FILE: internal/integration/mtest/received_message.go type ReceivedMessage (line 18) | type ReceivedMessage struct type receivedMsgParseFn (line 24) | type receivedMsgParseFn function getReceivedMessageParser (line 26) | func getReceivedMessageParser(opcode wiremessage.OpCode) (receivedMsgPar... function parseReceivedMessage (line 39) | func parseReceivedMessage(wm []byte) (*ReceivedMessage, error) { function parseOpReply (line 60) | func parseOpReply(wm []byte) (*ReceivedMessage, error) { function parseReceivedOpMsg (line 91) | func parseReceivedOpMsg(wm []byte) (*ReceivedMessage, error) { function parseReceivedOpCompressed (line 113) | func parseReceivedOpCompressed(wm []byte) (*ReceivedMessage, error) { FILE: internal/integration/mtest/sent_message.go type SentMessage (line 18) | type SentMessage struct type sentMsgParseFn (line 36) | type sentMsgParseFn function getSentMessageParser (line 38) | func getSentMessageParser(opcode wiremessage.OpCode) (sentMsgParseFn, bo... function parseOpQuery (line 51) | func parseOpQuery(wm []byte) (*SentMessage, error) { function parseSentMessage (line 113) | func parseSentMessage(wm []byte) (*SentMessage, error) { function parseSentOpMsg (line 135) | func parseSentOpMsg(wm []byte) (*SentMessage, error) { function parseSentOpCompressed (line 184) | func parseSentOpCompressed(wm []byte) (*SentMessage, error) { FILE: internal/integration/mtest/setup.go constant TestDB (line 33) | TestDB = "test" function setupClient (line 60) | func setupClient(opts *options.ClientOptions) (*mongo.Client, error) { function Setup (line 73) | func Setup(setupOpts ...*SetupOptions) error { function Teardown (line 236) | func Teardown() error { function getServerVersion (line 252) | func getServerVersion() (string, error) { function addOptions (line 271) | func addOptions(uri string, opts ...string) string { function addTLSConfig (line 291) | func addTLSConfig(uri string) string { function addCompressors (line 305) | func addCompressors(uri string) string { function addServerlessAuthCredentials (line 314) | func addServerlessAuthCredentials(uri string) (string, error) { function addNecessaryParamsToURI (line 342) | func addNecessaryParamsToURI(uri string) (string, error) { function CompareServerVersions (line 354) | func CompareServerVersions(v1 string, v2 string) int { FILE: internal/integration/mtest/setup_options.go type SetupOptions (line 10) | type SetupOptions struct method SetURI (line 22) | func (so *SetupOptions) SetURI(uri string) *SetupOptions { function NewSetupOptions (line 17) | func NewSetupOptions() *SetupOptions { FILE: internal/integration/mtest/wiremessage_helpers.go function copyBytes (line 17) | func copyBytes(original []byte) []byte { function assertMsgSectionType (line 26) | func assertMsgSectionType(wm []byte, expected wiremessage.SectionType) (... function parseOpCompressed (line 40) | func parseOpCompressed(wm []byte) (wiremessage.OpCode, []byte, error) { FILE: internal/integration/primary_stepdown_test.go constant errorNotPrimary (line 23) | errorNotPrimary int32 = 10107 constant errorShutdownInProgress (line 24) | errorShutdownInProgress int32 = 91 constant errorInterruptedAtShutdown (line 25) | errorInterruptedAtShutdown int32 = 11600 function TestConnectionsSurvivePrimaryStepDown (line 28) | func TestConnectionsSurvivePrimaryStepDown(t *testing.T) { FILE: internal/integration/retryable_reads_prose_test.go function TestRetryableReadsProse (line 27) | func TestRetryableReadsProse(t *testing.T) { FILE: internal/integration/retryable_writes_prose_test.go function TestRetryableWritesProse (line 31) | func TestRetryableWritesProse(t *testing.T) { type crudOperation (line 389) | type crudOperation struct type crudOutcome (line 394) | type crudOutcome struct function runCrudOperation (line 402) | func runCrudOperation(mt *mtest.T, testDescription string, operation cru... function verifyCrudError (line 584) | func verifyCrudError(mt *mtest.T, outcome crudOutcome, err error) { FILE: internal/integration/sdam_error_handling_test.go function TestSDAMErrorHandling (line 27) | func TestSDAMErrorHandling(t *testing.T) { function runServerErrorsTest (line 316) | func runServerErrorsTest(mt *mtest.T, isShutdownError bool, tpm *eventte... FILE: internal/integration/sdam_prose_test.go function TestSDAMProse (line 34) | func TestSDAMProse(t *testing.T) { function TestServerHeartbeatStartedEvent (line 188) | func TestServerHeartbeatStartedEvent(t *testing.T) { function TestConnectionPoolBackpressure (line 289) | func TestConnectionPoolBackpressure(t *testing.T) { FILE: internal/integration/search_index_prose_test.go function TestSearchIndexProse (line 28) | func TestSearchIndexProse(t *testing.T) { FILE: internal/integration/server_selection_prose_test.go type saturatedConnections (line 27) | type saturatedConnections type saturatedHosts (line 30) | type saturatedHosts method add (line 32) | func (set saturatedHosts) add(host string, connectionID int64) { method isSaturated (line 40) | func (set saturatedHosts) isSaturated(tolerance uint64) bool { function awaitSaturation (line 54) | func awaitSaturation(ctx context.Context, mt *mtest.T, monitor *eventtes... function runsServerSelection (line 78) | func runsServerSelection(mt *mtest.T, monitor *eventtest.TestPoolMonitor, function TestServerSelectionProse (line 110) | func TestServerSelectionProse(t *testing.T) { FILE: internal/integration/sessions_mongocryptd_prose_test.go type mongocryptdProcess (line 29) | type mongocryptdProcess struct method start (line 34) | func (p *mongocryptdProcess) start(port int) error { method close (line 47) | func (p *mongocryptdProcess) close() error { function newTestSessionMongocryptdProseClient (line 69) | func newTestSessionMongocryptdProseClient(mt *mtest.T) *mongo.Client { function TestSessionsMongocryptdProse (line 110) | func TestSessionsMongocryptdProse(t *testing.T) { FILE: internal/integration/sessions_test.go function TestSessionPool (line 35) | func TestSessionPool(t *testing.T) { function TestSessions (line 55) | func TestSessions(t *testing.T) { function TestSessionsProse (line 162) | func TestSessionsProse(t *testing.T) { function TestSessionsProse_21_SettingSnapshotTimeWithoutSnapshot (line 587) | func TestSessionsProse_21_SettingSnapshotTimeWithoutSnapshot(t *testing.... function TestSessionsProse_22_SnapshotTimeGetterReturnsErrorForNonSnapshotSessions (line 607) | func TestSessionsProse_22_SnapshotTimeGetterReturnsErrorForNonSnapshotSe... function TestSessionsProse_23_EnsureSnapshotTimeIsImmutable (line 612) | func TestSessionsProse_23_EnsureSnapshotTimeIsImmutable(t *testing.T) { function TestSession_TransactionRunning (line 639) | func TestSession_TransactionRunning(t *testing.T) { type sessionFunction (line 692) | type sessionFunction struct method execute (line 699) | func (sf sessionFunction) execute(mt *mtest.T, sess *mongo.Session) er... function createFunctionsSlice (line 737) | func createFunctionsSlice() []sessionFunction { function assertCollectionCount (line 773) | func assertCollectionCount(mt *mtest.T, expectedCount int64) { function sessionIDsEqual (line 781) | func sessionIDsEqual(mt *mtest.T, id1, id2 bson.Raw) bool { function interfaceSliceToValueSlice (line 792) | func interfaceSliceToValueSlice(args []any) []reflect.Value { function extractReturnError (line 800) | func extractReturnError(returnValues []reflect.Value) error { function extractSentSessionID (line 814) | func extractSentSessionID(mt *mtest.T) []byte { FILE: internal/integration/unified/admin_helpers.go function terminateOpenSessions (line 28) | func terminateOpenSessions(ctx context.Context) error { function performDistinctWorkaround (line 64) | func performDistinctWorkaround(ctx context.Context) error { function runCommandOnHost (line 81) | func runCommandOnHost(ctx context.Context, host string, commandFn func(c... function runAgainstAllMongoses (line 96) | func runAgainstAllMongoses(ctx context.Context, commandFn func(context.C... FILE: internal/integration/unified/bsonutil.go function documentToRawValue (line 22) | func documentToRawValue(doc bson.Raw) bson.RawValue { function removeFieldsFromDocument (line 29) | func removeFieldsFromDocument(doc bson.Raw, keys ...string) bson.Raw { function sortDocument (line 49) | func sortDocument(doc bson.Raw) bson.Raw { function lookupString (line 68) | func lookupString(doc bson.Raw, key string) string { function lookupInteger (line 72) | func lookupInteger(doc bson.Raw, key string) int64 { function mapKeys (line 76) | func mapKeys(m map[string]any) []string { FILE: internal/integration/unified/bucket_options.go type gridFSBucketOptions (line 19) | type gridFSBucketOptions struct method UnmarshalBSON (line 25) | func (bo *gridFSBucketOptions) UnmarshalBSON(data []byte) error { FILE: internal/integration/unified/bulkwrite_helpers.go function createBulkWriteModels (line 30) | func createBulkWriteModels(rawModels bson.RawArray) ([]mongo.WriteModel,... function createBulkWriteModel (line 45) | func createBulkWriteModel(rawModel bson.Raw) (mongo.WriteModel, error) { function createUpdateValue (line 279) | func createUpdateValue(updateVal bson.RawValue) (any, error) { FILE: internal/integration/unified/client_encryption_operation_execution.go function parseDataKeyOptions (line 21) | func parseDataKeyOptions(opts bson.Raw) (*options.DataKeyOptionsBuilder,... function executeAddKeyAltName (line 58) | func executeAddKeyAltName(ctx context.Context, operation *operation) (*o... function executeCreateDataKey (line 96) | func executeCreateDataKey(ctx context.Context, operation *operation) (*o... function executeDeleteKey (line 142) | func executeDeleteKey(ctx context.Context, operation *operation) (*opera... function executeGetKeyByAltName (line 178) | func executeGetKeyByAltName(ctx context.Context, operation *operation) (... function executeGetKey (line 213) | func executeGetKey(ctx context.Context, operation *operation) (*operatio... function executeGetKeys (line 249) | func executeGetKeys(ctx context.Context, operation *operation) (*operati... function executeRemoveKeyAltName (line 266) | func executeRemoveKeyAltName(ctx context.Context, operation *operation) ... function parseRewrapManyDataKeyOptions (line 305) | func parseRewrapManyDataKeyOptions(opts bson.Raw) (*options.RewrapManyDa... function rewrapManyDataKeyResultsOpResult (line 328) | func rewrapManyDataKeyResultsOpResult(result *mongo.RewrapManyDataKeyRes... function executeRewrapManyDataKey (line 353) | func executeRewrapManyDataKey(ctx context.Context, operation *operation)... function executeDecrypt (line 396) | func executeDecrypt(ctx context.Context, operation *operation) (*operati... FILE: internal/integration/unified/client_entity.go constant defaultMaxDocumentLen (line 35) | defaultMaxDocumentLen = 10_000 type clientEntity (line 45) | type clientEntity struct method disconnect (line 334) | func (c *clientEntity) disconnect(ctx context.Context) error { method stopListeningForEvents (line 348) | func (c *clientEntity) stopListeningForEvents() { method isIgnoredEvent (line 352) | func (c *clientEntity) isIgnoredEvent(commandName string, eventDoc bso... method startedEvents (line 371) | func (c *clientEntity) startedEvents() []*event.CommandStartedEvent { method succeededEvents (line 382) | func (c *clientEntity) succeededEvents() []*event.CommandSucceededEvent { method failedEvents (line 393) | func (c *clientEntity) failedEvents() []*event.CommandFailedEvent { method poolEvents (line 404) | func (c *clientEntity) poolEvents() []*event.PoolEvent { method numberConnectionsCheckedOut (line 408) | func (c *clientEntity) numberConnectionsCheckedOut() int32 { method addEventsCount (line 412) | func (c *clientEntity) addEventsCount(eventType monitoringEventType) { method addServerDescriptionChangedEventCount (line 419) | func (c *clientEntity) addServerDescriptionChangedEventCount(evt serve... method getEventCount (line 426) | func (c *clientEntity) getEventCount(eventType monitoringEventType) in... method getServerDescriptionChangedEventCount (line 433) | func (c *clientEntity) getServerDescriptionChangedEventCount(expected ... method processStartedEvent (line 464) | func (c *clientEntity) processStartedEvent(_ context.Context, evt *eve... method processSucceededEvent (line 494) | func (c *clientEntity) processSucceededEvent(_ context.Context, evt *e... method processFailedEvent (line 523) | func (c *clientEntity) processFailedEvent(_ context.Context, evt *even... method resetEventHistory (line 554) | func (c *clientEntity) resetEventHistory() { method latestTopology (line 568) | func (c *clientEntity) latestTopology() event.TopologyDescription { method processPoolEvent (line 600) | func (c *clientEntity) processPoolEvent(evt *event.PoolEvent) { method connsReady (line 639) | func (c *clientEntity) connsReady(server event.ServerDescription) int { method processServerDescriptionChangedEvent (line 651) | func (c *clientEntity) processServerDescriptionChangedEvent(evt *event... method processServerHeartbeatFailedEvent (line 670) | func (c *clientEntity) processServerHeartbeatFailedEvent(evt *event.Se... method processServerHeartbeatStartedEvent (line 685) | func (c *clientEntity) processServerHeartbeatStartedEvent(evt *event.S... method processServerHeartbeatSucceededEvent (line 700) | func (c *clientEntity) processServerHeartbeatSucceededEvent(evt *event... method processTopologyDescriptionChangedEvent (line 715) | func (c *clientEntity) processTopologyDescriptionChangedEvent(evt *eve... method processTopologyOpeningEvent (line 732) | func (c *clientEntity) processTopologyOpeningEvent(evt *event.Topology... method processTopologyClosedEvent (line 747) | func (c *clientEntity) processTopologyClosedEvent(evt *event.TopologyC... method setRecordEvents (line 762) | func (c *clientEntity) setRecordEvents(record bool) { method getRecordEvents (line 766) | func (c *clientEntity) getRecordEvents() bool { function newClientEntity (line 82) | func newClientEntity(ctx context.Context, em *EntityMap, entityOptions *... function getURIForClient (line 237) | func getURIForClient(opts *entityOptions) string { function createAutoEncryptionOptions (line 253) | func createAutoEncryptionOptions(opts bson.Raw) (*options.AutoEncryption... function getSecondsSinceEpoch (line 460) | func getSecondsSinceEpoch() float64 { function getPoolEventDocument (line 575) | func getPoolEventDocument(evt *event.PoolEvent, eventType monitoringEven... function setClientOptionsFromURIOptions (line 770) | func setClientOptionsFromURIOptions(clientOpts *options.ClientOptions, u... function evaluateUseMultipleMongoses (line 835) | func evaluateUseMultipleMongoses(clientOpts *options.ClientOptions, useM... function awaitMinimumPoolSize (line 852) | func awaitMinimumPoolSize(ctx context.Context, entity *clientEntity, min... FILE: internal/integration/unified/client_operation_execution.go function executeCreateChangeStream (line 27) | func executeCreateChangeStream(ctx context.Context, operation *operation... function executeListDatabases (line 121) | func executeListDatabases(ctx context.Context, operation *operation, nam... function executeClientBulkWrite (line 171) | func executeClientBulkWrite(ctx context.Context, operation *operation) (... function executeAppendMetadata (line 310) | func executeAppendMetadata(ctx context.Context, op *operation) (*operati... function createClientInsertOneModel (line 338) | func createClientInsertOneModel(value bson.Raw) (*mongo.ClientBulkWrite,... function createClientUpdateOneModel (line 357) | func createClientUpdateOneModel(value bson.Raw) (*mongo.ClientBulkWrite,... function createClientUpdateManyModel (line 402) | func createClientUpdateManyModel(value bson.Raw) (*mongo.ClientBulkWrite... function createClientReplaceOneModel (line 441) | func createClientReplaceOneModel(value bson.Raw) (*mongo.ClientBulkWrite... function createClientDeleteOneModel (line 481) | func createClientDeleteOneModel(value bson.Raw) (*mongo.ClientBulkWrite,... function createClientDeleteManyModel (line 511) | func createClientDeleteManyModel(value bson.Raw) (*mongo.ClientBulkWrite... FILE: internal/integration/unified/collection_data.go type collectionData (line 22) | type collectionData struct method createCollection (line 38) | func (c *collectionData) createCollection(ctx context.Context) error { method verifyContents (line 91) | func (c *collectionData) verifyContents(ctx context.Context) error { method namespace (line 128) | func (c *collectionData) namespace() string { type createOptions (line 29) | type createOptions struct FILE: internal/integration/unified/collection_operation_execution.go function executeAggregate (line 27) | func executeAggregate(ctx context.Context, operation *operation) (*opera... function executeBulkWrite (line 105) | func executeBulkWrite(ctx context.Context, operation *operation) (*opera... function executeCountDocuments (line 171) | func executeCountDocuments(ctx context.Context, operation *operation) (*... function executeCreateIndex (line 236) | func executeCreateIndex(ctx context.Context, operation *operation) (*ope... function executeCreateSearchIndex (line 321) | func executeCreateSearchIndex(ctx context.Context, operation *operation)... function executeCreateSearchIndexes (line 366) | func executeCreateSearchIndexes(ctx context.Context, operation *operatio... function executeDeleteOne (line 423) | func executeDeleteOne(ctx context.Context, operation *operation) (*opera... function executeDeleteMany (line 482) | func executeDeleteMany(ctx context.Context, operation *operation) (*oper... function executeDistinct (line 541) | func executeDistinct(ctx context.Context, operation *operation) (*operat... function executeDropIndex (line 610) | func executeDropIndex(ctx context.Context, operation *operation) (*opera... function executeDropIndexes (line 651) | func executeDropIndexes(ctx context.Context, operation *operation) (*ope... function executeDropSearchIndex (line 679) | func executeDropSearchIndex(ctx context.Context, operation *operation) (... function executeEstimatedDocumentCount (line 707) | func executeEstimatedDocumentCount(ctx context.Context, operation *opera... function executeCreateFindCursor (line 753) | func executeCreateFindCursor(ctx context.Context, operation *operation) ... function executeFind (line 771) | func executeFind(ctx context.Context, operation *operation) (*operationR... function executeFindOne (line 787) | func executeFindOne(ctx context.Context, operation *operation) (*operati... function executeFindOneAndDelete (line 846) | func executeFindOneAndDelete(ctx context.Context, operation *operation) ... function executeFindOneAndReplace (line 917) | func executeFindOneAndReplace(ctx context.Context, operation *operation)... function executeFindOneAndUpdate (line 1007) | func executeFindOneAndUpdate(ctx context.Context, operation *operation) ... function executeInsertMany (line 1104) | func executeInsertMany(ctx context.Context, operation *operation) (*oper... function executeInsertOne (line 1159) | func executeInsertOne(ctx context.Context, operation *operation) (*opera... function executeListIndexes (line 1210) | func executeListIndexes(ctx context.Context, operation *operation) (*ope... function executeListSearchIndexes (line 1254) | func executeListSearchIndexes(ctx context.Context, operation *operation)... function executeRenameCollection (line 1296) | func executeRenameCollection(ctx context.Context, operation *operation) ... function executeReplaceOne (line 1338) | func executeReplaceOne(ctx context.Context, operation *operation) (*oper... function executeUpdateOne (line 1401) | func executeUpdateOne(ctx context.Context, operation *operation) (*opera... function executeUpdateMany (line 1420) | func executeUpdateMany(ctx context.Context, operation *operation) (*oper... function executeUpdateSearchIndex (line 1439) | func executeUpdateSearchIndex(ctx context.Context, operation *operation)... function buildUpdateResultDocument (line 1473) | func buildUpdateResultDocument(res *mongo.UpdateResult) (bsoncore.Docume... type cursorResult (line 1493) | type cursorResult struct function createFindCursor (line 1498) | func createFindCursor(ctx context.Context, operation *operation) (*curso... FILE: internal/integration/unified/common_options.go type readConcern (line 22) | type readConcern struct method toReadConcernOption (line 26) | func (rc *readConcern) toReadConcernOption() *readconcern.ReadConcern { type writeConcern (line 30) | type writeConcern struct method toWriteConcernOption (line 35) | func (wc *writeConcern) toWriteConcernOption() (*writeconcern.WriteCon... type ReadPreference (line 58) | type ReadPreference struct method ToReadPrefOption (line 67) | func (rp *ReadPreference) ToReadPrefOption() (*readpref.ReadPref, erro... FILE: internal/integration/unified/context.go type ctxKey (line 17) | type ctxKey constant operationalFailPointKey (line 24) | operationalFailPointKey ctxKey = "operational-fail-point" constant entitiesKey (line 26) | entitiesKey ctxKey = "test-entities" constant failPointsKey (line 28) | failPointsKey ctxKey = "test-failpoints" constant targetedFailPointsKey (line 30) | targetedFailPointsKey ctxKey = "test-targeted-failpoints" constant clientLogMessagesKey (line 31) | clientLogMessagesKey ctxKey = "test-expected-log-message-count" constant ignoreLogMessagesKey (line 32) | ignoreLogMessagesKey ctxKey = "test-ignore-log-message-count" function newTestContext (line 37) | func newTestContext( function addFailPoint (line 51) | func addFailPoint(ctx context.Context, failPoint string, client *mongo.C... function addTargetedFailPoint (line 56) | func addTargetedFailPoint(ctx context.Context, failPoint string, host st... function failPoints (line 66) | func failPoints(ctx context.Context) map[string]*mongo.Client { function hasOperationalFailpoint (line 70) | func hasOperationalFailpoint(ctx context.Context) bool { function targetedFailPoints (line 74) | func targetedFailPoints(ctx context.Context) map[string]string { function entities (line 78) | func entities(ctx context.Context) *EntityMap { function expectedLogMessagesCount (line 82) | func expectedLogMessagesCount(ctx context.Context, clientID string) int { function ignoreLogMessages (line 95) | func ignoreLogMessages(ctx context.Context, clientID string) []*logMessa... FILE: internal/integration/unified/crud_helpers.go function newMissingArgumentError (line 20) | func newMissingArgumentError(arg string) error { type updateArguments (line 24) | type updateArguments struct function createUpdateManyArguments (line 29) | func createUpdateManyArguments(args bson.Raw) (*updateArguments, *option... function createUpdateOneArguments (line 90) | func createUpdateOneArguments(args bson.Raw) (*updateArguments, *options... type listCollectionsArguments (line 153) | type listCollectionsArguments struct function createListCollectionsArguments (line 158) | func createListCollectionsArguments(args bson.Raw) (*listCollectionsArgu... function createCollation (line 189) | func createCollation(args bson.Raw) (*options.Collation, error) { function createHint (line 220) | func createHint(val bson.RawValue) (any, error) { FILE: internal/integration/unified/cursor_entity.go type cursor (line 16) | type cursor interface FILE: internal/integration/unified/cursor_operation_execution.go function executeIterateOnce (line 16) | func executeIterateOnce(ctx context.Context, operation *operation) (*ope... function executeIterateUntilDocumentOrError (line 36) | func executeIterateUntilDocumentOrError(ctx context.Context, operation *... FILE: internal/integration/unified/database_operation_execution.go function executeCreateView (line 21) | func executeCreateView(ctx context.Context, operation *operation) (*oper... function executeCreateCollection (line 63) | func executeCreateCollection(ctx context.Context, operation *operation) ... function executeDropCollection (line 157) | func executeDropCollection(ctx context.Context, operation *operation) (*... function executeListCollections (line 188) | func executeListCollections(ctx context.Context, operation *operation) (... function executeListCollectionNames (line 212) | func executeListCollectionNames(ctx context.Context, operation *operatio... function executeModifyCollection (line 234) | func executeModifyCollection(ctx context.Context, operation *operation) ... function executeRunCommand (line 265) | func executeRunCommand(ctx context.Context, operation *operation) (*oper... function executeRunCursorCommand (line 316) | func executeRunCursorCommand(ctx context.Context, operation *operation) ... function executeCreateRunCursorCommand (line 393) | func executeCreateRunCursorCommand(ctx context.Context, operation *opera... FILE: internal/integration/unified/db_collection_options.go type dbOrCollectionOptions (line 16) | type dbOrCollectionOptions struct method UnmarshalBSON (line 25) | func (d *dbOrCollectionOptions) UnmarshalBSON(data []byte) error { FILE: internal/integration/unified/entity.go constant defaultLocalKeyBase64 (line 43) | defaultLocalKeyBase64 = "Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh... type storeEventsAsEntitiesConfig (line 45) | type storeEventsAsEntitiesConfig struct type observeLogMessages (line 50) | type observeLogMessages struct type entityOptions (line 59) | type entityOptions struct method setHeartbeatFrequencyMS (line 102) | func (eo *entityOptions) setHeartbeatFrequencyMS(freq time.Duration) { function newCollectionEntityOptions (line 117) | func newCollectionEntityOptions(id string, databaseID string, collection... type task (line 130) | type task struct type backgroundRoutine (line 135) | type backgroundRoutine struct method start (line 141) | func (b *backgroundRoutine) start() { method stop (line 168) | func (b *backgroundRoutine) stop() error { method addTask (line 174) | func (b *backgroundRoutine) addTask(name string, execute func() error)... function newBackgroundRoutine (line 186) | func newBackgroundRoutine() *backgroundRoutine { type clientEncryptionOpts (line 194) | type clientEncryptionOpts struct type EntityMap (line 205) | type EntityMap struct method isClosed (line 228) | func (em *EntityMap) isClosed() bool { method setClosed (line 232) | func (em *EntityMap) setClosed(val bool) { method addBSONEntity (line 257) | func (em *EntityMap) addBSONEntity(id string, val any) error { method addCursorEntity (line 284) | func (em *EntityMap) addCursorEntity(id string, cursor cursor) error { method addBSONArrayEntity (line 294) | func (em *EntityMap) addBSONArrayEntity(id string) error { method addSuccessesEntity (line 308) | func (em *EntityMap) addSuccessesEntity(id string) error { method addIterationsEntity (line 318) | func (em *EntityMap) addIterationsEntity(id string) error { method addEventsEntity (line 328) | func (em *EntityMap) addEventsEntity(id string) error { method incrementSuccesses (line 337) | func (em *EntityMap) incrementSuccesses(id string) error { method incrementIterations (line 345) | func (em *EntityMap) incrementIterations(id string) error { method appendEventsEntity (line 353) | func (em *EntityMap) appendEventsEntity(id string, doc bson.Raw) { method appendBSONArrayEntity (line 361) | func (em *EntityMap) appendBSONArrayEntity(id string, doc bson.Raw) er... method addEntity (line 369) | func (em *EntityMap) addEntity(ctx context.Context, entityType string,... method gridFSBucket (line 403) | func (em *EntityMap) gridFSBucket(id string) (*mongo.GridFSBucket, err... method cursor (line 411) | func (em *EntityMap) cursor(id string) (cursor, error) { method client (line 419) | func (em *EntityMap) client(id string) (*clientEntity, error) { method clientEncryption (line 427) | func (em *EntityMap) clientEncryption(id string) (*mongo.ClientEncrypt... method clients (line 435) | func (em *EntityMap) clients() map[string]*clientEntity { method collections (line 439) | func (em *EntityMap) collections() map[string]*mongo.Collection { method collection (line 443) | func (em *EntityMap) collection(id string) (*mongo.Collection, error) { method database (line 451) | func (em *EntityMap) database(id string) (*mongo.Database, error) { method session (line 459) | func (em *EntityMap) session(id string) (*mongo.Session, error) { method BSONValue (line 468) | func (em *EntityMap) BSONValue(id string) (bson.RawValue, error) { method EventList (line 478) | func (em *EntityMap) EventList(id string) ([]bson.Raw, error) { method BSONArray (line 491) | func (em *EntityMap) BSONArray(id string) ([]bson.Raw, error) { method Successes (line 503) | func (em *EntityMap) Successes(id string) (int32, error) { method Iterations (line 512) | func (em *EntityMap) Iterations(id string) (int32, error) { method close (line 521) | func (em *EntityMap) close(ctx context.Context) []error { method addClientEntity (line 571) | func (em *EntityMap) addClientEntity(ctx context.Context, entityOption... method addDatabaseEntity (line 592) | func (em *EntityMap) addDatabaseEntity(entityOptions *entityOptions) e... method addClientEncryptionEntity (line 736) | func (em *EntityMap) addClientEncryptionEntity(entityOptions *entityOp... method addCollectionEntity (line 786) | func (em *EntityMap) addCollectionEntity(entityOptions *entityOptions)... method addSessionEntity (line 801) | func (em *EntityMap) addSessionEntity(entityOptions *entityOptions) er... method addGridFSBucketEntity (line 837) | func (em *EntityMap) addGridFSBucketEntity(entityOptions *entityOption... method verifyEntityDoesNotExist (line 852) | func (em *EntityMap) verifyEntityDoesNotExist(id string) error { function newEntityMap (line 236) | func newEntityMap() *EntityMap { function getKmsCredential (line 610) | func getKmsCredential(kmsDocument bson.Raw, credentialName string, envVa... function getKmsProvider (line 646) | func getKmsProvider(key string, opt bson.Raw) (map[string]any, error) { function newEntityNotFoundError (line 859) | func newEntityNotFoundError(entityType, entityID string) error { FILE: internal/integration/unified/entity_test.go function TestEntityMap (line 17) | func TestEntityMap(t *testing.T) { FILE: internal/integration/unified/error.go type expectedError (line 21) | type expectedError struct type clientBulkWriteException (line 35) | type clientBulkWriteException struct function verifyOperationError (line 43) | func verifyOperationError(ctx context.Context, expected *expectedError, ... type errorDetails (line 182) | type errorDetails struct function extractErrorDetails (line 191) | func extractErrorDetails(err error) (errorDetails, bool) { function stringSliceContains (line 232) | func stringSliceContains(arr []string, target string) bool { FILE: internal/integration/unified/event.go type monitoringEventType (line 16) | type monitoringEventType constant commandStartedEvent (line 19) | commandStartedEvent monitoringEventType = "CommandStartedEvent" constant commandSucceededEvent (line 20) | commandSucceededEvent monitoringEventType = "CommandSucceededE... constant commandFailedEvent (line 21) | commandFailedEvent monitoringEventType = "CommandFailedEvent" constant poolCreatedEvent (line 22) | poolCreatedEvent monitoringEventType = "PoolCreatedEvent" constant poolReadyEvent (line 23) | poolReadyEvent monitoringEventType = "PoolReadyEvent" constant poolClearedEvent (line 24) | poolClearedEvent monitoringEventType = "PoolClearedEvent" constant poolClosedEvent (line 25) | poolClosedEvent monitoringEventType = "PoolClosedEvent" constant connectionCreatedEvent (line 26) | connectionCreatedEvent monitoringEventType = "ConnectionCreated... constant connectionReadyEvent (line 27) | connectionReadyEvent monitoringEventType = "ConnectionReadyEv... constant connectionClosedEvent (line 28) | connectionClosedEvent monitoringEventType = "ConnectionClosedE... constant connectionCheckOutStartedEvent (line 29) | connectionCheckOutStartedEvent monitoringEventType = "ConnectionCheckOu... constant connectionCheckOutFailedEvent (line 30) | connectionCheckOutFailedEvent monitoringEventType = "ConnectionCheckOu... constant connectionCheckedOutEvent (line 31) | connectionCheckedOutEvent monitoringEventType = "ConnectionChecked... constant connectionCheckedInEvent (line 32) | connectionCheckedInEvent monitoringEventType = "ConnectionChecked... constant serverDescriptionChangedEvent (line 33) | serverDescriptionChangedEvent monitoringEventType = "ServerDescription... constant serverHeartbeatFailedEvent (line 34) | serverHeartbeatFailedEvent monitoringEventType = "ServerHeartbeatFa... constant serverHeartbeatStartedEvent (line 35) | serverHeartbeatStartedEvent monitoringEventType = "ServerHeartbeatSt... constant serverHeartbeatSucceededEvent (line 36) | serverHeartbeatSucceededEvent monitoringEventType = "ServerHeartbeatSu... constant topologyDescriptionChangedEvent (line 37) | topologyDescriptionChangedEvent monitoringEventType = "TopologyDescripti... constant topologyOpeningEvent (line 38) | topologyOpeningEvent monitoringEventType = "TopologyOpeningEv... constant topologyClosedEvent (line 39) | topologyClosedEvent monitoringEventType = "TopologyClosedEvent" function monitoringEventTypeFromString (line 42) | func monitoringEventTypeFromString(eventStr string) (monitoringEventType... function monitoringEventTypeFromPoolEvent (line 91) | func monitoringEventTypeFromPoolEvent(evt *event.PoolEvent) monitoringEv... type serverDescription (line 121) | type serverDescription struct type serverDescriptionChangedEventInfo (line 129) | type serverDescriptionChangedEventInfo struct method UnmarshalBSON (line 154) | func (evt *serverDescriptionChangedEventInfo) UnmarshalBSON(data []byt... function newServerDescriptionChangedEventInfo (line 141) | func newServerDescriptionChangedEventInfo(evt *event.ServerDescriptionCh... FILE: internal/integration/unified/event_verification.go type commandMonitoringEvent (line 19) | type commandMonitoringEvent struct type cmapEvent (line 44) | type cmapEvent struct type sdamEvent (line 67) | type sdamEvent struct type expectedEvents (line 102) | type expectedEvents struct method UnmarshalBSON (line 112) | func (e *expectedEvents) UnmarshalBSON(data []byte) error { function verifyEvents (line 157) | func verifyEvents(ctx context.Context, expectedEvents *expectedEvents) e... function verifyCommandEvents (line 174) | func verifyCommandEvents(ctx context.Context, client *clientEntity, expe... function verifyCMAPEvents (line 314) | func verifyCMAPEvents(client *clientEntity, expectedEvents *expectedEven... function getNextPoolEvent (line 389) | func getNextPoolEvent(events []*event.PoolEvent, expectedType string) (*... function verifyServiceID (line 401) | func verifyServiceID(expectServiceID bool, serviceID *bson.ObjectID) err... function verifyServerConnectionID (line 408) | func verifyServerConnectionID(expectedHasSCID bool, scid *int64) error { function newEventVerificationError (line 421) | func newEventVerificationError(idx int, client *clientEntity, msg string... function stringifyEventsForClient (line 427) | func stringifyEventsForClient(client *clientEntity) string { function getNextServerDescriptionChangedEvent (line 453) | func getNextServerDescriptionChangedEvent( function getNextServerHeartbeatStartedEvent (line 463) | func getNextServerHeartbeatStartedEvent( function getNextServerHeartbeatSucceededEvent (line 473) | func getNextServerHeartbeatSucceededEvent( function getNextServerHeartbeatFailedEvent (line 483) | func getNextServerHeartbeatFailedEvent( function getNextTopologyDescriptionChangedEvent (line 493) | func getNextTopologyDescriptionChangedEvent( function getNextTopologyOpeningEvent (line 503) | func getNextTopologyOpeningEvent( function getNextTopologyClosedEvent (line 513) | func getNextTopologyClosedEvent( function verifySDAMEvents (line 523) | func verifySDAMEvents(client *clientEntity, expectedEvents *expectedEven... FILE: internal/integration/unified/gridfs_bucket_operation_execution.go function createBucketFindCursor (line 22) | func createBucketFindCursor(ctx context.Context, operation *operation) (... function executeBucketDelete (line 65) | func executeBucketDelete(ctx context.Context, operation *operation) (*op... function executeBucketDownload (line 95) | func executeBucketDownload(ctx context.Context, operation *operation) (*... function executeBucketDownloadByName (line 134) | func executeBucketDownloadByName(ctx context.Context, operation *operati... function executeBucketDrop (line 177) | func executeBucketDrop(ctx context.Context, operation *operation) (*oper... function executeBucketRename (line 186) | func executeBucketRename(ctx context.Context, operation *operation) (*op... function executeBucketUpload (line 218) | func executeBucketUpload(ctx context.Context, operation *operation) (*op... FILE: internal/integration/unified/logger.go type orderedLogMessage (line 18) | type orderedLogMessage struct type Logger (line 25) | type Logger struct method Info (line 57) | func (log *Logger) Info(level int, msg string, args ...any) { method Error (line 104) | func (log *Logger) Error(err error, msg string, args ...any) { function newLogger (line 42) | func newLogger(olm *observeLogMessages, bufSize int, ignoreMessages []*l... FILE: internal/integration/unified/logger_verification.go type logMessage (line 23) | type logMessage struct function newLogMessage (line 32) | func newLogMessage(level int, msg string, args ...any) (*logMessage, err... type clientLogMessages (line 76) | type clientLogMessages struct type logMessageValidator (line 84) | type logMessageValidator struct function newLogMessageValidator (line 90) | func newLogMessageValidator(testCase *TestCase) *logMessageValidator { function logQueue (line 102) | func logQueue(ctx context.Context, exp *clientLogMessages) <-chan ordere... function verifyLogMatch (line 114) | func verifyLogMatch(ctx context.Context, exp, act *logMessage) error { function isUnorderedLog (line 148) | func isUnorderedLog(log *logMessage) bool { type logQueues (line 176) | type logQueues struct function partitionLogQueue (line 184) | func partitionLogQueue(ctx context.Context, exp *clientLogMessages) logQ... function matchOrderedLogs (line 217) | func matchOrderedLogs(ctx context.Context, logs logQueues) <-chan error { function matchUnorderedLogs (line 250) | func matchUnorderedLogs(ctx context.Context, logs logQueues) <-chan error { function startLogValidators (line 309) | func startLogValidators(ctx context.Context, validator *logMessageValida... function stopLogValidatorsErr (line 350) | func stopLogValidatorsErr(clientName string, err error) error { function stopLogValidators (line 356) | func stopLogValidators(ctx context.Context, validator *logMessageValidat... FILE: internal/integration/unified/main_test.go function TestMain (line 18) | func TestMain(m *testing.M) { FILE: internal/integration/unified/matches.go type keyPathCtxKey (line 21) | type keyPathCtxKey struct type extraKeysAllowedCtxKey (line 27) | type extraKeysAllowedCtxKey struct type extraKeysAllowedRootMatchCtxKey (line 28) | type extraKeysAllowedRootMatchCtxKey struct function makeMatchContext (line 31) | func makeMatchContext(ctx context.Context, keyPath string, extraKeysAllo... function verifyValuesMatch (line 46) | func verifyValuesMatch(ctx context.Context, expected, actual bson.RawVal... function verifyValuesMatchInner (line 50) | func verifyValuesMatchInner(ctx context.Context, expected, actual bson.R... function evaluateSpecialComparison (line 190) | func evaluateSpecialComparison(ctx context.Context, assertionDoc bson.Ra... function requiresSpecialMatching (line 303) | func requiresSpecialMatching(doc bson.Raw) bool { function getTypesArray (line 308) | func getTypesArray(val bson.RawValue) ([]bson.Type, error) { function convertStringToBSONType (line 338) | func convertStringToBSONType(typeStr string) (bson.Type, error) { function newMatchingError (line 390) | func newMatchingError(keyPath, msg string, args ...any) error { FILE: internal/integration/unified/matches_test.go function TestMatches (line 19) | func TestMatches(t *testing.T) { FILE: internal/integration/unified/operation.go type operation (line 19) | type operation struct method execute (line 31) | func (op *operation) execute(ctx context.Context, loopDone <-chan stru... method isCreateView (line 54) | func (op *operation) isCreateView() (bool, error) { method run (line 74) | func (op *operation) run(ctx context.Context, loopDone <-chan struct{}... FILE: internal/integration/unified/options.go type Options (line 12) | type Options struct method SetRunKillAllSessions (line 24) | func (op *Options) SetRunKillAllSessions(killAllSessions bool) *Options { function NewOptions (line 19) | func NewOptions() *Options { FILE: internal/integration/unified/result.go type operationResult (line 17) | type operationResult struct function newEmptyResult (line 31) | func newEmptyResult() *operationResult { function newDocumentResult (line 36) | func newDocumentResult(result []byte, err error) *operationResult { function newValueResult (line 43) | func newValueResult(valueType bson.Type, data []byte, err error) *operat... function newCursorResult (line 51) | func newCursorResult(arr []bson.Raw) *operationResult { function newErrorResult (line 66) | func newErrorResult(err error) *operationResult { function verifyOperationResult (line 73) | func verifyOperationResult(ctx context.Context, expected bson.RawValue, ... FILE: internal/integration/unified/schema_version.go function checkSchemaVersion (line 22) | func checkSchemaVersion(version string) error { FILE: internal/integration/unified/server_api_options.go type serverAPIOptions (line 18) | type serverAPIOptions struct method UnmarshalBSON (line 26) | func (s *serverAPIOptions) UnmarshalBSON(data []byte) error { FILE: internal/integration/unified/session_operation_execution.go function executeAbortTransaction (line 19) | func executeAbortTransaction(ctx context.Context, operation *operation) ... function executeEndSession (line 34) | func executeEndSession(ctx context.Context, operation *operation) error { function executeCommitTransaction (line 50) | func executeCommitTransaction(ctx context.Context, operation *operation)... function executeStartTransaction (line 65) | func executeStartTransaction(ctx context.Context, operation *operation) ... function executeWithTransaction (line 84) | func executeWithTransaction(ctx context.Context, op *operation, loopDone... function executeGetSnapshotTime (line 118) | func executeGetSnapshotTime(ctx context.Context, op *operation) (*operat... FILE: internal/integration/unified/session_options.go type transactionOptions (line 19) | type transactionOptions struct method UnmarshalBSON (line 25) | func (to *transactionOptions) UnmarshalBSON(data []byte) error { type sessionOptions (line 62) | type sessionOptions struct method UnmarshalBSON (line 69) | func (so *sessionOptions) UnmarshalBSON(data []byte) error { FILE: internal/integration/unified/testrunner_operation.go type loopArgs (line 30) | type loopArgs struct method errorsStored (line 38) | func (lp *loopArgs) errorsStored() bool { method failuresStored (line 42) | func (lp *loopArgs) failuresStored() bool { method successesStored (line 46) | func (lp *loopArgs) successesStored() bool { method iterationsStored (line 50) | func (lp *loopArgs) iterationsStored() bool { type assertEventCountArguments (line 54) | type assertEventCountArguments struct function assertEventCount (line 60) | func assertEventCount(ctx context.Context, args assertEventCountArgument... function executeTestRunnerOperation (line 93) | func executeTestRunnerOperation(ctx context.Context, op *operation, loop... function executeLoop (line 287) | func executeLoop(ctx context.Context, args *loopArgs, loopDone <-chan st... type waitForEventArguments (line 369) | type waitForEventArguments struct method eventCompleted (line 405) | func (args waitForEventArguments) eventCompleted(client *clientEntity)... function getServerDescriptionChangedEventCount (line 384) | func getServerDescriptionChangedEventCount(client *clientEntity, raw bso... function waitForEvent (line 427) | func waitForEvent(ctx context.Context, args waitForEventArguments) error { function verifySessionPinnedState (line 447) | func verifySessionPinnedState(ctx context.Context, sessionID string, exp... function verifyLastTwoLsidsEqual (line 459) | func verifyLastTwoLsidsEqual(ctx context.Context, clientID string, expec... function verifySessionDirtyState (line 490) | func verifySessionDirtyState(ctx context.Context, sessionID string, expe... function verifyCollectionExists (line 502) | func verifyCollectionExists(ctx context.Context, dbName, collName string... function verifyIndexExists (line 517) | func verifyIndexExists(ctx context.Context, dbName, collName, indexName ... function convertValueToMilliseconds (line 540) | func convertValueToMilliseconds(val bson.RawValue) (time.Duration, error) { FILE: internal/integration/unified/unified_spec_runner.go type TestCase (line 32) | type TestCase struct method performsDistinct (line 50) | func (tc *TestCase) performsDistinct() bool { method setsFailPoint (line 54) | func (tc *TestCase) setsFailPoint() bool { method startsTransaction (line 58) | func (tc *TestCase) startsTransaction() bool { method performsOperation (line 62) | func (tc *TestCase) performsOperation(name string) bool { method GetEntities (line 185) | func (tc *TestCase) GetEntities() *EntityMap { method EndLoop (line 191) | func (tc *TestCase) EndLoop() { method Run (line 223) | func (tc *TestCase) Run(ls LoggerSkipper) error { type TestFile (line 72) | type TestFile struct function runTestDirectory (line 83) | func runTestDirectory(t *testing.T, directoryPath string, expectValidFai... function runTestFile (line 92) | func runTestFile(t *testing.T, filepath string, expectValidFail bool, op... function parseTestFile (line 142) | func parseTestFile(testJSON []byte, opts ...*Options) ([]mtest.RunOnBloc... function ParseTestFile (line 171) | func ParseTestFile(t *testing.T, testJSON []byte, expectValidFail bool, ... type LoggerSkipper (line 196) | type LoggerSkipper interface type skipTestError (line 205) | type skipTestError struct method Error (line 210) | func (s skipTestError) Error() string { function newSkipTestError (line 214) | func newSkipTestError(reason string) error { function isSkipTestError (line 218) | func isSkipTestError(err error) bool { function disableUntargetedFailPoints (line 349) | func disableUntargetedFailPoints(ctx context.Context) []error { function disableTargetedFailPoints (line 359) | func disableTargetedFailPoints(ctx context.Context) []error { function disableFailPointWithClient (line 372) | func disableFailPointWithClient(ctx context.Context, fpName string, clie... FILE: internal/integration/unified/unified_spec_test.go function TestUnifiedSpec (line 46) | func TestUnifiedSpec(t *testing.T) { FILE: internal/integration/unified_runner_events_helper_test.go type unifiedRunnerEventMonitor (line 35) | type unifiedRunnerEventMonitor struct method handlePoolEvent (line 63) | func (u *unifiedRunnerEventMonitor) handlePoolEvent(evt *event.PoolEve... method getPoolEventCount (line 71) | func (u *unifiedRunnerEventMonitor) getPoolEventCount(eventType string... method getServerMarkedUnknownCount (line 80) | func (u *unifiedRunnerEventMonitor) getServerMarkedUnknownCount() int { function newUnifiedRunnerEventMonitor (line 43) | func newUnifiedRunnerEventMonitor() *unifiedRunnerEventMonitor { function waitForEvent (line 87) | func waitForEvent(mt *mtest.T, test *testCase, op *operation) { function assertEventCount (line 110) | func assertEventCount(mt *mtest.T, testCase *testCase, op *operation) { function recordPrimary (line 125) | func recordPrimary(mt *mtest.T, testCase *testCase) { function waitForPrimaryChange (line 129) | func waitForPrimaryChange(mt *mtest.T, testCase *testCase, op *operation) { function getPrimaryAddress (line 144) | func getPrimaryAddress(mt *mtest.T, topo *topology.Topology, failFast bo... FILE: internal/integration/unified_runner_thread_helpers_test.go type backgroundRoutine (line 26) | type backgroundRoutine struct method start (line 44) | func (b *backgroundRoutine) start() { method stop (line 62) | func (b *backgroundRoutine) stop() error { method addOperation (line 68) | func (b *backgroundRoutine) addOperation(op *operation) bool { function newBackgroundRoutine (line 34) | func newBackgroundRoutine(mt *mtest.T, testCase *testCase) *backgroundRo... function startThread (line 77) | func startThread(mt *mtest.T, testCase *testCase, op *operation) { function runOnThread (line 83) | func runOnThread(mt *mtest.T, testCase *testCase, op *operation) { function waitForThread (line 100) | func waitForThread(mt *mtest.T, testCase *testCase, op *operation) { function getThreadName (line 110) | func getThreadName(op *operation) string { FILE: internal/integration/unified_spec_test.go constant gridFSFiles (line 42) | gridFSFiles = "fs.files" constant gridFSChunks (line 43) | gridFSChunks = "fs.chunks" type testFile (line 48) | type testFile struct type testData (line 60) | type testData struct function decodeTestData (line 69) | func decodeTestData(dc bson.DecodeContext, vr bson.ValueReader, val refl... type testCase (line 91) | type testCase struct type operation (line 113) | type operation struct type expectation (line 127) | type expectation struct type outcome (line 145) | type outcome struct type outcomeCollection (line 149) | type outcomeCollection struct type operationError (line 154) | type operationError struct function TestUnifiedSpecs (line 175) | func TestUnifiedSpecs(t *testing.T) { function runSpecTestFile (line 189) | func runSpecTestFile(t *testing.T, filePath string) { function runSpecTestCase (line 215) | func runSpecTestCase(mt *mtest.T, test *testCase, testFile testFile) { function createBucket (line 336) | func createBucket(mt *mtest.T, testFile testFile, testCase *testCase) { function runOperation (line 354) | func runOperation(mt *mtest.T, testCase *testCase, op *operation, sess0,... function executeGridFSOperation (line 413) | func executeGridFSOperation(mt *mtest.T, bucket *mongo.GridFSBucket, op ... function executeTestRunnerOperation (line 430) | func executeTestRunnerOperation(mt *mtest.T, testCase *testCase, op *ope... function verifyIndexState (line 569) | func verifyIndexState(op *operation, shouldExist bool) error { function indexExists (line 585) | func indexExists(dbName, collName, indexName string) (bool, error) { function verifyCollectionState (line 602) | func verifyCollectionState(op *operation, shouldExist bool) error { function collectionExists (line 617) | func collectionExists(dbName, collName string) (bool, error) { function lastTwoIDs (line 631) | func lastTwoIDs(mt *mtest.T) (bson.RawValue, bson.RawValue) { function executeSessionOperation (line 640) | func executeSessionOperation(mt *mtest.T, op *operation, sess *mongo.Ses... function executeCollectionOperation (line 659) | func executeCollectionOperation(mt *mtest.T, op *operation, sess *mongo.... function executeDatabaseOperation (line 802) | func executeDatabaseOperation(mt *mtest.T, op *operation, sess *mongo.Se... function executeClientOperation (line 857) | func executeClientOperation(mt *mtest.T, op *operation, sess *mongo.Sess... function setupSessions (line 886) | func setupSessions(mt *mtest.T, test *testCase) (*mongo.Session, *mongo.... function insertDocuments (line 905) | func insertDocuments(mt *mtest.T, coll *mongo.Collection, rawDocs []bson... function setupTest (line 918) | func setupTest(mt *mtest.T, testFile *testFile, testCase *testCase) { function verifyTestOutcome (line 963) | func verifyTestOutcome(mt *mtest.T, outcomeColl *outcomeCollection) { function getTopologyFromClient (line 981) | func getTopologyFromClient(client *mongo.Client) *topology.Topology { function getCryptSharedLibExtraOptions (line 990) | func getCryptSharedLibExtraOptions() map[string]any { FILE: internal/integtest/integtest.go function AddOptionsToURI (line 42) | func AddOptionsToURI(uri string, opts ...string) string { function AddTLSConfigToURI (line 62) | func AddTLSConfigToURI(uri string) string { function AddCompressorToURI (line 73) | func AddCompressorToURI(uri string) string { function AddTestServerAPIVersion (line 83) | func AddTestServerAPIVersion(opts *options.ClientOptions) { function MonitoredTopology (line 90) | func MonitoredTopology(t *testing.T, dbName string, monitor *event.Comma... function Topology (line 119) | func Topology(t *testing.T) *topology.Topology { function TopologyWithCredential (line 151) | func TopologyWithCredential(t *testing.T, credential options.Credential)... function ColName (line 176) | func ColName(t *testing.T) string { function MongoDBURI (line 185) | func MongoDBURI() (string, error) { function AddServerlessAuthCredentials (line 198) | func AddServerlessAuthCredentials(uri string) (string, error) { function ConnString (line 227) | func ConnString(t *testing.T) *connstring.ConnString { function GetConnString (line 248) | func GetConnString() (*connstring.ConnString, error) { function DBName (line 265) | func DBName(t *testing.T) string { function GetDBName (line 269) | func GetDBName(cs *connstring.ConnString) string { function CompareVersions (line 283) | func CompareVersions(t *testing.T, v1 string, v2 string) int { FILE: internal/israce/norace.go constant Enabled (line 13) | Enabled = false FILE: internal/israce/race.go constant Enabled (line 13) | Enabled = true FILE: internal/logger/component.go constant CommandFailed (line 17) | CommandFailed = "Command failed" constant CommandStarted (line 18) | CommandStarted = "Command started" constant CommandSucceeded (line 19) | CommandSucceeded = "Command succeeded" constant ConnectionPoolCreated (line 20) | ConnectionPoolCreated = "Connection pool created" constant ConnectionPoolReady (line 21) | ConnectionPoolReady = "Connection pool ready" constant ConnectionPoolCleared (line 22) | ConnectionPoolCleared = "Connection pool cleared" constant ConnectionPoolClosed (line 23) | ConnectionPoolClosed = "Connection pool closed" constant ConnectionCreated (line 24) | ConnectionCreated = "Connection created" constant ConnectionReady (line 25) | ConnectionReady = "Connection ready" constant ConnectionClosed (line 26) | ConnectionClosed = "Connection closed" constant ConnectionCheckoutStarted (line 27) | ConnectionCheckoutStarted = "Connection checkout started" constant ConnectionCheckoutFailed (line 28) | ConnectionCheckoutFailed = "Connection checkout failed" constant ConnectionCheckedOut (line 29) | ConnectionCheckedOut = "Connection checked out" constant ConnectionCheckedIn (line 30) | ConnectionCheckedIn = "Connection checked in" constant ServerSelectionFailed (line 31) | ServerSelectionFailed = "Server selection failed" constant ServerSelectionStarted (line 32) | ServerSelectionStarted = "Server selection started" constant ServerSelectionSucceeded (line 33) | ServerSelectionSucceeded = "Server selection succeeded" constant ServerSelectionWaiting (line 34) | ServerSelectionWaiting = "Waiting for suitable server to becom... constant TopologyClosed (line 35) | TopologyClosed = "Stopped topology monitoring" constant TopologyDescriptionChanged (line 36) | TopologyDescriptionChanged = "Topology description changed" constant TopologyOpening (line 37) | TopologyOpening = "Starting topology monitoring" constant TopologyServerClosed (line 38) | TopologyServerClosed = "Stopped server monitoring" constant TopologyServerHeartbeatFailed (line 39) | TopologyServerHeartbeatFailed = "Server heartbeat failed" constant TopologyServerHeartbeatStarted (line 40) | TopologyServerHeartbeatStarted = "Server heartbeat started" constant TopologyServerHeartbeatSucceeded (line 41) | TopologyServerHeartbeatSucceeded = "Server heartbeat succeeded" constant TopologyServerOpening (line 42) | TopologyServerOpening = "Starting server monitoring" constant KeyAwaited (line 46) | KeyAwaited = "awaited" constant KeyCommand (line 47) | KeyCommand = "command" constant KeyCommandName (line 48) | KeyCommandName = "commandName" constant KeyDatabaseName (line 49) | KeyDatabaseName = "databaseName" constant KeyDriverConnectionID (line 50) | KeyDriverConnectionID = "driverConnectionId" constant KeyDurationMS (line 51) | KeyDurationMS = "durationMS" constant KeyError (line 52) | KeyError = "error" constant KeyFailure (line 53) | KeyFailure = "failure" constant KeyMaxConnecting (line 54) | KeyMaxConnecting = "maxConnecting" constant KeyMaxIdleTimeMS (line 55) | KeyMaxIdleTimeMS = "maxIdleTimeMS" constant KeyMaxPoolSize (line 56) | KeyMaxPoolSize = "maxPoolSize" constant KeyMessage (line 57) | KeyMessage = "message" constant KeyMinPoolSize (line 58) | KeyMinPoolSize = "minPoolSize" constant KeyNewDescription (line 59) | KeyNewDescription = "newDescription" constant KeyOperation (line 60) | KeyOperation = "operation" constant KeyOperationID (line 61) | KeyOperationID = "operationId" constant KeyPreviousDescription (line 62) | KeyPreviousDescription = "previousDescription" constant KeyRemainingTimeMS (line 63) | KeyRemainingTimeMS = "remainingTimeMS" constant KeyReason (line 64) | KeyReason = "reason" constant KeyReply (line 65) | KeyReply = "reply" constant KeyRequestID (line 66) | KeyRequestID = "requestId" constant KeySelector (line 67) | KeySelector = "selector" constant KeyServerConnectionID (line 68) | KeyServerConnectionID = "serverConnectionId" constant KeyServerHost (line 69) | KeyServerHost = "serverHost" constant KeyServerPort (line 70) | KeyServerPort = "serverPort" constant KeyServiceID (line 71) | KeyServiceID = "serviceId" constant KeyTimestamp (line 72) | KeyTimestamp = "timestamp" constant KeyTopologyDescription (line 73) | KeyTopologyDescription = "topologyDescription" constant KeyTopologyID (line 74) | KeyTopologyID = "topologyId" type KeyValues (line 78) | type KeyValues method Add (line 81) | func (kvs *KeyValues) Add(key string, value any) { constant ReasonConnClosedStale (line 86) | ReasonConnClosedStale = "Connection became stale because th... constant ReasonConnClosedIdle (line 87) | ReasonConnClosedIdle = "Connection has been available but ... constant ReasonConnClosedError (line 88) | ReasonConnClosedError = "An error occurred while using the ... constant ReasonConnClosedPoolClosed (line 89) | ReasonConnClosedPoolClosed = "Connection pool was closed" constant ReasonConnCheckoutFailedTimout (line 90) | ReasonConnCheckoutFailedTimout = "Wait queue timeout elapsed without... constant ReasonConnCheckoutFailedError (line 91) | ReasonConnCheckoutFailedError = "An error occurred while trying to ... constant ReasonConnCheckoutFailedPoolClosed (line 92) | ReasonConnCheckoutFailedPoolClosed = "Connection pool was closed" type Component (line 97) | type Component constant ComponentAll (line 101) | ComponentAll Component = iota constant ComponentCommand (line 104) | ComponentCommand constant ComponentTopology (line 107) | ComponentTopology constant ComponentServerSelection (line 110) | ComponentServerSelection constant ComponentConnection (line 113) | ComponentConnection constant mongoDBLogAllEnvVar (line 117) | mongoDBLogAllEnvVar = "MONGODB_LOG_ALL" constant mongoDBLogCommandEnvVar (line 118) | mongoDBLogCommandEnvVar = "MONGODB_LOG_COMMAND" constant mongoDBLogTopologyEnvVar (line 119) | mongoDBLogTopologyEnvVar = "MONGODB_LOG_TOPOLOGY" constant mongoDBLogServerSelectionEnvVar (line 120) | mongoDBLogServerSelectionEnvVar = "MONGODB_LOG_SERVER_SELECTION" constant mongoDBLogConnectionEnvVar (line 121) | mongoDBLogConnectionEnvVar = "MONGODB_LOG_CONNECTION" function EnvHasComponentVariables (line 134) | func EnvHasComponentVariables() bool { type Command (line 146) | type Command struct function SerializeCommand (line 162) | func SerializeCommand(cmd Command, extraKeysAndValues ...any) KeyValues { type Connection (line 198) | type Connection struct function SerializeConnection (line 206) | func SerializeConnection(conn Connection, extraKeysAndValues ...any) Key... type Server (line 227) | type Server struct function SerializeServer (line 238) | func SerializeServer(srv Server, extraKV ...any) KeyValues { type ServerSelection (line 266) | type ServerSelection struct function SerializeServerSelection (line 275) | func SerializeServerSelection(srvSelection ServerSelection, extraKV ...a... type Topology (line 295) | type Topology struct function SerializeTopology (line 302) | func SerializeTopology(topo Topology, extraKV ...any) KeyValues { FILE: internal/logger/component_test.go function verifySerialization (line 16) | func verifySerialization(t *testing.T, got, want KeyValues) { function TestSerializeCommand (line 25) | func TestSerializeCommand(t *testing.T) { function TestSerializeConnection (line 90) | func TestSerializeConnection(t *testing.T) { function TestSerializeServer (line 133) | func TestSerializeServer(t *testing.T) { function TestSerializeTopology (line 187) | func TestSerializeTopology(t *testing.T) { FILE: internal/logger/context.go type contextKey (line 13) | type contextKey constant contextKeyOperation (line 16) | contextKeyOperation contextKey = "operation" constant contextKeyOperationID (line 17) | contextKeyOperationID contextKey = "operationID" function WithOperationName (line 21) | func WithOperationName(ctx context.Context, operation string) context.Co... function WithOperationID (line 26) | func WithOperationID(ctx context.Context, operationID int32) context.Con... function OperationName (line 31) | func OperationName(ctx context.Context) (string, bool) { function OperationID (line 41) | func OperationID(ctx context.Context) (int32, bool) { FILE: internal/logger/context_test.go function TestContext_WithOperationName (line 17) | func TestContext_WithOperationName(t *testing.T) { function TestContext_OperationName (line 52) | func TestContext_OperationName(t *testing.T) { function TestContext_WithOperationID (line 103) | func TestContext_WithOperationID(t *testing.T) { function TestContext_OperationID (line 138) | func TestContext_OperationID(t *testing.T) { FILE: internal/logger/io_sink.go type IOSink (line 18) | type IOSink struct method Info (line 39) | func (sink *IOSink) Info(_ int, msg string, keysAndValues ...any) { method Error (line 60) | func (sink *IOSink) Error(err error, msg string, kv ...any) { function NewIOSink (line 32) | func NewIOSink(out io.Writer) *IOSink { FILE: internal/logger/level.go constant DiffToInfo (line 14) | DiffToInfo = 1 type Level (line 21) | type Level constant LevelOff (line 25) | LevelOff Level = iota constant LevelInfo (line 29) | LevelInfo constant LevelDebug (line 34) | LevelDebug constant levelLiteralOff (line 38) | levelLiteralOff = "off" constant levelLiteralEmergency (line 39) | levelLiteralEmergency = "emergency" constant levelLiteralAlert (line 40) | levelLiteralAlert = "alert" constant levelLiteralCritical (line 41) | levelLiteralCritical = "critical" constant levelLiteralError (line 42) | levelLiteralError = "error" constant levelLiteralWarning (line 43) | levelLiteralWarning = "warning" constant levelLiteralNotice (line 44) | levelLiteralNotice = "notice" constant levelLiteralInfo (line 45) | levelLiteralInfo = "info" constant levelLiteralDebug (line 46) | levelLiteralDebug = "debug" constant levelLiteralTrace (line 47) | levelLiteralTrace = "trace" function ParseLevel (line 66) | func ParseLevel(str string) Level { FILE: internal/logger/logger.go constant DefaultMaxDocumentLength (line 24) | DefaultMaxDocumentLength = 1000 constant TruncationSuffix (line 29) | TruncationSuffix = "..." constant logSinkPathEnvVar (line 32) | logSinkPathEnvVar = "MONGODB_LOG_PATH" constant maxDocumentLengthEnvVar (line 33) | maxDocumentLengthEnvVar = "MONGODB_LOG_MAX_DOCUMENT_LENGTH" type LogSink (line 38) | type LogSink interface type Logger (line 48) | type Logger struct method Close (line 77) | func (logger *Logger) Close() error { method LevelComponentEnabled (line 94) | func (logger *Logger) LevelComponentEnabled(level Level, component Com... method Print (line 117) | func (logger *Logger) Print(level Level, component Component, msg stri... method Error (line 135) | func (logger *Logger) Error(err error, msg string, keysAndValues ...an... function New (line 59) | func New(sink LogSink, maxDocLen uint, compLevels map[Component]Level) (... function selectMaxDocumentLength (line 149) | func selectMaxDocumentLength(maxDocLen uint) uint { constant logSinkPathStdout (line 166) | logSinkPathStdout = "stdout" constant logSinkPathStderr (line 167) | logSinkPathStderr = "stderr" function selectLogSink (line 173) | func selectLogSink(sink LogSink) (LogSink, *os.File, error) { function selectComponentLevels (line 204) | func selectComponentLevels(componentLevels map[Component]Level) map[Comp... function FormatDocument (line 241) | func FormatDocument(msg bson.Raw, width uint) string { function FormatString (line 257) | func FormatString(str string, width uint) string { FILE: internal/logger/logger_test.go type mockLogSink (line 24) | type mockLogSink struct method Info (line 26) | func (mockLogSink) Info(int, string, ...any) {} method Error (line 27) | func (mockLogSink) Error(error, string, ...any) {} function BenchmarkLoggerWithLargeDocuments (line 29) | func BenchmarkLoggerWithLargeDocuments(b *testing.B) { function createVoluminousDocument (line 106) | func createVoluminousDocument(numKeys int) bson.D { function createLargeStringsDocument (line 114) | func createLargeStringsDocument(sizeMB int) bson.D { function createMassiveArraysDocument (line 124) | func createMassiveArraysDocument(arraySize int) bson.D { function BenchmarkLogger (line 137) | func BenchmarkLogger(b *testing.B) { function mockKeyValues (line 160) | func mockKeyValues(length int) (KeyValues, map[string]any) { function BenchmarkIOSinkInfo (line 175) | func BenchmarkIOSinkInfo(b *testing.B) { function TestIOSinkInfo (line 190) | func TestIOSinkInfo(t *testing.T) { function TestSelectMaxDocumentLength (line 229) | func TestSelectMaxDocumentLength(t *testing.T) { function TestSelectLogSink (line 278) | func TestSelectLogSink(t *testing.T) { function TestSelectedComponentLevels (line 327) | func TestSelectedComponentLevels(t *testing.T) { function TestLogger_LevelComponentEnabled (line 402) | func TestLogger_LevelComponentEnabled(t *testing.T) { FILE: internal/mongoutil/mongoutil.go function NewOptions (line 19) | func NewOptions[T any](opts ...options.Lister[T]) (*T, error) { type OptionsLister (line 44) | type OptionsLister struct method List (line 52) | func (opts *OptionsLister[T]) List() []func(*T) error { function NewOptionsLister (line 70) | func NewOptionsLister[T any](args *T, callback func(*T) error) *OptionsL... function AuthFromURI (line 75) | func AuthFromURI(uri string) (*options.Credential, error) { function HostsFromURI (line 83) | func HostsFromURI(uri string) ([]string, error) { function TimeoutWithinContext (line 92) | func TimeoutWithinContext(ctx context.Context, timeout time.Duration) bo... FILE: internal/mongoutil/mongoutil_test.go function BenchmarkNewOptions (line 20) | func BenchmarkNewOptions(b *testing.B) { function TestValidChangeStreamTimeouts (line 40) | func TestValidChangeStreamTimeouts(t *testing.T) { FILE: internal/optionsutil/options.go type Options (line 10) | type Options struct function WithValue (line 15) | func WithValue(opts Options, key string, option any) Options { function Value (line 24) | func Value(opts Options, key string) any { function Equal (line 35) | func Equal(opts1, opts2 Options) bool { FILE: internal/ptrutil/int64.go function CompareInt64 (line 16) | func CompareInt64(ptr1, ptr2 *int64) int { FILE: internal/ptrutil/int64_test.go function TestCompareInt64 (line 15) | func TestCompareInt64(t *testing.T) { FILE: internal/ptrutil/ptr.go function Ptr (line 10) | func Ptr[T any](val T) *T { FILE: internal/rand/arith128_test.go function bigInt (line 17) | func bigInt(xHi, xLo uint64) *big.Int { function splitBigInt (line 24) | func splitBigInt(b *big.Int) (outHi, outLo uint64) { function bigMulMod128bits (line 30) | func bigMulMod128bits(xHi, xLo, yHi, yLo uint64) (outHi, outLo uint64) { function bigAddMod128bits (line 36) | func bigAddMod128bits(xHi, xLo, yHi, yLo uint64) (outHi, outLo uint64) { type arithTest (line 42) | type arithTest struct constant iLo (line 47) | iLo = increment & maxUint64 constant iHi (line 48) | iHi = (increment >> 64) & maxUint64 function TestPCGAdd (line 66) | func TestPCGAdd(t *testing.T) { constant mLo (line 81) | mLo = multiplier & maxUint64 constant mHi (line 82) | mHi = (multiplier >> 64) & maxUint64 function TestPCGMultiply (line 85) | func TestPCGMultiply(t *testing.T) { function TestPCGMultiplyLong (line 99) | func TestPCGMultiplyLong(t *testing.T) { function BenchmarkPCGMultiply (line 118) | func BenchmarkPCGMultiply(b *testing.B) { FILE: internal/rand/bits.go function Add64 (line 12) | func Add64(x, y, carry uint64) (sum, carryOut uint64) { function Mul64 (line 24) | func Mul64(x, y uint64) (hi, lo uint64) { FILE: internal/rand/example_test.go function Example (line 21) | func Example() { function Example_rand (line 51) | func Example_rand() { function ExampleShuffle (line 107) | func ExampleShuffle() { function ExampleShuffle_slicesInUnison (line 118) | func ExampleShuffle_slicesInUnison() { function ExampleLockedSource (line 138) | func ExampleLockedSource() { FILE: internal/rand/exp.go constant re (line 22) | re = 7.69711747013104972 method ExpFloat64 (line 32) | func (r *Rand) ExpFloat64() float64 { FILE: internal/rand/modulo_test.go type modSource (line 24) | type modSource method Seed (line 28) | func (m *modSource) Seed(uint64) {} method Uint64 (line 31) | func (m *modSource) Uint64() uint64 { constant modEdge (line 26) | modEdge = 15 function TestUint64Modulo (line 40) | func TestUint64Modulo(t *testing.T) { FILE: internal/rand/normal.go constant rn (line 22) | rn = 3.442619855899 function absInt32 (line 25) | func absInt32(i int32) uint32 { method NormFloat64 (line 39) | func (r *Rand) NormFloat64() float64 { FILE: internal/rand/race_test.go function TestConcurrent (line 16) | func TestConcurrent(t *testing.T) { FILE: internal/rand/rand.go type Source (line 26) | type Source interface function NewSource (line 32) | func NewSource(seed uint64) Source { type Rand (line 39) | type Rand struct method Seed (line 60) | func (r *Rand) Seed(seed uint64) { method Uint64 (line 71) | func (r *Rand) Uint64() uint64 { return r.src.Uint64() } method Int63 (line 74) | func (r *Rand) Int63() int64 { return int64(r.src.Uint64() &^ (1 << 63... method Uint32 (line 77) | func (r *Rand) Uint32() uint32 { return uint32(r.Uint64() >> 32) } method Int31 (line 80) | func (r *Rand) Int31() int32 { return int32(r.Uint64() >> 33) } method Int (line 83) | func (r *Rand) Int() int { method Uint64n (line 93) | func (r *Rand) Uint64n(n uint64) uint64 { method Int63n (line 115) | func (r *Rand) Int63n(n int64) int64 { method Int31n (line 124) | func (r *Rand) Int31n(n int32) int32 { method Intn (line 134) | func (r *Rand) Intn(n int) int { method Float64 (line 143) | func (r *Rand) Float64() float64 { method Float32 (line 163) | func (r *Rand) Float32() float32 { method Perm (line 175) | func (r *Rand) Perm(n int) []int { method Shuffle (line 193) | func (r *Rand) Shuffle(n int, swap func(i, j int)) { method Read (line 219) | func (r *Rand) Read(p []byte) (n int, err error) { function New (line 54) | func New(src Source) *Rand { constant maxUint64 (line 88) | maxUint64 = (1 << 64) - 1 function read (line 226) | func read(p []byte, src Source, readVal *uint64, readPos *int8) (n int, ... function Seed (line 261) | func Seed(seed uint64) { globalRand.Seed(seed) } function Int63 (line 265) | func Int63() int64 { return globalRand.Int63() } function Uint32 (line 269) | func Uint32() uint32 { return globalRand.Uint32() } function Uint64 (line 273) | func Uint64() uint64 { return globalRand.Uint64() } function Int31 (line 277) | func Int31() int32 { return globalRand.Int31() } function Int (line 280) | func Int() int { return globalRand.Int() } function Int63n (line 285) | func Int63n(n int64) int64 { return globalRand.Int63n(n) } function Int31n (line 290) | func Int31n(n int32) int32 { return globalRand.Int31n(n) } function Intn (line 295) | func Intn(n int) int { return globalRand.Intn(n) } function Float64 (line 299) | func Float64() float64 { return globalRand.Float64() } function Float32 (line 303) | func Float32() float32 { return globalRand.Float32() } function Perm (line 307) | func Perm(n int) []int { return globalRand.Perm(n) } function Shuffle (line 312) | func Shuffle(n int, swap func(i, j int)) { globalRand.Shuffle(n, swap) } function Read (line 317) | func Read(p []byte) (n int, err error) { return globalRand.Read(p) } function NormFloat64 (line 327) | func NormFloat64() float64 { return globalRand.NormFloat64() } function ExpFloat64 (line 336) | func ExpFloat64() float64 { return globalRand.ExpFloat64() } type LockedSource (line 342) | type LockedSource struct method Uint64 (line 347) | func (s *LockedSource) Uint64() (n uint64) { method Seed (line 354) | func (s *LockedSource) Seed(seed uint64) { method seedPos (line 361) | func (s *LockedSource) seedPos(seed uint64, readPos *int8) { method Read (line 369) | func (s *LockedSource) Read(p []byte, readVal *uint64, readPos *int8) ... FILE: internal/rand/rand_test.go constant numTestSamples (line 23) | numTestSamples = 10000 type statsResults (line 26) | type statsResults struct method checkSimilarDistribution (line 52) | func (this *statsResults) checkSimilarDistribution(expected *statsResu... function max (line 33) | func max(a, b float64) float64 { function nearEqual (line 40) | func nearEqual(a, b, closeEnough, maxError float64) bool { function getStatsResults (line 66) | func getStatsResults(samples []float64) *statsResults { function checkSampleDistribution (line 78) | func checkSampleDistribution(t *testing.T, samples []float64, expected *... function checkSampleSliceDistributions (line 87) | func checkSampleSliceDistributions(t *testing.T, samples []float64, nsli... function generateNormalSamples (line 106) | func generateNormalSamples(nsamples int, mean, stddev float64, seed uint... function testNormalDistribution (line 115) | func testNormalDistribution(t *testing.T, nsamples int, mean, stddev flo... function TestStandardNormalValues (line 134) | func TestStandardNormalValues(t *testing.T) { function TestNonStandardNormalValues (line 140) | func TestNonStandardNormalValues(t *testing.T) { function generateExponentialSamples (line 163) | func generateExponentialSamples(nsamples int, rate float64, seed uint64)... function testExponentialDistribution (line 172) | func testExponentialDistribution(t *testing.T, nsamples int, rate float6... function TestStandardExponentialValues (line 194) | func TestStandardExponentialValues(t *testing.T) { function TestNonStandardExponentialValues (line 200) | func TestNonStandardExponentialValues(t *testing.T) { function initNorm (line 215) | func initNorm() (testKn []uint32, testWn, testFn []float32) { function initExp (line 244) | func initExp() (testKe []uint32, testWe, testFe []float32) { function compareUint32Slices (line 276) | func compareUint32Slices(s1, s2 []uint32) int { function compareFloat32Slices (line 294) | func compareFloat32Slices(s1, s2 []float32) int { function TestNormTables (line 309) | func TestNormTables(t *testing.T) { function TestExpTables (line 322) | func TestExpTables(t *testing.T) { function hasSlowFloatingPoint (line 335) | func hasSlowFloatingPoint() bool { function TestFloat32 (line 348) | func TestFloat32(t *testing.T) { function testReadUniformity (line 367) | func testReadUniformity(t *testing.T, n int, seed uint64) { function TestReadUniformity (line 396) | func TestReadUniformity(t *testing.T) { function TestReadEmpty (line 407) | func TestReadEmpty(t *testing.T) { function TestReadByOneByte (line 419) | func TestReadByOneByte(t *testing.T) { function TestReadSeedReset (line 437) | func TestReadSeedReset(t *testing.T) { function TestShuffleSmall (line 455) | func TestShuffleSmall(t *testing.T) { function TestPCGSourceRoundTrip (line 463) | func TestPCGSourceRoundTrip(t *testing.T) { function BenchmarkSource (line 493) | func BenchmarkSource(b *testing.B) { function BenchmarkInt63Threadsafe (line 500) | func BenchmarkInt63Threadsafe(b *testing.B) { function BenchmarkInt63ThreadsafeParallel (line 506) | func BenchmarkInt63ThreadsafeParallel(b *testing.B) { function BenchmarkInt63Unthreadsafe (line 514) | func BenchmarkInt63Unthreadsafe(b *testing.B) { function BenchmarkIntn1000 (line 521) | func BenchmarkIntn1000(b *testing.B) { function BenchmarkInt63n1000 (line 528) | func BenchmarkInt63n1000(b *testing.B) { function BenchmarkInt31n1000 (line 535) | func BenchmarkInt31n1000(b *testing.B) { function BenchmarkFloat32 (line 542) | func BenchmarkFloat32(b *testing.B) { function BenchmarkFloat64 (line 549) | func BenchmarkFloat64(b *testing.B) { function BenchmarkPerm3 (line 556) | func BenchmarkPerm3(b *testing.B) { function BenchmarkPerm30 (line 563) | func BenchmarkPerm30(b *testing.B) { function BenchmarkPerm30ViaShuffle (line 570) | func BenchmarkPerm30ViaShuffle(b *testing.B) { function BenchmarkShuffleOverhead (line 583) | func BenchmarkShuffleOverhead(b *testing.B) { function BenchmarkRead3 (line 594) | func BenchmarkRead3(b *testing.B) { function BenchmarkRead64 (line 603) | func BenchmarkRead64(b *testing.B) { function BenchmarkRead1000 (line 612) | func BenchmarkRead1000(b *testing.B) { FILE: internal/rand/regress_test.go function TestSourceRegress (line 29) | func TestSourceRegress(t *testing.T) { function TestRegress (line 71) | func TestRegress(t *testing.T) { FILE: internal/rand/rng.go type PCGSource (line 27) | type PCGSource struct method Seed (line 50) | func (pcg *PCGSource) Seed(seed uint64) { method Uint64 (line 56) | func (pcg *PCGSource) Uint64() uint64 { method add (line 63) | func (pcg *PCGSource) add() { method multiply (line 69) | func (pcg *PCGSource) multiply() { method MarshalBinary (line 78) | func (pcg *PCGSource) MarshalBinary() ([]byte, error) { method UnmarshalBinary (line 86) | func (pcg *PCGSource) UnmarshalBinary(data []byte) error { constant maxUint32 (line 33) | maxUint32 = (1 << 32) - 1 constant multiplier (line 35) | multiplier = 47026247687942121848144207491837523525 constant mulHigh (line 36) | mulHigh = multiplier >> 64 constant mulLow (line 37) | mulLow = multiplier & maxUint64 constant increment (line 39) | increment = 117397592171526113268558934119004209487 constant incHigh (line 40) | incHigh = increment >> 64 constant incLow (line 41) | incLow = increment & maxUint64 constant initializer (line 44) | initializer = 245720598905631564143578724636268694099 constant initHigh (line 45) | initHigh = initializer >> 64 constant initLow (line 46) | initLow = initializer & maxUint64 FILE: internal/randutil/randutil.go function NewLockedRand (line 21) | func NewLockedRand() *xrand.Rand { function cryptoSeed (line 30) | func cryptoSeed() uint64 { FILE: internal/randutil/randutil_test.go function TestCryptoSeed (line 15) | func TestCryptoSeed(t *testing.T) { FILE: internal/require/require.go type TestingT (line 16) | type TestingT interface type tHelper (line 21) | type tHelper interface function Contains (line 31) | func Contains(t TestingT, s interface{}, contains interface{}, msgAndArg... function Containsf (line 47) | func Containsf(t TestingT, s interface{}, contains interface{}, msg stri... function ElementsMatch (line 62) | func ElementsMatch(t TestingT, listA interface{}, listB interface{}, msg... function ElementsMatchf (line 77) | func ElementsMatchf(t TestingT, listA interface{}, listB interface{}, ms... function Equal (line 94) | func Equal(t TestingT, expected interface{}, actual interface{}, msgAndA... function EqualError (line 109) | func EqualError(t TestingT, theError error, errString string, msgAndArgs... function EqualErrorf (line 124) | func EqualErrorf(t TestingT, theError error, errString string, msg strin... function EqualValues (line 138) | func EqualValues(t TestingT, expected interface{}, actual interface{}, m... function EqualValuesf (line 152) | func EqualValuesf(t TestingT, expected interface{}, actual interface{}, ... function Equalf (line 169) | func Equalf(t TestingT, expected interface{}, actual interface{}, msg st... function Error (line 185) | func Error(t TestingT, err error, msgAndArgs ...interface{}) { function ErrorContains (line 200) | func ErrorContains(t TestingT, theError error, contains string, msgAndAr... function ErrorContainsf (line 215) | func ErrorContainsf(t TestingT, theError error, contains string, msg str... function Errorf (line 231) | func Errorf(t TestingT, err error, msg string, args ...interface{}) { function Eventually (line 245) | func Eventually(t TestingT, condition func() bool, waitFor time.Duration... function Eventuallyf (line 259) | func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duratio... function Fail (line 270) | func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) { function FailNow (line 281) | func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{... function FailNowf (line 292) | func FailNowf(t TestingT, failureMessage string, msg string, args ...int... function Failf (line 303) | func Failf(t TestingT, failureMessage string, msg string, args ...interf... function False (line 316) | func False(t TestingT, value bool, msgAndArgs ...interface{}) { function Falsef (line 329) | func Falsef(t TestingT, value bool, msg string, args ...interface{}) { function Greater (line 344) | func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...i... function GreaterOrEqual (line 360) | func GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndAr... function GreaterOrEqualf (line 376) | func GreaterOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg str... function Greaterf (line 391) | func Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, ar... function InDelta (line 404) | func InDelta(t TestingT, expected interface{}, actual interface{}, delta... function InDeltaf (line 417) | func InDeltaf(t TestingT, expected interface{}, actual interface{}, delt... function IsType (line 428) | func IsType(t TestingT, expectedType interface{}, object interface{}, ms... function IsTypef (line 439) | func IsTypef(t TestingT, expectedType interface{}, object interface{}, m... function Len (line 453) | func Len(t TestingT, object interface{}, length int, msgAndArgs ...inter... function Lenf (line 467) | func Lenf(t TestingT, object interface{}, length int, msg string, args .... function Less (line 482) | func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...inte... function LessOrEqual (line 498) | func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ... function LessOrEqualf (line 514) | func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string... function Lessf (line 529) | func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ... function Negative (line 543) | func Negative(t TestingT, e interface{}, msgAndArgs ...interface{}) { function Negativef (line 557) | func Negativef(t TestingT, e interface{}, msg string, args ...interface{... function Nil (line 570) | func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) { function Nilf (line 583) | func Nilf(t TestingT, object interface{}, msg string, args ...interface{... function NoError (line 599) | func NoError(t TestingT, err error, msgAndArgs ...interface{}) { function NoErrorf (line 615) | func NoErrorf(t TestingT, err error, msg string, args ...interface{}) { function NotContains (line 631) | func NotContains(t TestingT, s interface{}, contains interface{}, msgAnd... function NotContainsf (line 647) | func NotContainsf(t TestingT, s interface{}, contains interface{}, msg s... function NotEqual (line 663) | func NotEqual(t TestingT, expected interface{}, actual interface{}, msgA... function NotEqualValues (line 676) | func NotEqualValues(t TestingT, expected interface{}, actual interface{}... function NotEqualValuesf (line 689) | func NotEqualValuesf(t TestingT, expected interface{}, actual interface{... function NotEqualf (line 705) | func NotEqualf(t TestingT, expected interface{}, actual interface{}, msg... function NotNil (line 718) | func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) { function NotNilf (line 731) | func NotNilf(t TestingT, object interface{}, msg string, args ...interfa... function Positive (line 745) | func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) { function Positivef (line 759) | func Positivef(t TestingT, e interface{}, msg string, args ...interface{... function True (line 772) | func True(t TestingT, value bool, msgAndArgs ...interface{}) { function Truef (line 785) | func Truef(t TestingT, value bool, msg string, args ...interface{}) { function WithinDuration (line 798) | func WithinDuration(t TestingT, expected time.Time, actual time.Time, de... function WithinDurationf (line 811) | func WithinDurationf(t TestingT, expected time.Time, actual time.Time, d... function NotEmpty (line 826) | func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{}) { function Empty (line 849) | func Empty(t TestingT, object interface{}, msgAndArgs ...interface{}) { FILE: internal/serverselector/server_selector.go type Composite (line 32) | type Composite struct method SelectServer (line 39) | func (selector *Composite) SelectServer( type Latency (line 56) | type Latency struct method SelectServer (line 63) | func (selector *Latency) SelectServer( type ReadPref (line 115) | type ReadPref struct method SelectServer (line 123) | func (selector *ReadPref) SelectServer( type Write (line 148) | type Write struct method SelectServer (line 153) | func (selector *Write) SelectServer( type Deprioritized (line 184) | type Deprioritized struct method SelectServer (line 192) | func (d *Deprioritized) SelectServer( function NewDeprioritized (line 228) | func NewDeprioritized(inner description.ServerSelector, deprioritized []... type Func (line 236) | type Func method SelectServer (line 239) | func (ssf Func) SelectServer( function verifyMaxStaleness (line 246) | func verifyMaxStaleness(rp *readpref.ReadPref, topo description.Topology... function selectByKind (line 275) | func selectByKind(candidates []description.Server, kind description.Serv... function selectSecondaries (line 294) | func selectSecondaries(rp *readpref.ReadPref, candidates []description.S... function selectByTagSet (line 336) | func selectByTagSet(candidates []description.Server, tagSets []tag.Set) ... function selectForReplicaSet (line 364) | func selectForReplicaSet( FILE: internal/serverselector/server_selector_test.go type lastWriteDate (line 28) | type lastWriteDate struct type serverDesc (line 32) | type serverDesc struct type topDesc (line 42) | type topDesc struct type readPref (line 47) | type readPref struct type testCase (line 53) | type testCase struct function serverKindFromString (line 64) | func serverKindFromString(t *testing.T, s string) description.ServerKind { function topologyKindFromString (line 94) | func topologyKindFromString(t *testing.T, s string) description.Topology... function anyTagsInSets (line 119) | func anyTagsInSets(sets []tag.Set) bool { function findServerByAddress (line 129) | func findServerByAddress(servers []description.Server, address string) d... function compareServers (line 139) | func compareServers(t *testing.T, expected []*serverDesc, actual []descr... function TestMaxStalenessSpec (line 164) | func TestMaxStalenessSpec(t *testing.T) { function convertServerDesc (line 181) | func convertServerDesc(t *testing.T, serverDescription *serverDesc, base... function selectServers (line 221) | func selectServers(t *testing.T, test *testCase) error { function runTest (line 313) | func runTest(t *testing.T, testsDir string, directory string, filename s... function TestServerSelectionSpec (line 337) | func TestServerSelectionSpec(t *testing.T) { function TestServerSelection (line 357) | func TestServerSelection(t *testing.T) { function TestSelector_Sharded (line 546) | func TestSelector_Sharded(t *testing.T) { function BenchmarkLatencySelector (line 571) | func BenchmarkLatencySelector(b *testing.B) { function BenchmarkSelector_Sharded (line 640) | func BenchmarkSelector_Sharded(b *testing.B) { function Benchmark_SelectServer_SelectServer (line 706) | func Benchmark_SelectServer_SelectServer(b *testing.B) { function TestSelector_Single (line 727) | func TestSelector_Single(t *testing.T) { function TestSelector_Primary (line 752) | func TestSelector_Primary(t *testing.T) { function TestSelector_Primary_with_no_primary (line 764) | func TestSelector_Primary_with_no_primary(t *testing.T) { function TestSelector_PrimaryPreferred (line 776) | func TestSelector_PrimaryPreferred(t *testing.T) { function TestSelector_PrimaryPreferred_ignores_tags (line 789) | func TestSelector_PrimaryPreferred_ignores_tags(t *testing.T) { function TestSelector_PrimaryPreferred_with_no_primary (line 804) | func TestSelector_PrimaryPreferred_with_no_primary(t *testing.T) { function TestSelector_PrimaryPreferred_with_no_primary_and_tags (line 817) | func TestSelector_PrimaryPreferred_with_no_primary_and_tags(t *testing.T) { function TestSelector_PrimaryPreferred_with_maxStaleness (line 832) | func TestSelector_PrimaryPreferred_with_maxStaleness(t *testing.T) { function TestSelector_PrimaryPreferred_with_maxStaleness_and_no_primary (line 847) | func TestSelector_PrimaryPreferred_with_maxStaleness_and_no_primary(t *t... function TestSelector_SecondaryPreferred (line 862) | func TestSelector_SecondaryPreferred(t *testing.T) { function TestSelector_SecondaryPreferred_with_tags (line 874) | func TestSelector_SecondaryPreferred_with_tags(t *testing.T) { function TestSelector_SecondaryPreferred_with_tags_that_do_not_match (line 888) | func TestSelector_SecondaryPreferred_with_tags_that_do_not_match(t *test... function TestSelector_SecondaryPreferred_with_tags_that_do_not_match_and_no_primary (line 902) | func TestSelector_SecondaryPreferred_with_tags_that_do_not_match_and_no_... function TestSelector_SecondaryPreferred_with_no_secondaries (line 915) | func TestSelector_SecondaryPreferred_with_no_secondaries(t *testing.T) { function TestSelector_SecondaryPreferred_with_no_secondaries_or_primary (line 927) | func TestSelector_SecondaryPreferred_with_no_secondaries_or_primary(t *t... function TestSelector_SecondaryPreferred_with_maxStaleness (line 938) | func TestSelector_SecondaryPreferred_with_maxStaleness(t *testing.T) { function TestSelector_SecondaryPreferred_with_maxStaleness_and_no_primary (line 952) | func TestSelector_SecondaryPreferred_with_maxStaleness_and_no_primary(t ... function TestSelector_Secondary (line 966) | func TestSelector_Secondary(t *testing.T) { function TestSelector_Secondary_with_tags (line 978) | func TestSelector_Secondary_with_tags(t *testing.T) { function TestSelector_Secondary_with_empty_tag_set (line 992) | func TestSelector_Secondary_with_empty_tag_set(t *testing.T) { function TestSelector_Secondary_with_tags_that_do_not_match (line 1029) | func TestSelector_Secondary_with_tags_that_do_not_match(t *testing.T) { function TestSelector_Secondary_with_no_secondaries (line 1042) | func TestSelector_Secondary_with_no_secondaries(t *testing.T) { function TestSelector_Secondary_with_maxStaleness (line 1053) | func TestSelector_Secondary_with_maxStaleness(t *testing.T) { function TestSelector_Secondary_with_maxStaleness_and_no_primary (line 1067) | func TestSelector_Secondary_with_maxStaleness_and_no_primary(t *testing.... function TestSelector_Nearest (line 1081) | func TestSelector_Nearest(t *testing.T) { function TestSelector_Nearest_with_tags (line 1093) | func TestSelector_Nearest_with_tags(t *testing.T) { function TestSelector_Nearest_with_tags_that_do_not_match (line 1107) | func TestSelector_Nearest_with_tags_that_do_not_match(t *testing.T) { function TestSelector_Nearest_with_no_primary (line 1120) | func TestSelector_Nearest_with_no_primary(t *testing.T) { function TestSelector_Nearest_with_no_secondaries (line 1132) | func TestSelector_Nearest_with_no_secondaries(t *testing.T) { function TestSelector_Nearest_with_maxStaleness (line 1144) | func TestSelector_Nearest_with_maxStaleness(t *testing.T) { function TestSelector_Nearest_with_maxStaleness_and_no_primary (line 1158) | func TestSelector_Nearest_with_maxStaleness_and_no_primary(t *testing.T) { function TestSelector_Max_staleness_is_less_than_90_seconds (line 1172) | func TestSelector_Max_staleness_is_less_than_90_seconds(t *testing.T) { function TestSelector_Max_staleness_is_too_low (line 1197) | func TestSelector_Max_staleness_is_too_low(t *testing.T) { function TestEqualServers (line 1222) | func TestEqualServers(t *testing.T) { function TestVersionRangeIncludes (line 1276) | func TestVersionRangeIncludes(t *testing.T) { function TestDeprioritizedSelector (line 1301) | func TestDeprioritizedSelector(t *testing.T) { FILE: internal/spectest/skip.go function CheckSkip (line 850) | func CheckSkip(t *testing.T) { FILE: internal/spectest/spectest.go function FindJSONFilesInDir (line 20) | func FindJSONFilesInDir(t *testing.T, dir string) []string { function Path (line 49) | func Path(subdir string) string { FILE: internal/test/aws/aws_test.go function TestAWS (line 21) | func TestAWS(t *testing.T) { FILE: internal/test/compilecheck/compile_check_test.go constant mainGo (line 22) | mainGo = `package main type goExecConfig (line 69) | type goExecConfig struct function execContainer (line 75) | func execContainer(t *testing.T, c testcontainers.Container, cmd string)... function execGo (line 94) | func execGo(t *testing.T, c testcontainers.Container, cfg *goExecConfig,... function TestCompileCheck (line 120) | func TestCompileCheck(t *testing.T) { FILE: internal/test/goleak/goleak_test.go function TestGoroutineLeak (line 28) | func TestGoroutineLeak(t *testing.T) { function collectionName (line 120) | func collectionName(t *testing.T) string { FILE: internal/test/oidcauth/oidcauth_test.go function explicitUser (line 38) | func explicitUser(user string) string { function tokenFile (line 42) | func tokenFile(user string) string { function connectAdminClient (line 46) | func connectAdminClient() (*mongo.Client, error) { function connectWithMachineCB (line 50) | func connectWithMachineCB(uri string, cb options.OIDCCallback) (*mongo.C... function connectWithHumanCB (line 59) | func connectWithHumanCB(uri string, cb options.OIDCCallback) (*mongo.Cli... function connectWithHumanCBAndUser (line 68) | func connectWithHumanCBAndUser(uri string, principal string, cb options.... function connectWithHumanCBAndMonitor (line 83) | func connectWithHumanCBAndMonitor(uri string, cb options.OIDCCallback, m... function connectWithMachineCBAndProperties (line 92) | func connectWithMachineCBAndProperties(uri string, cb options.OIDCCallba... function isCallbackTest (line 103) | func isCallbackTest() bool { function connectWithOIDC (line 112) | func connectWithOIDC(uri string, cb options.OIDCCallback) (*mongo.Client... function TestMain (line 119) | func TestMain(m *testing.M) { function TestMachine_1_1_CallbackIsCalled (line 130) | func TestMachine_1_1_CallbackIsCalled(t *testing.T) { function TestMachine_1_2_CallbackIsCalledOnlyOnce (line 166) | func TestMachine_1_2_CallbackIsCalledOnlyOnce(t *testing.T) { function TestMachine_2_1_ValidCallbackInputs (line 215) | func TestMachine_2_1_ValidCallbackInputs(t *testing.T) { function TestMachine_2_3_OIDCCallbackReturnMissingData (line 269) | func TestMachine_2_3_OIDCCallbackReturnMissingData(t *testing.T) { function TestMachine_2_4_InvalidClientConfigurationWithCallback (line 300) | func TestMachine_2_4_InvalidClientConfigurationWithCallback(t *testing.T) { function TestMachine_2_5_InvalidUseOfAllowedHosts (line 318) | func TestMachine_2_5_InvalidUseOfAllowedHosts(t *testing.T) { function TestMachine_3_1_FailureWithCachedTokens (line 339) | func TestMachine_3_1_FailureWithCachedTokens(t *testing.T) { function TestMachine_3_2_AuthFailuresWithoutCachedTokens (line 385) | func TestMachine_3_2_AuthFailuresWithoutCachedTokens(t *testing.T) { function TestMachine_3_3_UnexpectedErrorCodeDoesNotClearCache (line 417) | func TestMachine_3_3_UnexpectedErrorCodeDoesNotClearCache(t *testing.T) { function TestMachine_4_1_ReauthenticationSucceeds (line 479) | func TestMachine_4_1_ReauthenticationSucceeds(t *testing.T) { function TestMachine_4_2_ReadCommandsFailIfReauthenticationFails (line 533) | func TestMachine_4_2_ReadCommandsFailIfReauthenticationFails(t *testing.... function TestMachine_4_3_WriteCommandsFailIfReauthenticationFails (line 602) | func TestMachine_4_3_WriteCommandsFailIfReauthenticationFails(t *testing... function TestHuman_1_1_SinglePrincipalImplicitUsername (line 671) | func TestHuman_1_1_SinglePrincipalImplicitUsername(t *testing.T) { function TestHuman_1_2_SinglePrincipalExplicitUsername (line 709) | func TestHuman_1_2_SinglePrincipalExplicitUsername(t *testing.T) { function TestHuman_1_3_MultiplePrincipalUser1 (line 747) | func TestHuman_1_3_MultiplePrincipalUser1(t *testing.T) { function TestHuman_1_4_MultiplePrincipalUser2 (line 791) | func TestHuman_1_4_MultiplePrincipalUser2(t *testing.T) { function TestHuman_1_5_MultiplePrincipalNoUser (line 835) | func TestHuman_1_5_MultiplePrincipalNoUser(t *testing.T) { function TestHuman_1_6_AllowedHostsBlocked (line 873) | func TestHuman_1_6_AllowedHostsBlocked(t *testing.T) { function TestHuman_1_7_AllowedHostsInConnectionStringIgnored (line 943) | func TestHuman_1_7_AllowedHostsInConnectionStringIgnored(t *testing.T) { function TestHuman_1_8_MachineIDPHumanCallback (line 954) | func TestHuman_1_8_MachineIDPHumanCallback(t *testing.T) { function TestHuman_2_1_ValidCallbackInputs (line 996) | func TestHuman_2_1_ValidCallbackInputs(t *testing.T) { function TestHuman_2_2_CallbackReturnsMissingData (line 1040) | func TestHuman_2_2_CallbackReturnsMissingData(t *testing.T) { function TestHuman_2_3_RefreshTokenIsPassedToCallback (line 1066) | func TestHuman_2_3_RefreshTokenIsPassedToCallback(t *testing.T) { function TestHuman_3_1_UsesSpeculativeAuth (line 1130) | func TestHuman_3_1_UsesSpeculativeAuth(t *testing.T) { function TestHuman_3_2_DoesNotUseSpeculativeAuth (line 1181) | func TestHuman_3_2_DoesNotUseSpeculativeAuth(t *testing.T) { function TestHuman_4_1_ReauthenticationSucceeds (line 1230) | func TestHuman_4_1_ReauthenticationSucceeds(t *testing.T) { function TestHuman_4_2_ReauthenticationSucceedsNoRefreshToken (line 1339) | func TestHuman_4_2_ReauthenticationSucceedsNoRefreshToken(t *testing.T) { function TestHuman_4_3_ReauthenticationSucceedsAfterRefreshFails (line 1404) | func TestHuman_4_3_ReauthenticationSucceedsAfterRefreshFails(t *testing.... function TestHuman_4_4_ReauthenticationFails (line 1470) | func TestHuman_4_4_ReauthenticationFails(t *testing.T) { function TestMachine_5_1_AzureWithNoUsername (line 1543) | func TestMachine_5_1_AzureWithNoUsername(t *testing.T) { function TestMachine_5_2_AzureWithBadUsername (line 1560) | func TestMachine_5_2_AzureWithBadUsername(t *testing.T) { function TestMachine_6_1_GCPWithNoUsername (line 1586) | func TestMachine_6_1_GCPWithNoUsername(t *testing.T) { function TestMachine_K8s (line 1605) | func TestMachine_K8s(t *testing.T) { FILE: internal/testutil/reflect.go function getUnexportedField (line 16) | func getUnexportedField(v any, fieldName string) any { function GetUnexportedFieldAs (line 39) | func GetUnexportedFieldAs[T any](v any, fieldName string) T { FILE: internal/uuid/uuid.go type UUID (line 17) | type UUID method String (line 56) | func (uuid UUID) String() string { type source (line 21) | type source struct method new (line 26) | func (s *source) new() (UUID, error) { function newSource (line 39) | func newSource() *source { function New (line 52) | func New() (UUID, error) { FILE: internal/uuid/uuid_test.go function TestGlobalSource (line 20) | func TestGlobalSource(t *testing.T) { function BenchmarkUuidGeneration (line 100) | func BenchmarkUuidGeneration(b *testing.B) { FILE: mongo/address/addr.go constant defaultPort (line 15) | defaultPort = "27017" type Address (line 18) | type Address method Network (line 22) | func (a Address) Network() string { method String (line 31) | func (a Address) String() string { method Canonicalize (line 51) | func (a Address) Canonicalize() Address { FILE: mongo/address/addr_test.go function TestAddress_String (line 15) | func TestAddress_String(t *testing.T) { function TestAddress_Canonicalize (line 35) | func TestAddress_Canonicalize(t *testing.T) { FILE: mongo/background_context.go type backgroundContext (line 14) | type backgroundContext struct method Value (line 32) | func (b *backgroundContext) Value(key any) any { function newBackgroundContext (line 21) | func newBackgroundContext(ctx context.Context) context.Context { FILE: mongo/background_context_test.go function TestBackgroundContext (line 17) | func TestBackgroundContext(t *testing.T) { FILE: mongo/batch_cursor.go type batchCursor (line 19) | type batchCursor interface type changeStreamCursor (line 63) | type changeStreamCursor interface FILE: mongo/bson_helpers_test.go function compareDocuments (line 17) | func compareDocuments(t *testing.T, expected, actual bson.Raw) { function numberFromValue (line 31) | func numberFromValue(t *testing.T, val bson.RawValue) int64 { function compareNumberValues (line 46) | func compareNumberValues(t *testing.T, key string, expected, actual bson... function compareBsonValues (line 55) | func compareBsonValues(t *testing.T, key string, expected, actual bson.R... FILE: mongo/bulk_write.go type bulkWriteBatch (line 24) | type bulkWriteBatch struct type bulkWrite (line 31) | type bulkWrite struct method execute (line 46) | func (bw *bulkWrite) execute(ctx context.Context) error { method runBatch (line 107) | func (bw *bulkWrite) runBatch(ctx context.Context, batch bulkWriteBatc... method runInsert (line 171) | func (bw *bulkWrite) runInsert(ctx context.Context, batch bulkWriteBat... method runDelete (line 236) | func (bw *bulkWrite) runDelete(ctx context.Context, batch bulkWriteBat... method runUpdate (line 354) | func (bw *bulkWrite) runUpdate(ctx context.Context, batch bulkWriteBat... method mergeResults (line 617) | func (bw *bulkWrite) mergeResults(newResult BulkWriteResult) { function createDeleteDoc (line 313) | func createDeleteDoc( type updateDoc (line 453) | type updateDoc struct method marshal (line 465) | func (doc updateDoc) marshal(bsonOpts *options.BSONOptions, registry *... function createBatches (line 530) | func createBatches(models []WriteModel, ordered bool) []bulkWriteBatch { function createOrderedBatches (line 564) | func createOrderedBatches(models []WriteModel) []bulkWriteBatch { type writeCommandKind (line 630) | type writeCommandKind constant insertCommand (line 634) | insertCommand writeCommandKind = iota constant updateOneCommand (line 635) | updateOneCommand constant updateManyCommand (line 636) | updateManyCommand constant deleteOneCommand (line 637) | deleteOneCommand constant deleteManyCommand (line 638) | deleteManyCommand FILE: mongo/bulk_write_models.go type WriteModel (line 18) | type WriteModel interface type InsertOneModel (line 25) | type InsertOneModel struct method SetDocument (line 37) | func (iom *InsertOneModel) SetDocument(doc any) *InsertOneModel { method writeModel (line 42) | func (*InsertOneModel) writeModel() {} function NewInsertOneModel (line 30) | func NewInsertOneModel() *InsertOneModel { type DeleteOneModel (line 47) | type DeleteOneModel struct method SetFilter (line 61) | func (dom *DeleteOneModel) SetFilter(filter any) *DeleteOneModel { method SetCollation (line 68) | func (dom *DeleteOneModel) SetCollation(collation *options.Collation) ... method SetHint (line 80) | func (dom *DeleteOneModel) SetHint(hint any) *DeleteOneModel { method writeModel (line 85) | func (*DeleteOneModel) writeModel() {} function NewDeleteOneModel (line 54) | func NewDeleteOneModel() *DeleteOneModel { type DeleteManyModel (line 90) | type DeleteManyModel struct method SetFilter (line 103) | func (dmm *DeleteManyModel) SetFilter(filter any) *DeleteManyModel { method SetCollation (line 110) | func (dmm *DeleteManyModel) SetCollation(collation *options.Collation)... method SetHint (line 122) | func (dmm *DeleteManyModel) SetHint(hint any) *DeleteManyModel { method writeModel (line 127) | func (*DeleteManyModel) writeModel() {} function NewDeleteManyModel (line 97) | func NewDeleteManyModel() *DeleteManyModel { type ReplaceOneModel (line 132) | type ReplaceOneModel struct method SetHint (line 153) | func (rom *ReplaceOneModel) SetHint(hint any) *ReplaceOneModel { method SetFilter (line 161) | func (rom *ReplaceOneModel) SetFilter(filter any) *ReplaceOneModel { method SetReplacement (line 168) | func (rom *ReplaceOneModel) SetReplacement(rep any) *ReplaceOneModel { method SetCollation (line 175) | func (rom *ReplaceOneModel) SetCollation(collation *options.Collation)... method SetUpsert (line 183) | func (rom *ReplaceOneModel) SetUpsert(upsert bool) *ReplaceOneModel { method SetSort (line 192) | func (rom *ReplaceOneModel) SetSort(sort any) *ReplaceOneModel { method writeModel (line 197) | func (*ReplaceOneModel) writeModel() {} function NewReplaceOneModel (line 142) | func NewReplaceOneModel() *ReplaceOneModel { type UpdateOneModel (line 202) | type UpdateOneModel struct method SetHint (line 224) | func (uom *UpdateOneModel) SetHint(hint any) *UpdateOneModel { method SetFilter (line 232) | func (uom *UpdateOneModel) SetFilter(filter any) *UpdateOneModel { method SetUpdate (line 239) | func (uom *UpdateOneModel) SetUpdate(update any) *UpdateOneModel { method SetArrayFilters (line 246) | func (uom *UpdateOneModel) SetArrayFilters(filters []any) *UpdateOneMo... method SetCollation (line 253) | func (uom *UpdateOneModel) SetCollation(collation *options.Collation) ... method SetUpsert (line 261) | func (uom *UpdateOneModel) SetUpsert(upsert bool) *UpdateOneModel { method SetSort (line 270) | func (uom *UpdateOneModel) SetSort(sort any) *UpdateOneModel { method writeModel (line 275) | func (*UpdateOneModel) writeModel() {} function NewUpdateOneModel (line 213) | func NewUpdateOneModel() *UpdateOneModel { type UpdateManyModel (line 280) | type UpdateManyModel struct method SetHint (line 301) | func (umm *UpdateManyModel) SetHint(hint any) *UpdateManyModel { method SetFilter (line 308) | func (umm *UpdateManyModel) SetFilter(filter any) *UpdateManyModel { method SetUpdate (line 315) | func (umm *UpdateManyModel) SetUpdate(update any) *UpdateManyModel { method SetArrayFilters (line 322) | func (umm *UpdateManyModel) SetArrayFilters(filters []any) *UpdateMany... method SetCollation (line 329) | func (umm *UpdateManyModel) SetCollation(collation *options.Collation)... method SetUpsert (line 337) | func (umm *UpdateManyModel) SetUpsert(upsert bool) *UpdateManyModel { method writeModel (line 342) | func (*UpdateManyModel) writeModel() {} function NewUpdateManyModel (line 290) | func NewUpdateManyModel() *UpdateManyModel { FILE: mongo/change_stream.go type ChangeStream (line 69) | type ChangeStream struct method createOperationDeployment (line 244) | func (cs *ChangeStream) createOperationDeployment(server driver.Server... method executeOperation (line 252) | func (cs *ChangeStream) executeOperation(ctx context.Context, resuming... method updatePbrtFromCommand (line 375) | func (cs *ChangeStream) updatePbrtFromCommand() { method storeResumeToken (line 382) | func (cs *ChangeStream) storeResumeToken() error { method buildPipelineSlice (line 405) | func (cs *ChangeStream) buildPipelineSlice(pipeline any) error { method createPipelineOptionsDoc (line 440) | func (cs *ChangeStream) createPipelineOptionsDoc() (bsoncore.Document,... method pipelineToBSON (line 495) | func (cs *ChangeStream) pipelineToBSON() (bsoncore.Document, error) { method replaceOptions (line 506) | func (cs *ChangeStream) replaceOptions(wireVersion *description.Versio... method ID (line 536) | func (cs *ChangeStream) ID() int64 { method RemainingBatchLength (line 545) | func (cs *ChangeStream) RemainingBatchLength() int { method SetBatchSize (line 552) | func (cs *ChangeStream) SetBatchSize(size int32) { method Decode (line 561) | func (cs *ChangeStream) Decode(val any) error { method Err (line 571) | func (cs *ChangeStream) Err() error { method Close (line 584) | func (cs *ChangeStream) Close(ctx context.Context) error { method ResumeToken (line 602) | func (cs *ChangeStream) ResumeToken() bson.Raw { method Next (line 614) | func (cs *ChangeStream) Next(ctx context.Context) bool { method TryNext (line 637) | func (cs *ChangeStream) TryNext(ctx context.Context) bool { method next (line 641) | func (cs *ChangeStream) next(ctx context.Context, nonBlocking bool) bo... method loopNext (line 671) | func (cs *ChangeStream) loopNext(ctx context.Context, nonBlocking bool) { method isResumableError (line 747) | func (cs *ChangeStream) isResumableError() bool { method emptyBatch (line 769) | func (cs *ChangeStream) emptyBatch() bool { type changeStreamConfig (line 93) | type changeStreamConfig struct function newChangeStream (line 105) | func newChangeStream(ctx context.Context, config changeStreamConfig, pip... type StreamType (line 774) | type StreamType constant CollectionStream (line 779) | CollectionStream StreamType = iota constant DatabaseStream (line 780) | DatabaseStream constant ClientStream (line 781) | ClientStream FILE: mongo/change_stream_deployment.go type changeStreamDeployment (line 18) | type changeStreamDeployment struct method SelectServer (line 30) | func (c *changeStreamDeployment) SelectServer(context.Context, descrip... method Kind (line 34) | func (c *changeStreamDeployment) Kind() description.TopologyKind { method Connection (line 38) | func (c *changeStreamDeployment) Connection(context.Context) (*mnet.Co... method RTTMonitor (line 42) | func (c *changeStreamDeployment) RTTMonitor() driver.RTTMonitor { method ProcessError (line 46) | func (c *changeStreamDeployment) ProcessError(err error, describer mne... method GetServerSelectionTimeout (line 57) | func (*changeStreamDeployment) GetServerSelectionTimeout() time.Durati... FILE: mongo/change_stream_test.go function TestChangeStream (line 15) | func TestChangeStream(t *testing.T) { FILE: mongo/client.go constant defaultLocalThreshold (line 43) | defaultLocalThreshold = 15 * time.Millisecond constant defaultMaxPoolSize (line 44) | defaultMaxPoolSize = 100 type Client (line 60) | type Client struct method connect (line 269) | func (c *Client) connect() error { method AppendDriverInfo (line 320) | func (c *Client) AppendDriverInfo(info options.DriverInfo) { method Disconnect (line 360) | func (c *Client) Disconnect(ctx context.Context) error { method Ping (line 418) | func (c *Client) Ping(ctx context.Context, rp *readpref.ReadPref) error { method StartSession (line 445) | func (c *Client) StartSession(opts ...options.Lister[options.SessionOp... method endSessions (line 500) | func (c *Client) endSessions(ctx context.Context) { method configureAutoEncryption (line 524) | func (c *Client) configureAutoEncryption(args *options.ClientOptions) ... method getOrCreateInternalClient (line 552) | func (c *Client) getOrCreateInternalClient(args *options.ClientOptions... method configureKeyVaultClientFLE (line 568) | func (c *Client) configureKeyVaultClientFLE(clientOpts *options.Client... method configureMetadataClientFLE (line 591) | func (c *Client) configureMetadataClientFLE(clientOpts *options.Client... method newMongoCrypt (line 609) | func (c *Client) newMongoCrypt(opts *options.AutoEncryptionOptions) (*... method configureCryptFLE (line 694) | func (c *Client) configureCryptFLE(mc *mongocrypt.MongoCrypt, opts *op... method validSession (line 716) | func (c *Client) validSession(sess *session.Client) error { method Database (line 724) | func (c *Client) Database(name string, opts ...options.Lister[options.... method ListDatabases (line 737) | func (c *Client) ListDatabases(ctx context.Context, filter any, opts .... method ListDatabaseNames (line 815) | func (c *Client) ListDatabaseNames(ctx context.Context, filter any, op... method UseSession (line 861) | func (c *Client) UseSession(ctx context.Context, fn func(context.Conte... method UseSessionWithOptions (line 871) | func (c *Client) UseSessionWithOptions( method Watch (line 898) | func (c *Client) Watch(ctx context.Context, pipeline any, method NumberSessionsInProgress (line 916) | func (c *Client) NumberSessionsInProgress() int { method createBaseCursorOptions (line 923) | func (c *Client) createBaseCursorOptions() driver.CursorOptions { method BulkWrite (line 939) | func (c *Client) BulkWrite(ctx context.Context, writes []ClientBulkWrite, function Connect (line 107) | func Connect(opts ...*options.ClientOptions) (*Client, error) { function newClient (line 132) | func newClient(opts ...*options.ClientOptions) (*Client, error) { function WithSession (line 843) | func WithSession(ctx context.Context, sess *Session, fn func(context.Con... type ClientBulkWrite (line 932) | type ClientBulkWrite struct function newLogger (line 1035) | func newLogger(opts *options.LoggerOptions) (*logger.Logger, error) { FILE: mongo/client_bulk_write.go constant database (line 28) | database = "admin" type clientBulkWritePair (line 31) | type clientBulkWritePair struct type clientBulkWrite (line 36) | type clientBulkWrite struct method execute (line 53) | func (bw *clientBulkWrite) execute(ctx context.Context) error { method newCommand (line 125) | func (bw *clientBulkWrite) newCommand() func([]byte, description.Selec... type cursorInfo (line 163) | type cursorInfo struct method extractError (line 176) | func (cur *cursorInfo) extractError() *WriteError { type modelBatches (line 193) | type modelBatches struct method IsOrdered (line 213) | func (mb *modelBatches) IsOrdered() *bool { method AdvanceBatches (line 217) | func (mb *modelBatches) AdvanceBatches(n int) { method Size (line 224) | func (mb *modelBatches) Size() int { method AppendBatchSequence (line 231) | func (mb *modelBatches) AppendBatchSequence(dst []byte, maxCount, tota... method AppendBatchArray (line 253) | func (mb *modelBatches) AppendBatchArray(dst []byte, maxCount, totalSi... method appendBatches (line 271) | func (mb *modelBatches) appendBatches(fn functionSet, dst []byte, maxC... method processResponse (line 421) | func (mb *modelBatches) processResponse(ctx context.Context, resp bson... method appendDeleteResult (line 523) | func (mb *modelBatches) appendDeleteResult(cur *cursorInfo, raw bson.R... method appendInsertResult (line 544) | func (mb *modelBatches) appendInsertResult(cur *cursorInfo, raw bson.R... method appendUpdateResult (line 565) | func (mb *modelBatches) appendUpdateResult(cur *cursorInfo, raw bson.R... type functionSet (line 265) | type functionSet struct type clientInsertDoc (line 595) | type clientInsertDoc struct method marshal (line 600) | func (d *clientInsertDoc) marshal(bsonOpts *options.BSONOptions, regis... type clientUpdateDoc (line 618) | type clientUpdateDoc struct method marshal (line 631) | func (d *clientUpdateDoc) marshal(bsonOpts *options.BSONOptions, regis... type clientDeleteDoc (line 694) | type clientDeleteDoc struct method marshal (line 702) | func (d *clientDeleteDoc) marshal(bsonOpts *options.BSONOptions, regis... FILE: mongo/client_bulk_write_models.go type ClientWriteModel (line 19) | type ClientWriteModel interface type ClientInsertOneModel (line 26) | type ClientInsertOneModel struct method clientWriteModel (line 35) | func (*ClientInsertOneModel) clientWriteModel() {} method SetDocument (line 40) | func (iom *ClientInsertOneModel) SetDocument(doc any) *ClientInsertOne... function NewClientInsertOneModel (line 31) | func NewClientInsertOneModel() *ClientInsertOneModel { type ClientUpdateOneModel (line 48) | type ClientUpdateOneModel struct method clientWriteModel (line 63) | func (*ClientUpdateOneModel) clientWriteModel() {} method SetHint (line 67) | func (uom *ClientUpdateOneModel) SetHint(hint any) *ClientUpdateOneMod... method SetFilter (line 75) | func (uom *ClientUpdateOneModel) SetFilter(filter any) *ClientUpdateOn... method SetUpdate (line 82) | func (uom *ClientUpdateOneModel) SetUpdate(update any) *ClientUpdateOn... method SetArrayFilters (line 89) | func (uom *ClientUpdateOneModel) SetArrayFilters(filters []any) *Clien... method SetCollation (line 96) | func (uom *ClientUpdateOneModel) SetCollation(collation *options.Colla... method SetUpsert (line 104) | func (uom *ClientUpdateOneModel) SetUpsert(upsert bool) *ClientUpdateO... method SetSort (line 113) | func (uom *ClientUpdateOneModel) SetSort(sort any) *ClientUpdateOneMod... function NewClientUpdateOneModel (line 59) | func NewClientUpdateOneModel() *ClientUpdateOneModel { type ClientUpdateManyModel (line 121) | type ClientUpdateManyModel struct method clientWriteModel (line 135) | func (*ClientUpdateManyModel) clientWriteModel() {} method SetHint (line 139) | func (umm *ClientUpdateManyModel) SetHint(hint any) *ClientUpdateManyM... method SetFilter (line 146) | func (umm *ClientUpdateManyModel) SetFilter(filter any) *ClientUpdateM... method SetUpdate (line 153) | func (umm *ClientUpdateManyModel) SetUpdate(update any) *ClientUpdateM... method SetArrayFilters (line 160) | func (umm *ClientUpdateManyModel) SetArrayFilters(filters []any) *Clie... method SetCollation (line 167) | func (umm *ClientUpdateManyModel) SetCollation(collation *options.Coll... method SetUpsert (line 175) | func (umm *ClientUpdateManyModel) SetUpsert(upsert bool) *ClientUpdate... function NewClientUpdateManyModel (line 131) | func NewClientUpdateManyModel() *ClientUpdateManyModel { type ClientReplaceOneModel (line 183) | type ClientReplaceOneModel struct method clientWriteModel (line 197) | func (*ClientReplaceOneModel) clientWriteModel() {} method SetHint (line 201) | func (rom *ClientReplaceOneModel) SetHint(hint any) *ClientReplaceOneM... method SetFilter (line 209) | func (rom *ClientReplaceOneModel) SetFilter(filter any) *ClientReplace... method SetReplacement (line 216) | func (rom *ClientReplaceOneModel) SetReplacement(rep any) *ClientRepla... method SetCollation (line 223) | func (rom *ClientReplaceOneModel) SetCollation(collation *options.Coll... method SetUpsert (line 231) | func (rom *ClientReplaceOneModel) SetUpsert(upsert bool) *ClientReplac... method SetSort (line 240) | func (rom *ClientReplaceOneModel) SetSort(sort any) *ClientReplaceOneM... function NewClientReplaceOneModel (line 193) | func NewClientReplaceOneModel() *ClientReplaceOneModel { type ClientDeleteOneModel (line 248) | type ClientDeleteOneModel struct method clientWriteModel (line 259) | func (*ClientDeleteOneModel) clientWriteModel() {} method SetFilter (line 264) | func (dom *ClientDeleteOneModel) SetFilter(filter any) *ClientDeleteOn... method SetCollation (line 271) | func (dom *ClientDeleteOneModel) SetCollation(collation *options.Colla... method SetHint (line 278) | func (dom *ClientDeleteOneModel) SetHint(hint any) *ClientDeleteOneMod... function NewClientDeleteOneModel (line 255) | func NewClientDeleteOneModel() *ClientDeleteOneModel { type ClientDeleteManyModel (line 286) | type ClientDeleteManyModel struct method clientWriteModel (line 297) | func (*ClientDeleteManyModel) clientWriteModel() {} method SetFilter (line 301) | func (dmm *ClientDeleteManyModel) SetFilter(filter any) *ClientDeleteM... method SetCollation (line 308) | func (dmm *ClientDeleteManyModel) SetCollation(collation *options.Coll... method SetHint (line 315) | func (dmm *ClientDeleteManyModel) SetHint(hint any) *ClientDeleteManyM... function NewClientDeleteManyModel (line 293) | func NewClientDeleteManyModel() *ClientDeleteManyModel { FILE: mongo/client_bulk_write_test.go function TestBatches (line 17) | func TestBatches(t *testing.T) { function TestAppendBatchSequence (line 28) | func TestAppendBatchSequence(t *testing.T) { FILE: mongo/client_encryption.go type ClientEncryption (line 26) | type ClientEncryption struct method CreateEncryptedCollection (line 84) | func (ce *ClientEncryption) CreateEncryptedCollection(ctx context.Cont... method AddKeyAltName (line 151) | func (ce *ClientEncryption) AddKeyAltName(ctx context.Context, id bson... method CreateDataKey (line 164) | func (ce *ClientEncryption) CreateDataKey( method Encrypt (line 276) | func (ce *ClientEncryption) Encrypt( method EncryptExpression (line 305) | func (ce *ClientEncryption) EncryptExpression(ctx context.Context, exp... method Decrypt (line 337) | func (ce *ClientEncryption) Decrypt(ctx context.Context, val bson.Bina... method Close (line 352) | func (ce *ClientEncryption) Close(ctx context.Context) error { method DeleteKey (line 367) | func (ce *ClientEncryption) DeleteKey(ctx context.Context, id bson.Bin... method GetKeyByAltName (line 377) | func (ce *ClientEncryption) GetKeyByAltName(ctx context.Context, keyAl... method GetKey (line 388) | func (ce *ClientEncryption) GetKey(ctx context.Context, id bson.Binary... method GetKeys (line 399) | func (ce *ClientEncryption) GetKeys(ctx context.Context) (*Cursor, err... method RemoveKeyAltName (line 409) | func (ce *ClientEncryption) RemoveKeyAltName(ctx context.Context, id b... method RewrapManyDataKey (line 481) | func (ce *ClientEncryption) RewrapManyDataKey( function NewClientEncryption (line 34) | func NewClientEncryption(keyVaultClient *Client, opts ...options.Lister[... function transformExplicitEncryptionOptions (line 210) | func transformExplicitEncryptionOptions(opts ...options.Lister[options.E... function setRewrapManyDataKeyWriteModels (line 426) | func setRewrapManyDataKeyWriteModels(rewrappedDocuments []bsoncore.Docum... function splitNamespace (line 547) | func splitNamespace(ns string) (string, string) { FILE: mongo/client_encryption_test.go function TestClientEncryption_ErrClientDisconnected (line 22) | func TestClientEncryption_ErrClientDisconnected(t *testing.T) { FILE: mongo/client_examples_test.go function ExampleClient (line 21) | func ExampleClient() { function ExampleConnect_ping (line 43) | func ExampleConnect_ping() { function ExampleConnect_replicaSet (line 67) | func ExampleConnect_replicaSet() { function ExampleConnect_sharded (line 84) | func ExampleConnect_sharded() { function ExampleConnect_sRV (line 98) | func ExampleConnect_sRV() { function ExampleConnect_direct (line 116) | func ExampleConnect_direct() { function ExampleConnect_sCRAM (line 130) | func ExampleConnect_sCRAM() { function ExampleConnect_x509 (line 153) | func ExampleConnect_x509() { function ExampleConnect_pLAIN (line 189) | func ExampleConnect_pLAIN() { function ExampleConnect_kerberos (line 214) | func ExampleConnect_kerberos() { function ExampleConnect_aWS (line 249) | func ExampleConnect_aWS() { function ExampleConnect_stableAPI (line 357) | func ExampleConnect_stableAPI() { function ExampleConnect_bSONOptions (line 419) | func ExampleConnect_bSONOptions() { function ExampleConnect_oIDC (line 464) | func ExampleConnect_oIDC() { function negotiateWithIDP (line 722) | func negotiateWithIDP(_ context.Context, _ string) (string, error) { FILE: mongo/client_side_encryption_examples_test.go function Example_clientSideEncryption (line 20) | func Example_clientSideEncryption() { function Example_clientSideEncryptionCreateKey (line 69) | func Example_clientSideEncryptionCreateKey() { function Example_explictEncryption (line 153) | func Example_explictEncryption() { function Example_explictEncryptionWithAutomaticDecryption (line 264) | func Example_explictEncryptionWithAutomaticDecryption() { FILE: mongo/client_test.go function setupClient (line 33) | func setupClient(opts ...*options.ClientOptions) *Client { function TestClient (line 43) | func TestClient(t *testing.T) { FILE: mongo/collection.go type Collection (line 35) | type Collection struct method copy (line 129) | func (coll *Collection) copy() *Collection { method Clone (line 146) | func (coll *Collection) Clone(opts ...options.Lister[options.Collectio... method Name (line 178) | func (coll *Collection) Name() string { method Database (line 183) | func (coll *Collection) Database() *Database { method BulkWrite (line 194) | func (coll *Collection) BulkWrite(ctx context.Context, models []WriteM... method insert (line 262) | func (coll *Collection) insert( method InsertOne (line 387) | func (coll *Collection) InsertOne(ctx context.Context, document any, method InsertMany (line 440) | func (coll *Collection) InsertMany( method delete (line 489) | func (coll *Collection) delete( method DeleteOne (line 603) | func (coll *Collection) DeleteOne( method DeleteMany (line 633) | func (coll *Collection) DeleteMany( method updateOrReplace (line 646) | func (coll *Collection) updateOrReplace( method UpdateByID (line 770) | func (coll *Collection) UpdateByID( method UpdateOne (line 796) | func (coll *Collection) UpdateOne( method UpdateMany (line 842) | func (coll *Collection) UpdateMany( method ReplaceOne (line 878) | func (coll *Collection) ReplaceOne( method Aggregate (line 931) | func (coll *Collection) Aggregate( method CountDocuments (line 1127) | func (coll *Collection) CountDocuments(ctx context.Context, filter any, method EstimatedDocumentCount (line 1223) | func (coll *Collection) EstimatedDocumentCount( method Distinct (line 1292) | func (coll *Collection) Distinct( method Find (line 1396) | func (coll *Collection) Find(ctx context.Context, filter any, method find (line 1411) | func (coll *Collection) find( method FindOne (line 1618) | func (coll *Collection) FindOne(ctx context.Context, filter any, method findAndModify (line 1639) | func (coll *Collection) findAndModify(ctx context.Context, op *operati... method FindOneAndDelete (line 1707) | func (coll *Collection) FindOneAndDelete( method FindOneAndReplace (line 1788) | func (coll *Collection) FindOneAndReplace( method FindOneAndUpdate (line 1891) | func (coll *Collection) FindOneAndUpdate( method Watch (line 2004) | func (coll *Collection) Watch(ctx context.Context, pipeline any, method Indexes (line 2022) | func (coll *Collection) Indexes() IndexView { method SearchIndexes (line 2027) | func (coll *Collection) SearchIndexes() SearchIndexView { method Drop (line 2038) | func (coll *Collection) Drop(ctx context.Context, opts ...options.List... method dropEncryptedCollection (line 2065) | func (coll *Collection) dropEncryptedCollection(ctx context.Context, e... method drop (line 2095) | func (coll *Collection) drop(ctx context.Context) error { type aggregateParams (line 49) | type aggregateParams struct function closeImplicitSession (line 65) | func closeImplicitSession(sess *session.Client) { function newCollection (line 71) | func newCollection(db *Database, name string, opts ...options.Lister[opt... function aggregate (line 956) | func aggregate(a aggregateParams, opts ...options.Lister[options.Aggrega... function newFindArgsFromFindOneArgs (line 1588) | func newFindArgsFromFindOneArgs(args *options.FindOneOptions) *options.F... function toDocument (line 2138) | func toDocument(co *options.Collation) bson.Raw { type pinnedServerSelector (line 2171) | type pinnedServerSelector struct method String (line 2179) | func (pss pinnedServerSelector) String() string { method SelectServer (line 2187) | func (pss pinnedServerSelector) SelectServer( function makePinnedSelector (line 2205) | func makePinnedSelector(sess *session.Client, fallback description.Serve... function makeReadPrefSelector (line 2218) | func makeReadPrefSelector( function makeOutputAggregateSelector (line 2235) | func makeOutputAggregateSelector( function isUnorderedMap (line 2258) | func isUnorderedMap(val any) bool { FILE: mongo/collection_test.go constant testDBName (line 28) | testDBName = "unitTestDB" function setupColl (line 31) | func setupColl(name string, opts ...options.Lister[options.CollectionOpt... function compareColls (line 36) | func compareColls(t *testing.T, expected *Collection, got *Collection) { function TestCollection (line 45) | func TestCollection(t *testing.T) { function TestCollation (line 233) | func TestCollation(t *testing.T) { function TestNewFindArgsFromFindOneArgs (line 266) | func TestNewFindArgsFromFindOneArgs(t *testing.T) { FILE: mongo/crud_examples_test.go function ExampleClient_ListDatabaseNames (line 26) | func ExampleClient_ListDatabaseNames() { function ExampleClient_Watch (line 42) | func ExampleClient_Watch() { function ExampleDatabase_CreateCollection (line 68) | func ExampleDatabase_CreateCollection() { function ExampleDatabase_CreateView (line 102) | func ExampleDatabase_CreateView() { function ExampleDatabase_ListCollectionNames (line 130) | func ExampleDatabase_ListCollectionNames() { function ExampleDatabase_RunCommand (line 146) | func ExampleDatabase_RunCommand() { function ExampleDatabase_Watch (line 163) | func ExampleDatabase_Watch() { function ExampleCollection_Aggregate (line 189) | func ExampleCollection_Aggregate() { function ExampleCollection_BulkWrite (line 227) | func ExampleCollection_BulkWrite() { function ExampleCollection_CountDocuments (line 264) | func ExampleCollection_CountDocuments() { function ExampleCollection_DeleteMany (line 280) | func ExampleCollection_DeleteMany() { function ExampleCollection_DeleteOne (line 298) | func ExampleCollection_DeleteOne() { function ExampleCollection_Distinct (line 316) | func ExampleCollection_Distinct() { function ExampleCollection_EstimatedDocumentCount (line 342) | func ExampleCollection_EstimatedDocumentCount() { function ExampleCollection_Find (line 358) | func ExampleCollection_Find() { function ExampleCollection_FindOne (line 381) | func ExampleCollection_FindOne() { function ExampleCollection_FindOneAndDelete (line 406) | func ExampleCollection_FindOneAndDelete() { function ExampleCollection_FindOneAndReplace (line 432) | func ExampleCollection_FindOneAndReplace() { function ExampleCollection_FindOneAndUpdate (line 461) | func ExampleCollection_FindOneAndUpdate() { function ExampleCollection_InsertMany (line 490) | func ExampleCollection_InsertMany() { function ExampleCollection_InsertOne (line 508) | func ExampleCollection_InsertOne() { function ExampleCollection_ReplaceOne (line 519) | func ExampleCollection_ReplaceOne() { function ExampleCollection_UpdateMany (line 544) | func ExampleCollection_UpdateMany() { function ExampleCollection_UpdateOne (line 563) | func ExampleCollection_UpdateOne() { function ExampleCollection_Watch (line 589) | func ExampleCollection_Watch() { function ExampleWithSession (line 615) | func ExampleWithSession() { function ExampleClient_UseSessionWithOptions (line 682) | func ExampleClient_UseSessionWithOptions() { function ExampleClient_StartSession_withTransaction (line 741) | func ExampleClient_StartSession_withTransaction() { function ExampleNewSessionContext (line 792) | func ExampleNewSessionContext() { function ExampleCursor_All (line 845) | func ExampleCursor_All() { function ExampleCursor_Next (line 855) | func ExampleCursor_Next() { function ExampleCursor_TryNext (line 874) | func ExampleCursor_TryNext() { function ExampleCursor_RemainingBatchLength (line 903) | func ExampleCursor_RemainingBatchLength() { function ExampleChangeStream_Next (line 945) | func ExampleChangeStream_Next() { function ExampleChangeStream_TryNext (line 967) | func ExampleChangeStream_TryNext() { function ExampleChangeStream_ResumeToken (line 997) | func ExampleChangeStream_ResumeToken() { function ExampleIndexView_CreateMany (line 1041) | func ExampleIndexView_CreateMany() { function ExampleIndexView_List (line 1069) | func ExampleIndexView_List() { function ExampleCollection_Find_primitiveRegex (line 1090) | func ExampleCollection_Find_primitiveRegex() { function ExampleCollection_Find_regex (line 1131) | func ExampleCollection_Find_regex() { FILE: mongo/crypt_retrievers.go type keyRetriever (line 16) | type keyRetriever struct method cryptKeys (line 20) | func (kr *keyRetriever) cryptKeys(ctx context.Context, filter bsoncore... type collInfoRetriever (line 44) | type collInfoRetriever struct method cryptCollInfo (line 48) | func (cir *collInfoRetriever) cryptCollInfo(ctx context.Context, db st... FILE: mongo/cursor.go type Cursor (line 29) | type Cursor struct method ID (line 169) | func (c *Cursor) ID() int64 { return c.bc.ID() } method Next (line 184) | func (c *Cursor) Next(ctx context.Context) bool { method TryNext (line 200) | func (c *Cursor) TryNext(ctx context.Context) bool { method next (line 204) | func (c *Cursor) next(ctx context.Context, nonBlocking bool) bool { method Decode (line 352) | func (c *Cursor) Decode(val any) error { method Err (line 359) | func (c *Cursor) Err() error { return c.err } method Close (line 363) | func (c *Cursor) Close(ctx context.Context) error { method All (line 374) | func (c *Cursor) All(ctx context.Context, results any) error { method RemainingBatchLength (line 422) | func (c *Cursor) RemainingBatchLength() int { method addFromBatch (line 428) | func (c *Cursor) addFromBatch(sliceVal reflect.Value, elemType reflect... method closeImplicitSession (line 457) | func (c *Cursor) closeImplicitSession() { method SetBatchSize (line 467) | func (c *Cursor) SetBatchSize(batchSize int32) { method SetMaxAwaitTime (line 477) | func (c *Cursor) SetMaxAwaitTime(dur time.Duration) { method SetComment (line 483) | func (c *Cursor) SetComment(comment any) { type cursorOptions (line 46) | type cursorOptions struct type cursorOption (line 51) | type cursorOption function withCursorOptionClientTimeout (line 53) | func withCursorOptionClientTimeout(dur *time.Duration) cursorOption { function newCursor (line 62) | func newCursor( function newCursorWithSession (line 71) | func newCursorWithSession( function newEmptyCursor (line 109) | func newEmptyCursor() *Cursor { function NewCursorFromDocuments (line 117) | func NewCursorFromDocuments(documents []any, preloadedErr error, registr... function getDecoder (line 306) | func getDecoder( function BatchCursorFromCursor (line 492) | func BatchCursorFromCursor(c *Cursor) *driver.BatchCursor { FILE: mongo/cursor_test.go type testBatchCursor (line 24) | type testBatchCursor struct method ID (line 66) | func (tbc *testBatchCursor) ID() int64 { method Next (line 74) | func (tbc *testBatchCursor) Next(context.Context) bool { method Batch (line 84) | func (tbc *testBatchCursor) Batch() *bsoncore.Iterator { method Server (line 88) | func (tbc *testBatchCursor) Server() driver.Server { method Err (line 92) | func (tbc *testBatchCursor) Err() error { method Close (line 96) | func (tbc *testBatchCursor) Close(context.Context) error { method SetBatchSize (line 101) | func (tbc *testBatchCursor) SetBatchSize(int32) {} method SetComment (line 102) | func (tbc *testBatchCursor) SetComment(any) {} method SetMaxAwaitTime (line 103) | func (tbc *testBatchCursor) SetMaxAwaitTime(time.Duration) {} method MaxAwaitTime (line 104) | func (tbc *testBatchCursor) MaxAwaitTime() *time.Duration { return nil } function newTestBatchCursor (line 32) | func newTestBatchCursor(numBatches, batchSize int) *testBatchCursor { function TestCursor (line 106) | func TestCursor(t *testing.T) { function TestNewCursorFromDocuments (line 249) | func TestNewCursorFromDocuments(t *testing.T) { function TestGetDecoder (line 303) | func TestGetDecoder(t *testing.T) { function BenchmarkNewCursorFromDocuments (line 335) | func BenchmarkNewCursorFromDocuments(b *testing.B) { FILE: mongo/database.go type Database (line 35) | type Database struct method Client (line 103) | func (db *Database) Client() *Client { method Name (line 108) | func (db *Database) Name() string { method Collection (line 116) | func (db *Database) Collection(name string, opts ...options.Lister[opt... method Aggregate (line 131) | func (db *Database) Aggregate( method processRunCommand (line 153) | func (db *Database) processRunCommand( method RunCommand (line 236) | func (db *Database) RunCommand( method RunCommandCursor (line 278) | func (db *Database) RunCommandCursor( method Drop (line 314) | func (db *Database) Drop(ctx context.Context) error { method ListCollectionSpecifications (line 366) | func (db *Database) ListCollectionSpecifications( method ListCollections (line 429) | func (db *Database) ListCollections( method ListCollectionNames (line 530) | func (db *Database) ListCollectionNames( method Watch (line 576) | func (db *Database) Watch(ctx context.Context, pipeline any, method CreateCollection (line 601) | func (db *Database) CreateCollection(ctx context.Context, name string,... method getEncryptedFieldsFromServer (line 623) | func (db *Database) getEncryptedFieldsFromServer(ctx context.Context, ... method getEncryptedFieldsFromMap (line 653) | func (db *Database) getEncryptedFieldsFromMap(collectionName string) a... method createCollectionWithEncryptedFields (line 670) | func (db *Database) createCollectionWithEncryptedFields( method createCollection (line 749) | func (db *Database) createCollection( method createCollectionOperation (line 761) | func (db *Database) createCollectionOperation( method CreateView (line 897) | func (db *Database) CreateView(ctx context.Context, viewName, viewOn s... method executeCreateOperation (line 921) | func (db *Database) executeCreateOperation(ctx context.Context, op *op... method GridFSBucket (line 956) | func (db *Database) GridFSBucket(opts ...options.Lister[options.Bucket... function newDatabase (line 47) | func newDatabase(client *Client, name string, opts ...options.Lister[opt... FILE: mongo/database_test.go function setupDB (line 25) | func setupDB(name string, opts ...options.Lister[options.DatabaseOptions... function compareDbs (line 30) | func compareDbs(t *testing.T, expected, got *Database) { function TestDatabase (line 42) | func TestDatabase(t *testing.T) { FILE: mongo/errors.go type InvalidArgumentError (line 29) | type InvalidArgumentError struct method Error (line 34) | func (e InvalidArgumentError) Error() string { method Unwrap (line 39) | func (e InvalidArgumentError) Unwrap() error { type ErrMapForOrderedArgument (line 59) | type ErrMapForOrderedArgument struct method Error (line 64) | func (e ErrMapForOrderedArgument) Error() string { function wrapErrors (line 72) | func wrapErrors(err error) error { function IsDuplicateKeyError (line 174) | func IsDuplicateKeyError(err error) bool { function IsTimeout (line 195) | func IsTimeout(err error) bool { function errorHasLabel (line 228) | func errorHasLabel(err error, label string) bool { function IsNetworkError (line 234) | func IsNetworkError(err error) bool { type MarshalError (line 240) | type MarshalError struct method Error (line 255) | func (me MarshalError) Error() string { method Unwrap (line 266) | func (me MarshalError) Unwrap() error { return me.Err } type MongocryptError (line 269) | type MongocryptError struct method Error (line 285) | func (m MongocryptError) Error() string { method Unwrap (line 297) | func (m MongocryptError) Unwrap() error { return m.wrapped } type EncryptionKeyVaultError (line 301) | type EncryptionKeyVaultError struct method Error (line 306) | func (ekve EncryptionKeyVaultError) Error() string { method Unwrap (line 311) | func (ekve EncryptionKeyVaultError) Unwrap() error { type MongocryptdError (line 316) | type MongocryptdError struct method Error (line 321) | func (e MongocryptdError) Error() string { method Unwrap (line 326) | func (e MongocryptdError) Unwrap() error { type LabeledError (line 331) | type LabeledError interface type errorCoder (line 337) | type errorCoder interface type ServerError (line 345) | type ServerError interface function hasErrorCode (line 363) | func hasErrorCode(srvErr ServerError, code int) bool { type CommandError (line 383) | type CommandError struct method Error (line 402) | func (e CommandError) Error() string { method Unwrap (line 425) | func (e CommandError) Unwrap() error { method HasErrorCode (line 430) | func (e CommandError) HasErrorCode(code int) bool { method ErrorCodes (line 435) | func (e CommandError) ErrorCodes() []int { method HasErrorLabel (line 440) | func (e CommandError) HasErrorLabel(label string) bool { method HasErrorMessage (line 450) | func (e CommandError) HasErrorMessage(message string) bool { method HasErrorCodeWithMessage (line 455) | func (e CommandError) HasErrorCodeWithMessage(code int, message string... method IsMaxTimeMSExpiredError (line 460) | func (e CommandError) IsMaxTimeMSExpiredError() bool { method serverError (line 465) | func (e CommandError) serverError() {} type WriteError (line 469) | type WriteError struct method Error (line 481) | func (we WriteError) Error() string { method HasErrorCode (line 490) | func (we WriteError) HasErrorCode(code int) bool { method ErrorCodes (line 495) | func (we WriteError) ErrorCodes() []int { method HasErrorLabel (line 501) | func (we WriteError) HasErrorLabel(string) bool { method HasErrorMessage (line 506) | func (we WriteError) HasErrorMessage(message string) bool { method HasErrorCodeWithMessage (line 511) | func (we WriteError) HasErrorCodeWithMessage(code int, message string)... method serverError (line 516) | func (we WriteError) serverError() {} type WriteErrors (line 519) | type WriteErrors method Error (line 522) | func (we WriteErrors) Error() string { function writeErrorsFromDriverWriteErrors (line 531) | func writeErrorsFromDriverWriteErrors(errs driver.WriteErrors) WriteErro... type WriteConcernError (line 547) | type WriteConcernError struct method Error (line 556) | func (wce WriteConcernError) Error() string { method IsMaxTimeMSExpiredError (line 564) | func (wce WriteConcernError) IsMaxTimeMSExpiredError() bool { type WriteException (line 570) | type WriteException struct method Error (line 585) | func (mwe WriteException) Error() string { method HasErrorCode (line 604) | func (mwe WriteException) HasErrorCode(code int) bool { method ErrorCodes (line 609) | func (mwe WriteException) ErrorCodes() []int { method HasErrorLabel (line 623) | func (mwe WriteException) HasErrorLabel(label string) bool { method HasErrorMessage (line 633) | func (mwe WriteException) HasErrorMessage(message string) bool { method HasErrorCodeWithMessage (line 646) | func (mwe WriteException) HasErrorCodeWithMessage(code int, message st... method serverError (line 660) | func (mwe WriteException) serverError() {} function convertDriverWriteConcernError (line 662) | func convertDriverWriteConcernError(wce *driver.WriteConcernError) *Writ... type BulkWriteError (line 678) | type BulkWriteError struct method Error (line 684) | func (bwe BulkWriteError) Error() string { type BulkWriteException (line 689) | type BulkWriteException struct method Error (line 701) | func (bwe BulkWriteException) Error() string { method HasErrorCode (line 722) | func (bwe BulkWriteException) HasErrorCode(code int) bool { method ErrorCodes (line 727) | func (bwe BulkWriteException) ErrorCodes() []int { method HasErrorLabel (line 741) | func (bwe BulkWriteException) HasErrorLabel(label string) bool { method HasErrorMessage (line 751) | func (bwe BulkWriteException) HasErrorMessage(message string) bool { method HasErrorCodeWithMessage (line 764) | func (bwe BulkWriteException) HasErrorCodeWithMessage(code int, messag... method serverError (line 778) | func (bwe BulkWriteException) serverError() {} type ClientBulkWriteException (line 781) | type ClientBulkWriteException struct method Error (line 800) | func (bwe ClientBulkWriteException) Error() string { type returnResult (line 834) | type returnResult method isAcknowledged (line 846) | func (rr returnResult) isAcknowledged() bool { constant rrNone (line 837) | rrNone returnResult = 1 << iota constant rrOne (line 838) | rrOne constant rrMany (line 839) | rrMany constant rrUnacknowledged (line 840) | rrUnacknowledged constant rrAll (line 842) | rrAll returnResult = rrOne | rrMany constant rrAllUnacknowledged (line 843) | rrAllUnacknowledged returnResult = rrAll | rrUnacknowledged function processWriteError (line 855) | func processWriteError(err error) (returnResult, error) { constant batchErrorsTargetLength (line 884) | batchErrorsTargetLength = 2000 function joinBatchErrors (line 893) | func joinBatchErrors(errs []error) string { function ErrorCodes (line 914) | func ErrorCodes(err error) []int { FILE: mongo/errors_test.go function TestErrorMessages (line 23) | func TestErrorMessages(t *testing.T) { function TestServerError (line 80) | func TestServerError(t *testing.T) { function TestIsDuplicateKeyError (line 345) | func TestIsDuplicateKeyError(t *testing.T) { function TestIsNetworkError (line 500) | func TestIsNetworkError(t *testing.T) { function TestIsTimeout (line 549) | func TestIsTimeout(t *testing.T) { function TestServerError_ErrorCodes (line 682) | func TestServerError_ErrorCodes(t *testing.T) { type netErr (line 746) | type netErr struct method Error (line 750) | func (n netErr) Error() string { method Timeout (line 754) | func (n netErr) Timeout() bool { method Temporary (line 758) | func (n netErr) Temporary() bool { function TestErrorCodes (line 764) | func TestErrorCodes(t *testing.T) { function TestErrorCodesNoDoubleWrapping (line 884) | func TestErrorCodesNoDoubleWrapping(t *testing.T) { FILE: mongo/gridfs_bucket.go constant DefaultGridFSChunkSize (line 29) | DefaultGridFSChunkSize int32 = 255 * 1024 type GridFSBucket (line 39) | type GridFSBucket struct method OpenUploadStream (line 67) | func (b *GridFSBucket) OpenUploadStream( method OpenUploadStreamWithID (line 81) | func (b *GridFSBucket) OpenUploadStreamWithID( method UploadFromStream (line 110) | func (b *GridFSBucket) UploadFromStream( method UploadFromStreamWithID (line 130) | func (b *GridFSBucket) UploadFromStreamWithID( method OpenDownloadStream (line 173) | func (b *GridFSBucket) OpenDownloadStream(ctx context.Context, fileID ... method DownloadToStream (line 188) | func (b *GridFSBucket) DownloadToStream(ctx context.Context, fileID an... method OpenDownloadStreamByName (line 203) | func (b *GridFSBucket) OpenDownloadStreamByName( method DownloadToStreamByName (line 240) | func (b *GridFSBucket) DownloadToStreamByName( method Delete (line 257) | func (b *GridFSBucket) Delete(ctx context.Context, fileID any) error { method Find (line 275) | func (b *GridFSBucket) Find( method Rename (line 309) | func (b *GridFSBucket) Rename(ctx context.Context, fileID any, newFile... method Drop (line 327) | func (b *GridFSBucket) Drop(ctx context.Context) error { method GetFilesCollection (line 340) | func (b *GridFSBucket) GetFilesCollection() *Collection { method GetChunksCollection (line 345) | func (b *GridFSBucket) GetChunksCollection() *Collection { method openDownloadStream (line 349) | func (b *GridFSBucket) openDownloadStream( method downloadToStream (line 391) | func (b *GridFSBucket) downloadToStream(ds *GridFSDownloadStream, stre... method deleteChunks (line 401) | func (b *GridFSBucket) deleteChunks(ctx context.Context, fileID any) e... method findChunks (line 406) | func (b *GridFSBucket) findChunks(ctx context.Context, fileID any) (*C... method createIndexes (line 497) | func (b *GridFSBucket) createIndexes(ctx context.Context) error { method checkFirstWrite (line 533) | func (b *GridFSBucket) checkFirstWrite(ctx context.Context) error { method parseGridFSUploadOptions (line 547) | func (b *GridFSBucket) parseGridFSUploadOptions(opts ...options.Lister... type upload (line 56) | type upload struct function numericalIndexDocsEqual (line 418) | func numericalIndexDocsEqual(expected, actual bsoncore.Document) (bool, ... function createNumericalIndexIfNotExists (line 460) | func createNumericalIndexIfNotExists(ctx context.Context, iv IndexView, ... FILE: mongo/gridfs_bucket_test.go function TestBucket_openDownloadStream (line 19) | func TestBucket_openDownloadStream(t *testing.T) { FILE: mongo/gridfs_download_stream.go type GridFSDownloadStream (line 30) | type GridFSDownloadStream struct method Close (line 141) | func (ds *GridFSDownloadStream) Close() error { method Read (line 160) | func (ds *GridFSDownloadStream) Read(p []byte) (int, error) { method Skip (line 197) | func (ds *GridFSDownloadStream) Skip(skip int64) (int64, error) { method GetFile (line 236) | func (ds *GridFSDownloadStream) GetFile() *GridFSFile { method fillBuffer (line 240) | func (ds *GridFSDownloadStream) fillBuffer(ctx context.Context) error { type GridFSFile (line 53) | type GridFSFile struct method UnmarshalBSON (line 102) | func (f *GridFSFile) UnmarshalBSON(data []byte) error { type findFileResponse (line 81) | type findFileResponse struct function newFileFromResponse (line 90) | func newFileFromResponse(resp findFileResponse) *GridFSFile { function newGridFSDownloadStream (line 118) | func newGridFSDownloadStream( FILE: mongo/gridfs_examples_test.go function ExampleGridFSBucket_OpenUploadStream (line 22) | func ExampleGridFSBucket_OpenUploadStream() { function ExampleGridFSBucket_UploadFromStream (line 51) | func ExampleGridFSBucket_UploadFromStream() { function ExampleGridFSBucket_OpenDownloadStream (line 71) | func ExampleGridFSBucket_OpenDownloadStream() { function ExampleGridFSBucket_DownloadToStream (line 96) | func ExampleGridFSBucket_DownloadToStream() { function ExampleGridFSBucket_Delete (line 108) | func ExampleGridFSBucket_Delete() { function ExampleGridFSBucket_Find (line 117) | func ExampleGridFSBucket_Find() { function ExampleGridFSBucket_Rename (line 148) | func ExampleGridFSBucket_Rename() { function ExampleGridFSBucket_Drop (line 159) | func ExampleGridFSBucket_Drop() { FILE: mongo/gridfs_test.go function TestGridFS (line 26) | func TestGridFS(t *testing.T) { function TestGridFSFile_UnmarshalBSON (line 112) | func TestGridFSFile_UnmarshalBSON(t *testing.T) { FILE: mongo/gridfs_upload_stream.go constant uploadBufferSize (line 20) | uploadBufferSize = 16 * 1024 * 1024 type GridFSUploadStream (line 28) | type GridFSUploadStream struct method Close (line 67) | func (us *GridFSUploadStream) Close() error { method Write (line 94) | func (us *GridFSUploadStream) Write(p []byte) (int, error) { method Abort (line 117) | func (us *GridFSUploadStream) Abort() error { method uploadChunks (line 141) | func (us *GridFSUploadStream) uploadChunks(ctx context.Context, upload... method createFilesCollDoc (line 185) | func (us *GridFSUploadStream) createFilesCollDoc(ctx context.Context) ... function newUploadStream (line 45) | func newUploadStream( FILE: mongo/index_view.go type IndexView (line 39) | type IndexView struct method List (line 60) | func (iv IndexView) List(ctx context.Context, opts ...options.Lister[o... method ListSpecifications (line 142) | func (iv IndexView) ListSpecifications( method CreateOne (line 170) | func (iv IndexView) CreateOne( method CreateMany (line 193) | func (iv IndexView) CreateMany( method createOptionsDoc (line 303) | func (iv IndexView) createOptionsDoc(opts options.Lister[options.Index... method drop (line 391) | func (iv IndexView) drop(ctx context.Context, index any, opts ...optio... method DropOne (line 450) | func (iv IndexView) DropOne( method DropWithKey (line 467) | func (iv IndexView) DropWithKey(ctx context.Context, keySpecDocument a... method DropAll (line 483) | func (iv IndexView) DropAll( type IndexModel (line 44) | type IndexModel struct function getOrGenerateIndexName (line 490) | func getOrGenerateIndexName(keySpecDocument bsoncore.Document, model Ind... FILE: mongo/insert.go type insert (line 27) | type insert struct method Result (line 76) | func (i *insert) Result() insertResult { return i.result } method processResponse (line 78) | func (i *insert) processResponse(_ context.Context, resp bsoncore.Docu... method Execute (line 85) | func (i *insert) Execute(ctx context.Context) error { method command (line 117) | func (i *insert) command(dst []byte, desc description.SelectedServer) ... type insertResult (line 52) | type insertResult struct function buildInsertResult (line 57) | func buildInsertResult(response bsoncore.Document) (insertResult, error) { FILE: mongo/mongo.go type Dialer (line 30) | type Dialer interface type Pipeline (line 43) | type Pipeline function getEncoder (line 47) | func getEncoder( function newEncoderFn (line 94) | func newEncoderFn(opts *options.BSONOptions, registry *bson.Registry) co... function marshal (line 105) | func marshal( function ensureID (line 138) | func ensureID( function ensureDollarKey (line 187) | func ensureDollarKey(doc bsoncore.Document) error { function ensureNoDollarKey (line 199) | func ensureNoDollarKey(doc bsoncore.Document) error { function marshalAggregatePipeline (line 207) | func marshalAggregatePipeline( function marshalUpdateValue (line 295) | func marshalUpdateValue( function marshalValue (line 385) | func marshalValue( function countDocumentsAggregatePipeline (line 394) | func countDocumentsAggregatePipeline( FILE: mongo/mongo_test.go function TestEnsureID (line 24) | func TestEnsureID(t *testing.T) { function TestEnsureID_NilObjectID (line 136) | func TestEnsureID_NilObjectID(t *testing.T) { function TestMarshalAggregatePipeline (line 159) | func TestMarshalAggregatePipeline(t *testing.T) { function TestMarshalValue (line 520) | func TestMarshalValue(t *testing.T) { function TestGetEncoder (line 613) | func TestGetEncoder(t *testing.T) { type bvMarsh (line 647) | type bvMarsh struct method MarshalBSONValue (line 653) | func (b bvMarsh) MarshalBSONValue() (byte, []byte, error) { FILE: mongo/mongocryptd.go constant defaultServerSelectionTimeout (line 22) | defaultServerSelectionTimeout = 10 * time.Second constant defaultURI (line 23) | defaultURI = "mongodb://localhost:27020" constant defaultPath (line 24) | defaultPath = "mongocryptd" constant serverSelectionTimeoutStr (line 25) | serverSelectionTimeoutStr = "server selection error" type mongocryptdClient (line 33) | type mongocryptdClient struct method markCommand (line 89) | func (mc *mongocryptdClient) markCommand(ctx context.Context, dbName s... method connect (line 118) | func (mc *mongocryptdClient) connect() error { method disconnect (line 123) | func (mc *mongocryptdClient) disconnect(ctx context.Context) error { method spawnProcess (line 127) | func (mc *mongocryptdClient) spawnProcess() error { function newMongocryptdClient (line 43) | func newMongocryptdClient(opts *options.AutoEncryptionOptions) (*mongocr... function createSpawnArgs (line 137) | func createSpawnArgs(opts map[string]any) (string, []string) { FILE: mongo/mongointernal.go function NewSessionWithLSID (line 29) | func NewSessionWithLSID(client *Client, sessionID bson.Raw) *Session { FILE: mongo/ocsp_test.go function TestOCSP (line 23) | func TestOCSP(t *testing.T) { function createOCSPClientOptions (line 59) | func createOCSPClientOptions(uri string) *options.ClientOptions { function createInsecureOCSPClientOptions (line 71) | func createInsecureOCSPClientOptions(uri string) *options.ClientOptions { FILE: mongo/options/aggregateoptions.go type AggregateOptions (line 20) | type AggregateOptions struct type AggregateOptionsBuilder (line 39) | type AggregateOptionsBuilder struct method List (line 49) | func (ao *AggregateOptionsBuilder) List() []func(*AggregateOptions) er... method SetAllowDiskUse (line 55) | func (ao *AggregateOptionsBuilder) SetAllowDiskUse(b bool) *AggregateO... method SetBatchSize (line 67) | func (ao *AggregateOptionsBuilder) SetBatchSize(i int32) *AggregateOpt... method SetBypassDocumentValidation (line 81) | func (ao *AggregateOptionsBuilder) SetBypassDocumentValidation(b bool)... method SetCollation (line 94) | func (ao *AggregateOptionsBuilder) SetCollation(c *Collation) *Aggrega... method SetMaxAwaitTime (line 106) | func (ao *AggregateOptionsBuilder) SetMaxAwaitTime(d time.Duration) *A... method SetComment (line 119) | func (ao *AggregateOptionsBuilder) SetComment(comment any) *AggregateO... method SetHint (line 133) | func (ao *AggregateOptionsBuilder) SetHint(h any) *AggregateOptionsBui... method SetLet (line 148) | func (ao *AggregateOptionsBuilder) SetLet(let any) *AggregateOptionsBu... method SetCustom (line 162) | func (ao *AggregateOptionsBuilder) SetCustom(c bson.M) *AggregateOptio... function Aggregate (line 44) | func Aggregate() *AggregateOptionsBuilder { FILE: mongo/options/autoencryptionoptions.go type AutoEncryptionOptions (line 33) | type AutoEncryptionOptions struct method SetKeyVaultClientOptions (line 63) | func (a *AutoEncryptionOptions) SetKeyVaultClientOptions(opts *ClientO... method SetKeyVaultNamespace (line 70) | func (a *AutoEncryptionOptions) SetKeyVaultNamespace(ns string) *AutoE... method SetKmsProviders (line 77) | func (a *AutoEncryptionOptions) SetKmsProviders(providers map[string]m... method SetSchemaMap (line 90) | func (a *AutoEncryptionOptions) SetSchemaMap(schemaMap map[string]any)... method SetBypassAutoEncryption (line 104) | func (a *AutoEncryptionOptions) SetBypassAutoEncryption(bypass bool) *... method SetExtraOptions (line 139) | func (a *AutoEncryptionOptions) SetExtraOptions(extraOpts map[string]a... method SetTLSConfig (line 147) | func (a *AutoEncryptionOptions) SetTLSConfig(cfg map[string]*tls.Confi... method SetEncryptedFieldsMap (line 156) | func (a *AutoEncryptionOptions) SetEncryptedFieldsMap(ef map[string]an... method SetBypassQueryAnalysis (line 164) | func (a *AutoEncryptionOptions) SetBypassQueryAnalysis(bypass bool) *A... method SetKeyExpiration (line 172) | func (a *AutoEncryptionOptions) SetKeyExpiration(expiration time.Durat... function AutoEncryption (line 48) | func AutoEncryption() *AutoEncryptionOptions { FILE: mongo/options/bulkwriteoptions.go type BulkWriteOptions (line 18) | type BulkWriteOptions struct type BulkWriteOptionsBuilder (line 32) | type BulkWriteOptionsBuilder struct method List (line 45) | func (b *BulkWriteOptionsBuilder) List() []func(*BulkWriteOptions) err... method SetComment (line 52) | func (b *BulkWriteOptionsBuilder) SetComment(comment any) *BulkWriteOp... method SetOrdered (line 64) | func (b *BulkWriteOptionsBuilder) SetOrdered(ordered bool) *BulkWriteO... method SetBypassDocumentValidation (line 78) | func (b *BulkWriteOptionsBuilder) SetBypassDocumentValidation(bypass b... method SetLet (line 92) | func (b *BulkWriteOptionsBuilder) SetLet(let any) *BulkWriteOptionsBui... function BulkWrite (line 37) | func BulkWrite() *BulkWriteOptionsBuilder { FILE: mongo/options/changestreamoptions.go type ChangeStreamOptions (line 18) | type ChangeStreamOptions struct type ChangeStreamOptionsBuilder (line 36) | type ChangeStreamOptionsBuilder struct method List (line 46) | func (cso *ChangeStreamOptionsBuilder) List() []func(*ChangeStreamOpti... method SetBatchSize (line 52) | func (cso *ChangeStreamOptionsBuilder) SetBatchSize(i int32) *ChangeSt... method SetCollation (line 63) | func (cso *ChangeStreamOptionsBuilder) SetCollation(c Collation) *Chan... method SetComment (line 74) | func (cso *ChangeStreamOptionsBuilder) SetComment(comment any) *Change... method SetFullDocument (line 85) | func (cso *ChangeStreamOptionsBuilder) SetFullDocument(fd FullDocument... method SetFullDocumentBeforeChange (line 96) | func (cso *ChangeStreamOptionsBuilder) SetFullDocumentBeforeChange(fdb... method SetMaxAwaitTime (line 106) | func (cso *ChangeStreamOptionsBuilder) SetMaxAwaitTime(d time.Duration... method SetResumeAfter (line 117) | func (cso *ChangeStreamOptionsBuilder) SetResumeAfter(rt any) *ChangeS... method SetShowExpandedEvents (line 129) | func (cso *ChangeStreamOptionsBuilder) SetShowExpandedEvents(see bool)... method SetStartAtOperationTime (line 140) | func (cso *ChangeStreamOptionsBuilder) SetStartAtOperationTime(t *bson... method SetStartAfter (line 154) | func (cso *ChangeStreamOptionsBuilder) SetStartAfter(sa any) *ChangeSt... method SetCustom (line 166) | func (cso *ChangeStreamOptionsBuilder) SetCustom(c bson.M) *ChangeStre... method SetCustomPipeline (line 177) | func (cso *ChangeStreamOptionsBuilder) SetCustomPipeline(cp bson.M) *C... function ChangeStream (line 41) | func ChangeStream() *ChangeStreamOptionsBuilder { FILE: mongo/options/clientbulkwriteoptions.go type ClientBulkWriteOptions (line 17) | type ClientBulkWriteOptions struct type ClientBulkWriteOptionsBuilder (line 34) | type ClientBulkWriteOptionsBuilder struct method List (line 47) | func (b *ClientBulkWriteOptionsBuilder) List() []func(*ClientBulkWrite... method SetComment (line 54) | func (b *ClientBulkWriteOptionsBuilder) SetComment(comment any) *Clien... method SetOrdered (line 66) | func (b *ClientBulkWriteOptionsBuilder) SetOrdered(ordered bool) *Clie... method SetBypassDocumentValidation (line 80) | func (b *ClientBulkWriteOptionsBuilder) SetBypassDocumentValidation(by... method SetLet (line 93) | func (b *ClientBulkWriteOptionsBuilder) SetLet(let any) *ClientBulkWri... method SetWriteConcern (line 106) | func (b *ClientBulkWriteOptionsBuilder) SetWriteConcern(wc *writeconce... method SetVerboseResults (line 119) | func (b *ClientBulkWriteOptionsBuilder) SetVerboseResults(verboseResul... function ClientBulkWrite (line 39) | func ClientBulkWrite() *ClientBulkWriteOptionsBuilder { FILE: mongo/options/clientencryptionoptions.go type ClientEncryptionOptions (line 21) | type ClientEncryptionOptions struct type ClientEncryptionOptionsBuilder (line 32) | type ClientEncryptionOptionsBuilder struct method List (line 49) | func (c *ClientEncryptionOptionsBuilder) List() []func(*ClientEncrypti... method SetKeyVaultNamespace (line 54) | func (c *ClientEncryptionOptionsBuilder) SetKeyVaultNamespace(ns strin... method SetKmsProviders (line 63) | func (c *ClientEncryptionOptionsBuilder) SetKmsProviders(providers map... method SetTLSConfig (line 75) | func (c *ClientEncryptionOptionsBuilder) SetTLSConfig(cfg map[string]*... method SetKeyExpiration (line 87) | func (c *ClientEncryptionOptionsBuilder) SetKeyExpiration(expiration t... function ClientEncryption (line 37) | func ClientEncryption() *ClientEncryptionOptionsBuilder { function BuildTLSConfig (line 120) | func BuildTLSConfig(tlsOpts map[string]any) (*tls.Config, error) { FILE: mongo/options/clientoptions.go constant ServerMonitoringModeAuto (line 47) | ServerMonitoringModeAuto = connstring.ServerMonitoringModeAuto constant ServerMonitoringModePoll (line 52) | ServerMonitoringModePoll = connstring.ServerMonitoringModePoll constant ServerMonitoringModeStream (line 57) | ServerMonitoringModeStream = connstring.ServerMonitoringModeStream type ContextDialer (line 64) | type ContextDialer interface type Credential (line 110) | type Credential struct type OIDCCallback (line 123) | type OIDCCallback type OIDCArgs (line 126) | type OIDCArgs struct type OIDCCredential (line 133) | type OIDCCredential struct type IDPInfo (line 141) | type IDPInfo struct type BSONOptions (line 148) | type BSONOptions struct type DriverInfo (line 241) | type DriverInfo struct type ClientOptions (line 250) | type ClientOptions struct method GetURI (line 529) | func (c *ClientOptions) GetURI() string { method Validate (line 539) | func (c *ClientOptions) Validate() error { method ApplyURI (line 673) | func (c *ClientOptions) ApplyURI(uri string) *ClientOptions { method SetAppName (line 686) | func (c *ClientOptions) SetAppName(s string) *ClientOptions { method SetAuth (line 695) | func (c *ClientOptions) SetAuth(auth Credential) *ClientOptions { method SetCompressors (line 717) | func (c *ClientOptions) SetCompressors(comps []string) *ClientOptions { method SetConnectTimeout (line 726) | func (c *ClientOptions) SetConnectTimeout(d time.Duration) *ClientOpti... method SetDialer (line 735) | func (c *ClientOptions) SetDialer(d ContextDialer) *ClientOptions { method SetDirect (line 756) | func (c *ClientOptions) SetDirect(b bool) *ClientOptions { method SetHeartbeatInterval (line 765) | func (c *ClientOptions) SetHeartbeatInterval(d time.Duration) *ClientO... method SetHosts (line 776) | func (c *ClientOptions) SetHosts(s []string) *ClientOptions { method SetLoadBalanced (line 792) | func (c *ClientOptions) SetLoadBalanced(lb bool) *ClientOptions { method SetLocalThreshold (line 802) | func (c *ClientOptions) SetLocalThreshold(d time.Duration) *ClientOpti... method SetLoggerOptions (line 810) | func (c *ClientOptions) SetLoggerOptions(lopts *LoggerOptions) *Client... method SetMaxConnIdleTime (line 819) | func (c *ClientOptions) SetMaxConnIdleTime(d time.Duration) *ClientOpt... method SetMaxPoolSize (line 828) | func (c *ClientOptions) SetMaxPoolSize(u uint64) *ClientOptions { method SetMinPoolSize (line 837) | func (c *ClientOptions) SetMinPoolSize(u uint64) *ClientOptions { method SetMaxConnecting (line 846) | func (c *ClientOptions) SetMaxConnecting(u uint64) *ClientOptions { method SetPoolMonitor (line 854) | func (c *ClientOptions) SetPoolMonitor(m *event.PoolMonitor) *ClientOp... method SetMonitor (line 862) | func (c *ClientOptions) SetMonitor(m *event.CommandMonitor) *ClientOpt... method SetServerMonitor (line 869) | func (c *ClientOptions) SetServerMonitor(m *event.ServerMonitor) *Clie... method SetReadConcern (line 878) | func (c *ClientOptions) SetReadConcern(rc *readconcern.ReadConcern) *C... method SetReadPreference (line 897) | func (c *ClientOptions) SetReadPreference(rp *readpref.ReadPref) *Clie... method SetBSONOptions (line 904) | func (c *ClientOptions) SetBSONOptions(bopts *BSONOptions) *ClientOpti... method SetRegistry (line 912) | func (c *ClientOptions) SetRegistry(registry *bson.Registry) *ClientOp... method SetReplicaSet (line 923) | func (c *ClientOptions) SetReplicaSet(s string) *ClientOptions { method SetRetryWrites (line 939) | func (c *ClientOptions) SetRetryWrites(b bool) *ClientOptions { method SetRetryReads (line 953) | func (c *ClientOptions) SetRetryReads(b bool) *ClientOptions { method SetServerSelectionTimeout (line 962) | func (c *ClientOptions) SetServerSelectionTimeout(d time.Duration) *Cl... method SetTimeout (line 979) | func (c *ClientOptions) SetTimeout(d time.Duration) *ClientOptions { method SetTLSConfig (line 1009) | func (c *ClientOptions) SetTLSConfig(cfg *tls.Config) *ClientOptions { method SetHTTPClient (line 1018) | func (c *ClientOptions) SetHTTPClient(client *http.Client) *ClientOpti... method SetWriteConcern (line 1038) | func (c *ClientOptions) SetWriteConcern(wc *writeconcern.WriteConcern)... method SetZlibLevel (line 1048) | func (c *ClientOptions) SetZlibLevel(level int) *ClientOptions { method SetZstdLevel (line 1057) | func (c *ClientOptions) SetZstdLevel(level int) *ClientOptions { method SetAutoEncryptionOptions (line 1066) | func (c *ClientOptions) SetAutoEncryptionOptions(aeopts *AutoEncryptio... method SetDisableOCSPEndpointCheck (line 1081) | func (c *ClientOptions) SetDisableOCSPEndpointCheck(disableCheck bool)... method SetServerAPIOptions (line 1090) | func (c *ClientOptions) SetServerAPIOptions(sopts *ServerAPIOptions) *... method SetServerMonitoringMode (line 1100) | func (c *ClientOptions) SetServerMonitoringMode(mode string) *ClientOp... method SetSRVMaxHosts (line 1109) | func (c *ClientOptions) SetSRVMaxHosts(srvMaxHosts int) *ClientOptions { method SetSRVServiceName (line 1118) | func (c *ClientOptions) SetSRVServiceName(srvName string) *ClientOptio... method SetDriverInfo (line 1127) | func (c *ClientOptions) SetDriverInfo(info *DriverInfo) *ClientOptions { function Client (line 317) | func Client() *ClientOptions { function setURIOpts (line 324) | func setURIOpts(uri string, opts *ClientOptions) error { function addCACertFromFile (line 1135) | func addCACertFromFile(cfg *tls.Config, file string) error { function addClientCertFromSeparateFiles (line 1151) | func addClientCertFromSeparateFiles(cfg *tls.Config, keyFile, certFile, ... function addClientCertFromConcatenatedFile (line 1180) | func addClientCertFromConcatenatedFile(cfg *tls.Config, certKeyFile, key... function addClientCertFromBytes (line 1191) | func addClientCertFromBytes(cfg *tls.Config, data []byte, keyPasswd stri... function stringSliceContains (line 1279) | func stringSliceContains(source []string, target string) bool { function extractX509UsernameFromSubject (line 1289) | func extractX509UsernameFromSubject(subject string) string { function MergeClientOptions (line 1303) | func MergeClientOptions(opts ...*ClientOptions) *ClientOptions { FILE: mongo/options/clientoptions_test.go function TestClientOptions (line 40) | func TestClientOptions(t *testing.T) { type nonDefaultTransport (line 533) | type nonDefaultTransport struct method RoundTrip (line 535) | func (*nonDefaultTransport) RoundTrip(*http.Request) (*http.Response, ... function TestClientHTTPTransport (line 537) | func TestClientHTTPTransport(t *testing.T) { function createCertPool (line 549) | func createCertPool(t *testing.T, paths ...string) *x509.CertPool { function loadCert (line 559) | func loadCert(t *testing.T, file string) *x509.Certificate { function readFile (line 569) | func readFile(t *testing.T, path string) []byte { type testDialer (line 575) | type testDialer struct method DialContext (line 579) | func (testDialer) DialContext(context.Context, string, string) (net.Co... function compareTLSConfig (line 583) | func compareTLSConfig(cfg1, cfg2 *tls.Config) bool { function compareErrors (line 621) | func compareErrors(err1, err2 error) bool { function TestApplyURI (line 642) | func TestApplyURI(t *testing.T) { FILE: mongo/options/collectionoptions.go type CollectionOptions (line 19) | type CollectionOptions struct type CollectionOptionsBuilder (line 30) | type CollectionOptionsBuilder struct method List (line 40) | func (c *CollectionOptionsBuilder) List() []func(*CollectionOptions) e... method SetReadConcern (line 47) | func (c *CollectionOptionsBuilder) SetReadConcern(rc *readconcern.Read... method SetWriteConcern (line 60) | func (c *CollectionOptionsBuilder) SetWriteConcern(wc *writeconcern.Wr... method SetReadPreference (line 73) | func (c *CollectionOptionsBuilder) SetReadPreference(rp *readpref.Read... method SetBSONOptions (line 85) | func (c *CollectionOptionsBuilder) SetBSONOptions(bopts *BSONOptions) ... method SetRegistry (line 98) | func (c *CollectionOptionsBuilder) SetRegistry(r *bson.Registry) *Coll... function Collection (line 35) | func Collection() *CollectionOptionsBuilder { FILE: mongo/options/countoptions.go type CountOptions (line 15) | type CountOptions struct type CountOptionsBuilder (line 30) | type CountOptionsBuilder struct method List (line 40) | func (co *CountOptionsBuilder) List() []func(*CountOptions) error { method SetCollation (line 47) | func (co *CountOptionsBuilder) SetCollation(c *Collation) *CountOption... method SetComment (line 60) | func (co *CountOptionsBuilder) SetComment(comment any) *CountOptionsBu... method SetHint (line 74) | func (co *CountOptionsBuilder) SetHint(h any) *CountOptionsBuilder { method SetLimit (line 87) | func (co *CountOptionsBuilder) SetLimit(i int64) *CountOptionsBuilder { method SetSkip (line 99) | func (co *CountOptionsBuilder) SetSkip(i int64) *CountOptionsBuilder { function Count (line 35) | func Count() *CountOptionsBuilder { FILE: mongo/options/createcollectionoptions.go type DefaultIndexOptions (line 18) | type DefaultIndexOptions struct type DefaultIndexOptionsBuilder (line 25) | type DefaultIndexOptionsBuilder struct method List (line 35) | func (d *DefaultIndexOptionsBuilder) List() []func(*DefaultIndexOption... method SetStorageEngine (line 42) | func (d *DefaultIndexOptionsBuilder) SetStorageEngine(storageEngine an... function DefaultIndex (line 30) | func DefaultIndex() *DefaultIndexOptionsBuilder { type TimeSeriesOptions (line 55) | type TimeSeriesOptions struct type TimeSeriesOptionsBuilder (line 66) | type TimeSeriesOptionsBuilder struct method List (line 76) | func (tso *TimeSeriesOptionsBuilder) List() []func(*TimeSeriesOptions)... method SetTimeField (line 83) | func (tso *TimeSeriesOptionsBuilder) SetTimeField(timeField string) *T... method SetMetaField (line 96) | func (tso *TimeSeriesOptionsBuilder) SetMetaField(metaField string) *T... method SetGranularity (line 108) | func (tso *TimeSeriesOptionsBuilder) SetGranularity(granularity string... method SetBucketMaxSpan (line 121) | func (tso *TimeSeriesOptionsBuilder) SetBucketMaxSpan(dur time.Duratio... method SetBucketRounding (line 135) | func (tso *TimeSeriesOptionsBuilder) SetBucketRounding(dur time.Durati... function TimeSeries (line 71) | func TimeSeries() *TimeSeriesOptionsBuilder { type CreateCollectionOptions (line 149) | type CreateCollectionOptions struct type CreateCollectionOptionsBuilder (line 169) | type CreateCollectionOptionsBuilder struct method List (line 179) | func (c *CreateCollectionOptionsBuilder) List() []func(*CreateCollecti... method SetCapped (line 186) | func (c *CreateCollectionOptionsBuilder) SetCapped(capped bool) *Creat... method SetCollation (line 198) | func (c *CreateCollectionOptionsBuilder) SetCollation(collation *Colla... method SetChangeStreamPreAndPostImages (line 214) | func (c *CreateCollectionOptionsBuilder) SetChangeStreamPreAndPostImag... method SetDefaultIndexOptions (line 227) | func (c *CreateCollectionOptionsBuilder) SetDefaultIndexOptions(iopts ... method SetMaxDocuments (line 242) | func (c *CreateCollectionOptionsBuilder) SetMaxDocuments(max int64) *C... method SetSizeInBytes (line 254) | func (c *CreateCollectionOptionsBuilder) SetSizeInBytes(size int64) *C... method SetStorageEngine (line 267) | func (c *CreateCollectionOptionsBuilder) SetStorageEngine(storageEngin... method SetValidationAction (line 281) | func (c *CreateCollectionOptionsBuilder) SetValidationAction(action st... method SetValidationLevel (line 295) | func (c *CreateCollectionOptionsBuilder) SetValidationLevel(level stri... method SetValidator (line 308) | func (c *CreateCollectionOptionsBuilder) SetValidator(validator any) *... method SetExpireAfterSeconds (line 325) | func (c *CreateCollectionOptionsBuilder) SetExpireAfterSeconds(eas int... method SetTimeSeriesOptions (line 341) | func (c *CreateCollectionOptionsBuilder) SetTimeSeriesOptions(timeSeri... method SetEncryptedFields (line 354) | func (c *CreateCollectionOptionsBuilder) SetEncryptedFields(encryptedF... method SetClusteredIndex (line 368) | func (c *CreateCollectionOptionsBuilder) SetClusteredIndex(clusteredIn... function CreateCollection (line 174) | func CreateCollection() *CreateCollectionOptionsBuilder { type CreateViewOptions (line 382) | type CreateViewOptions struct type CreateViewOptionsBuilder (line 389) | type CreateViewOptionsBuilder struct method List (line 399) | func (c *CreateViewOptionsBuilder) List() []func(*CreateViewOptions) e... method SetCollation (line 405) | func (c *CreateViewOptionsBuilder) SetCollation(collation *Collation) ... function CreateView (line 394) | func CreateView() *CreateViewOptionsBuilder { FILE: mongo/options/datakeyoptions.go type DataKeyOptions (line 12) | type DataKeyOptions struct type DataKeyOptionsBuilder (line 21) | type DataKeyOptionsBuilder struct method List (line 31) | func (dk *DataKeyOptionsBuilder) List() []func(*DataKeyOptions) error { method SetMasterKey (line 74) | func (dk *DataKeyOptionsBuilder) SetMasterKey(masterKey any) *DataKeyO... method SetKeyAltNames (line 86) | func (dk *DataKeyOptionsBuilder) SetKeyAltNames(keyAltNames []string) ... method SetKeyMaterial (line 99) | func (dk *DataKeyOptionsBuilder) SetKeyMaterial(keyMaterial []byte) *D... function DataKey (line 26) | func DataKey() *DataKeyOptionsBuilder { FILE: mongo/options/dboptions.go type DatabaseOptions (line 20) | type DatabaseOptions struct type DatabaseOptionsBuilder (line 31) | type DatabaseOptionsBuilder struct method List (line 41) | func (d *DatabaseOptionsBuilder) List() []func(*DatabaseOptions) error { method SetReadConcern (line 48) | func (d *DatabaseOptionsBuilder) SetReadConcern(rc *readconcern.ReadCo... method SetWriteConcern (line 61) | func (d *DatabaseOptionsBuilder) SetWriteConcern(wc *writeconcern.Writ... method SetReadPreference (line 74) | func (d *DatabaseOptionsBuilder) SetReadPreference(rp *readpref.ReadPr... method SetBSONOptions (line 86) | func (d *DatabaseOptionsBuilder) SetBSONOptions(bopts *BSONOptions) *D... method SetRegistry (line 99) | func (d *DatabaseOptionsBuilder) SetRegistry(r *bson.Registry) *Databa... function Database (line 36) | func Database() *DatabaseOptionsBuilder { FILE: mongo/options/deleteoptions.go type DeleteOneOptions (line 15) | type DeleteOneOptions struct type DeleteOneOptionsBuilder (line 29) | type DeleteOneOptionsBuilder struct method List (line 39) | func (do *DeleteOneOptionsBuilder) List() []func(*DeleteOneOptions) er... method SetCollation (line 46) | func (do *DeleteOneOptionsBuilder) SetCollation(c *Collation) *DeleteO... method SetComment (line 59) | func (do *DeleteOneOptionsBuilder) SetComment(comment any) *DeleteOneO... method SetHint (line 77) | func (do *DeleteOneOptionsBuilder) SetHint(hint any) *DeleteOneOptions... method SetLet (line 92) | func (do *DeleteOneOptionsBuilder) SetLet(let any) *DeleteOneOptionsBu... function DeleteOne (line 34) | func DeleteOne() *DeleteOneOptionsBuilder { type DeleteManyOptions (line 106) | type DeleteManyOptions struct type DeleteManyOptionsBuilder (line 120) | type DeleteManyOptionsBuilder struct method List (line 130) | func (do *DeleteManyOptionsBuilder) List() []func(*DeleteManyOptions) ... method SetCollation (line 137) | func (do *DeleteManyOptionsBuilder) SetCollation(c *Collation) *Delete... method SetComment (line 150) | func (do *DeleteManyOptionsBuilder) SetComment(comment any) *DeleteMan... method SetHint (line 168) | func (do *DeleteManyOptionsBuilder) SetHint(hint any) *DeleteManyOptio... method SetLet (line 183) | func (do *DeleteManyOptionsBuilder) SetLet(let any) *DeleteManyOptions... function DeleteMany (line 125) | func DeleteMany() *DeleteManyOptionsBuilder { FILE: mongo/options/distinctoptions.go type DistinctOptions (line 15) | type DistinctOptions struct type DistinctOptionsBuilder (line 28) | type DistinctOptionsBuilder struct method List (line 38) | func (do *DistinctOptionsBuilder) List() []func(*DistinctOptions) error { method SetCollation (line 45) | func (do *DistinctOptionsBuilder) SetCollation(c *Collation) *Distinct... method SetComment (line 59) | func (do *DistinctOptionsBuilder) SetComment(comment any) *DistinctOpt... method SetHint (line 77) | func (do *DistinctOptionsBuilder) SetHint(hint any) *DistinctOptionsBu... function Distinct (line 33) | func Distinct() *DistinctOptionsBuilder { FILE: mongo/options/dropcollectionoptions.go type DropCollectionOptions (line 13) | type DropCollectionOptions struct type DropCollectionOptionsBuilder (line 20) | type DropCollectionOptionsBuilder struct method List (line 30) | func (d *DropCollectionOptionsBuilder) List() []func(*DropCollectionOp... method SetEncryptedFields (line 37) | func (d *DropCollectionOptionsBuilder) SetEncryptedFields(encryptedFie... function DropCollection (line 25) | func DropCollection() *DropCollectionOptionsBuilder { FILE: mongo/options/encryptoptions.go constant QueryTypeEquality (line 16) | QueryTypeEquality string = "equality" type RangeOptions (line 22) | type RangeOptions struct type RangeOptionsBuilder (line 33) | type RangeOptionsBuilder struct method List (line 43) | func (ro *RangeOptionsBuilder) List() []func(*RangeOptions) error { method SetMin (line 48) | func (ro *RangeOptionsBuilder) SetMin(min bson.RawValue) *RangeOptions... method SetMax (line 59) | func (ro *RangeOptionsBuilder) SetMax(max bson.RawValue) *RangeOptions... method SetSparsity (line 70) | func (ro *RangeOptionsBuilder) SetSparsity(sparsity int64) *RangeOptio... method SetTrimFactor (line 81) | func (ro *RangeOptionsBuilder) SetTrimFactor(trimFactor int32) *RangeO... method SetPrecision (line 92) | func (ro *RangeOptionsBuilder) SetPrecision(precision int32) *RangeOpt... function Range (line 38) | func Range() *RangeOptionsBuilder { type TextOptions (line 108) | type TextOptions struct type SubstringOptions (line 120) | type SubstringOptions struct type PrefixOptions (line 130) | type PrefixOptions struct type SuffixOptions (line 139) | type SuffixOptions struct type TextOptionsBuilder (line 150) | type TextOptionsBuilder struct method List (line 163) | func (to *TextOptionsBuilder) List() []func(*TextOptions) error { method SetSubstring (line 171) | func (to *TextOptionsBuilder) SetSubstring(substring SubstringOptions)... method SetPrefix (line 185) | func (to *TextOptionsBuilder) SetPrefix(prefix PrefixOptions) *TextOpt... method SetSuffix (line 199) | func (to *TextOptionsBuilder) SetSuffix(suffix SuffixOptions) *TextOpt... method SetCaseSensitive (line 213) | func (to *TextOptionsBuilder) SetCaseSensitive(caseSensitive bool) *Te... method SetDiacriticSensitive (line 227) | func (to *TextOptionsBuilder) SetDiacriticSensitive(diacriticSensitive... function Text (line 158) | func Text() *TextOptionsBuilder { type EncryptOptions (line 240) | type EncryptOptions struct type EncryptOptionsBuilder (line 253) | type EncryptOptionsBuilder struct method List (line 258) | func (e *EncryptOptionsBuilder) List() []func(*EncryptOptions) error { method SetKeyID (line 268) | func (e *EncryptOptionsBuilder) SetKeyID(keyID bson.Binary) *EncryptOp... method SetKeyAltName (line 278) | func (e *EncryptOptionsBuilder) SetKeyAltName(keyAltName string) *Encr... method SetAlgorithm (line 296) | func (e *EncryptOptionsBuilder) SetAlgorithm(algorithm string) *Encryp... method SetQueryType (line 310) | func (e *EncryptOptionsBuilder) SetQueryType(queryType string) *Encryp... method SetContentionFactor (line 322) | func (e *EncryptOptionsBuilder) SetContentionFactor(contentionFactor i... method SetRangeOptions (line 333) | func (e *EncryptOptionsBuilder) SetRangeOptions(ro *RangeOptionsBuilde... method SetTextOptions (line 347) | func (e *EncryptOptionsBuilder) SetTextOptions(to *TextOptionsBuilder)... function Encrypt (line 263) | func Encrypt() *EncryptOptionsBuilder { FILE: mongo/options/estimatedcountoptions.go type EstimatedDocumentCountOptions (line 15) | type EstimatedDocumentCountOptions struct type EstimatedDocumentCountOptionsBuilder (line 26) | type EstimatedDocumentCountOptionsBuilder struct method List (line 36) | func (eco *EstimatedDocumentCountOptionsBuilder) List() []func(*Estima... method SetComment (line 44) | func (eco *EstimatedDocumentCountOptionsBuilder) SetComment(comment an... function EstimatedDocumentCount (line 31) | func EstimatedDocumentCount() *EstimatedDocumentCountOptionsBuilder { FILE: mongo/options/example_test.go type CustomLogger (line 21) | type CustomLogger struct method Info (line 26) | func (logger *CustomLogger) Info(level int, msg string, _ ...any) { method Error (line 33) | func (logger *CustomLogger) Error(err error, msg string, _ ...any) { function ExampleClientOptions_SetLoggerOptions_customLogger (line 40) | func ExampleClientOptions_SetLoggerOptions_customLogger() { FILE: mongo/options/findoptions.go type FindOptions (line 19) | type FindOptions struct type FindOptionsBuilder (line 47) | type FindOptionsBuilder struct method List (line 57) | func (f *FindOptionsBuilder) List() []func(*FindOptions) error { method SetAllowDiskUse (line 66) | func (f *FindOptionsBuilder) SetAllowDiskUse(b bool) *FindOptionsBuild... method SetAllowPartialResults (line 77) | func (f *FindOptionsBuilder) SetAllowPartialResults(b bool) *FindOptio... method SetBatchSize (line 87) | func (f *FindOptionsBuilder) SetBatchSize(i int32) *FindOptionsBuilder { method SetCollation (line 99) | func (f *FindOptionsBuilder) SetCollation(collation *Collation) *FindO... method SetComment (line 110) | func (f *FindOptionsBuilder) SetComment(comment any) *FindOptionsBuild... method SetCursorType (line 121) | func (f *FindOptionsBuilder) SetCursorType(ct CursorType) *FindOptions... method SetHint (line 133) | func (f *FindOptionsBuilder) SetHint(hint any) *FindOptionsBuilder { method SetLet (line 146) | func (f *FindOptionsBuilder) SetLet(let any) *FindOptionsBuilder { method SetLimit (line 158) | func (f *FindOptionsBuilder) SetLimit(i int64) *FindOptionsBuilder { method SetMax (line 168) | func (f *FindOptionsBuilder) SetMax(max any) *FindOptionsBuilder { method SetMaxAwaitTime (line 181) | func (f *FindOptionsBuilder) SetMaxAwaitTime(d time.Duration) *FindOpt... method SetMin (line 191) | func (f *FindOptionsBuilder) SetMin(min any) *FindOptionsBuilder { method SetNoCursorTimeout (line 202) | func (f *FindOptionsBuilder) SetNoCursorTimeout(b bool) *FindOptionsBu... method SetOplogReplay (line 215) | func (f *FindOptionsBuilder) SetOplogReplay(b bool) *FindOptionsBuilder { method SetProjection (line 226) | func (f *FindOptionsBuilder) SetProjection(projection any) *FindOption... method SetReturnKey (line 237) | func (f *FindOptionsBuilder) SetReturnKey(b bool) *FindOptionsBuilder { method SetShowRecordID (line 248) | func (f *FindOptionsBuilder) SetShowRecordID(b bool) *FindOptionsBuild... method SetSkip (line 258) | func (f *FindOptionsBuilder) SetSkip(i int64) *FindOptionsBuilder { method SetSort (line 269) | func (f *FindOptionsBuilder) SetSort(sort any) *FindOptionsBuilder { function Find (line 52) | func Find() *FindOptionsBuilder { type FindOneOptions (line 281) | type FindOneOptions struct type FindOneOptionsBuilder (line 302) | type FindOneOptionsBuilder struct method List (line 312) | func (f *FindOneOptionsBuilder) List() []func(*FindOneOptions) error { method SetAllowPartialResults (line 319) | func (f *FindOneOptionsBuilder) SetAllowPartialResults(b bool) *FindOn... method SetCollation (line 330) | func (f *FindOneOptionsBuilder) SetCollation(collation *Collation) *Fi... method SetComment (line 341) | func (f *FindOneOptionsBuilder) SetComment(comment any) *FindOneOption... method SetHint (line 353) | func (f *FindOneOptionsBuilder) SetHint(hint any) *FindOneOptionsBuild... method SetMax (line 363) | func (f *FindOneOptionsBuilder) SetMax(max any) *FindOneOptionsBuilder { method SetMin (line 373) | func (f *FindOneOptionsBuilder) SetMin(min any) *FindOneOptionsBuilder { method SetOplogReplay (line 386) | func (f *FindOneOptionsBuilder) SetOplogReplay(b bool) *FindOneOptions... method SetProjection (line 397) | func (f *FindOneOptionsBuilder) SetProjection(projection any) *FindOne... method SetReturnKey (line 408) | func (f *FindOneOptionsBuilder) SetReturnKey(b bool) *FindOneOptionsBu... method SetShowRecordID (line 419) | func (f *FindOneOptionsBuilder) SetShowRecordID(b bool) *FindOneOption... method SetSkip (line 429) | func (f *FindOneOptionsBuilder) SetSkip(i int64) *FindOneOptionsBuilder { method SetSort (line 441) | func (f *FindOneOptionsBuilder) SetSort(sort any) *FindOneOptionsBuild... function FindOne (line 307) | func FindOne() *FindOneOptionsBuilder { type FindOneAndReplaceOptions (line 453) | type FindOneAndReplaceOptions struct type FindOneAndReplaceOptionsBuilder (line 472) | type FindOneAndReplaceOptionsBuilder struct method List (line 482) | func (f *FindOneAndReplaceOptionsBuilder) List() []func(*FindOneAndRep... method SetBypassDocumentValidation (line 490) | func (f *FindOneAndReplaceOptionsBuilder) SetBypassDocumentValidation(... method SetCollation (line 503) | func (f *FindOneAndReplaceOptionsBuilder) SetCollation(collation *Coll... method SetComment (line 516) | func (f *FindOneAndReplaceOptionsBuilder) SetComment(comment any) *Fin... method SetProjection (line 529) | func (f *FindOneAndReplaceOptionsBuilder) SetProjection(projection any... method SetReturnDocument (line 542) | func (f *FindOneAndReplaceOptionsBuilder) SetReturnDocument(rd ReturnD... method SetSort (line 557) | func (f *FindOneAndReplaceOptionsBuilder) SetSort(sort any) *FindOneAn... method SetUpsert (line 569) | func (f *FindOneAndReplaceOptionsBuilder) SetUpsert(b bool) *FindOneAn... method SetHint (line 587) | func (f *FindOneAndReplaceOptionsBuilder) SetHint(hint any) *FindOneAn... method SetLet (line 603) | func (f *FindOneAndReplaceOptionsBuilder) SetLet(let any) *FindOneAndR... function FindOneAndReplace (line 477) | func FindOneAndReplace() *FindOneAndReplaceOptionsBuilder { type FindOneAndUpdateOptions (line 617) | type FindOneAndUpdateOptions struct type FindOneAndUpdateOptionsBuilder (line 637) | type FindOneAndUpdateOptionsBuilder struct method List (line 647) | func (f *FindOneAndUpdateOptionsBuilder) List() []func(*FindOneAndUpda... method SetArrayFilters (line 655) | func (f *FindOneAndUpdateOptionsBuilder) SetArrayFilters(filters []any... method SetBypassDocumentValidation (line 669) | func (f *FindOneAndUpdateOptionsBuilder) SetBypassDocumentValidation(b... method SetCollation (line 682) | func (f *FindOneAndUpdateOptionsBuilder) SetCollation(collation *Colla... method SetComment (line 695) | func (f *FindOneAndUpdateOptionsBuilder) SetComment(comment any) *Find... method SetProjection (line 708) | func (f *FindOneAndUpdateOptionsBuilder) SetProjection(projection any)... method SetReturnDocument (line 721) | func (f *FindOneAndUpdateOptionsBuilder) SetReturnDocument(rd ReturnDo... method SetSort (line 736) | func (f *FindOneAndUpdateOptionsBuilder) SetSort(sort any) *FindOneAnd... method SetUpsert (line 748) | func (f *FindOneAndUpdateOptionsBuilder) SetUpsert(b bool) *FindOneAnd... method SetHint (line 766) | func (f *FindOneAndUpdateOptionsBuilder) SetHint(hint any) *FindOneAnd... method SetLet (line 782) | func (f *FindOneAndUpdateOptionsBuilder) SetLet(let any) *FindOneAndUp... function FindOneAndUpdate (line 642) | func FindOneAndUpdate() *FindOneAndUpdateOptionsBuilder { type FindOneAndDeleteOptions (line 796) | type FindOneAndDeleteOptions struct type FindOneAndDeleteOptionsBuilder (line 812) | type FindOneAndDeleteOptionsBuilder struct method List (line 822) | func (f *FindOneAndDeleteOptionsBuilder) List() []func(*FindOneAndDele... method SetCollation (line 829) | func (f *FindOneAndDeleteOptionsBuilder) SetCollation(collation *Colla... method SetComment (line 842) | func (f *FindOneAndDeleteOptionsBuilder) SetComment(comment any) *Find... method SetProjection (line 855) | func (f *FindOneAndDeleteOptionsBuilder) SetProjection(projection any)... method SetSort (line 870) | func (f *FindOneAndDeleteOptionsBuilder) SetSort(sort any) *FindOneAnd... method SetHint (line 887) | func (f *FindOneAndDeleteOptionsBuilder) SetHint(hint any) *FindOneAnd... method SetLet (line 902) | func (f *FindOneAndDeleteOptionsBuilder) SetLet(let any) *FindOneAndDe... function FindOneAndDelete (line 817) | func FindOneAndDelete() *FindOneAndDeleteOptionsBuilder { FILE: mongo/options/gridfsoptions.go type BucketOptions (line 29) | type BucketOptions struct type BucketOptionsBuilder (line 40) | type BucketOptionsBuilder struct method List (line 53) | func (b *BucketOptionsBuilder) List() []func(*BucketOptions) error { method SetName (line 59) | func (b *BucketOptionsBuilder) SetName(name string) *BucketOptionsBuil... method SetChunkSizeBytes (line 71) | func (b *BucketOptionsBuilder) SetChunkSizeBytes(i int32) *BucketOptio... method SetWriteConcern (line 84) | func (b *BucketOptionsBuilder) SetWriteConcern(wc *writeconcern.WriteC... method SetReadConcern (line 97) | func (b *BucketOptionsBuilder) SetReadConcern(rc *readconcern.ReadConc... method SetReadPreference (line 110) | func (b *BucketOptionsBuilder) SetReadPreference(rp *readpref.ReadPref... function GridFSBucket (line 45) | func GridFSBucket() *BucketOptionsBuilder { type GridFSUploadOptions (line 124) | type GridFSUploadOptions struct type GridFSUploadOptionsBuilder (line 133) | type GridFSUploadOptionsBuilder struct method List (line 146) | func (u *GridFSUploadOptionsBuilder) List() []func(*GridFSUploadOption... method SetChunkSizeBytes (line 152) | func (u *GridFSUploadOptionsBuilder) SetChunkSizeBytes(i int32) *GridF... method SetMetadata (line 166) | func (u *GridFSUploadOptionsBuilder) SetMetadata(doc any) *GridFSUploa... method SetRegistry (line 179) | func (u *GridFSUploadOptionsBuilder) SetRegistry(registry *bson.Regist... function GridFSUpload (line 138) | func GridFSUpload() *GridFSUploadOptionsBuilder { type GridFSNameOptions (line 193) | type GridFSNameOptions struct type GridFSNameOptionsBuilder (line 200) | type GridFSNameOptionsBuilder struct method List (line 210) | func (n *GridFSNameOptionsBuilder) List() []func(*GridFSNameOptions) e... method SetRevision (line 225) | func (n *GridFSNameOptionsBuilder) SetRevision(r int32) *GridFSNameOpt... function GridFSName (line 205) | func GridFSName() *GridFSNameOptionsBuilder { type GridFSFindOptions (line 239) | type GridFSFindOptions struct type GridFSFindOptionsBuilder (line 251) | type GridFSFindOptionsBuilder struct method List (line 261) | func (f *GridFSFindOptionsBuilder) List() []func(*GridFSFindOptions) e... method SetAllowDiskUse (line 269) | func (f *GridFSFindOptionsBuilder) SetAllowDiskUse(b bool) *GridFSFind... method SetBatchSize (line 281) | func (f *GridFSFindOptionsBuilder) SetBatchSize(i int32) *GridFSFindOp... method SetLimit (line 295) | func (f *GridFSFindOptionsBuilder) SetLimit(i int32) *GridFSFindOption... method SetNoCursorTimeout (line 308) | func (f *GridFSFindOptionsBuilder) SetNoCursorTimeout(b bool) *GridFSF... method SetSkip (line 320) | func (f *GridFSFindOptionsBuilder) SetSkip(i int32) *GridFSFindOptions... method SetSort (line 334) | func (f *GridFSFindOptionsBuilder) SetSort(sort any) *GridFSFindOption... function GridFSFind (line 256) | func GridFSFind() *GridFSFindOptionsBuilder { FILE: mongo/options/indexoptions.go type CreateIndexesOptions (line 15) | type CreateIndexesOptions struct type CreateIndexesOptionsBuilder (line 28) | type CreateIndexesOptionsBuilder struct method List (line 38) | func (c *CreateIndexesOptionsBuilder) List() []func(*CreateIndexesOpti... method SetCommitQuorumInt (line 53) | func (c *CreateIndexesOptionsBuilder) SetCommitQuorumInt(quorum int32)... method SetCommitQuorumString (line 74) | func (c *CreateIndexesOptionsBuilder) SetCommitQuorumString(quorum str... method SetCommitQuorumMajority (line 96) | func (c *CreateIndexesOptionsBuilder) SetCommitQuorumMajority() *Creat... method SetCommitQuorumVotingMembers (line 118) | func (c *CreateIndexesOptionsBuilder) SetCommitQuorumVotingMembers() *... function CreateIndexes (line 33) | func CreateIndexes() *CreateIndexesOptionsBuilder { type DropIndexesOptions (line 130) | type DropIndexesOptions struct type DropIndexesOptionsBuilder (line 139) | type DropIndexesOptionsBuilder struct method List (line 149) | func (d *DropIndexesOptionsBuilder) List() []func(*DropIndexesOptions)... function DropIndexes (line 144) | func DropIndexes() *DropIndexesOptionsBuilder { type ListIndexesOptions (line 157) | type ListIndexesOptions struct type ListIndexesOptionsBuilder (line 168) | type ListIndexesOptionsBuilder struct method List (line 178) | func (l *ListIndexesOptionsBuilder) List() []func(*ListIndexesOptions)... method SetBatchSize (line 184) | func (l *ListIndexesOptionsBuilder) SetBatchSize(i int32) *ListIndexes... function ListIndexes (line 173) | func ListIndexes() *ListIndexesOptionsBuilder { type IndexOptions (line 198) | type IndexOptions struct type IndexOptionsBuilder (line 223) | type IndexOptionsBuilder struct method List (line 233) | func (i *IndexOptionsBuilder) List() []func(*IndexOptions) error { method SetExpireAfterSeconds (line 241) | func (i *IndexOptionsBuilder) SetExpireAfterSeconds(seconds int32) *In... method SetName (line 254) | func (i *IndexOptionsBuilder) SetName(name string) *IndexOptionsBuilder { method SetSparse (line 266) | func (i *IndexOptionsBuilder) SetSparse(sparse bool) *IndexOptionsBuil... method SetStorageEngine (line 280) | func (i *IndexOptionsBuilder) SetStorageEngine(engine any) *IndexOptio... method SetUnique (line 293) | func (i *IndexOptionsBuilder) SetUnique(unique bool) *IndexOptionsBuil... method SetVersion (line 305) | func (i *IndexOptionsBuilder) SetVersion(version int32) *IndexOptionsB... method SetDefaultLanguage (line 319) | func (i *IndexOptionsBuilder) SetDefaultLanguage(language string) *Ind... method SetLanguageOverride (line 333) | func (i *IndexOptionsBuilder) SetLanguageOverride(override string) *In... method SetTextVersion (line 346) | func (i *IndexOptionsBuilder) SetTextVersion(version int32) *IndexOpti... method SetWeights (line 362) | func (i *IndexOptionsBuilder) SetWeights(weights any) *IndexOptionsBui... method SetSphereVersion (line 375) | func (i *IndexOptionsBuilder) SetSphereVersion(version int32) *IndexOp... method SetBits (line 388) | func (i *IndexOptionsBuilder) SetBits(bits int32) *IndexOptionsBuilder { method SetMax (line 401) | func (i *IndexOptionsBuilder) SetMax(max float64) *IndexOptionsBuilder { method SetMin (line 414) | func (i *IndexOptionsBuilder) SetMin(min float64) *IndexOptionsBuilder { method SetBucketSize (line 429) | func (i *IndexOptionsBuilder) SetBucketSize(bucketSize int32) *IndexOp... method SetPartialFilterExpression (line 441) | func (i *IndexOptionsBuilder) SetPartialFilterExpression(expression an... method SetCollation (line 453) | func (i *IndexOptionsBuilder) SetCollation(collation *Collation) *Inde... method SetWildcardProjection (line 465) | func (i *IndexOptionsBuilder) SetWildcardProjection(wildcardProjection... method SetHidden (line 478) | func (i *IndexOptionsBuilder) SetHidden(hidden bool) *IndexOptionsBuil... function Index (line 228) | func Index() *IndexOptionsBuilder { FILE: mongo/options/insertoptions.go type InsertOneOptions (line 15) | type InsertOneOptions struct type InsertOneOptionsBuilder (line 26) | type InsertOneOptionsBuilder struct method List (line 36) | func (ioo *InsertOneOptionsBuilder) List() []func(*InsertOneOptions) e... method SetBypassDocumentValidation (line 44) | func (ioo *InsertOneOptionsBuilder) SetBypassDocumentValidation(b bool... method SetComment (line 54) | func (ioo *InsertOneOptionsBuilder) SetComment(comment any) *InsertOne... function InsertOne (line 31) | func InsertOne() *InsertOneOptionsBuilder { type InsertManyOptions (line 66) | type InsertManyOptions struct type InsertManyOptionsBuilder (line 79) | type InsertManyOptionsBuilder struct method List (line 92) | func (imo *InsertManyOptionsBuilder) List() []func(*InsertManyOptions)... method SetBypassDocumentValidation (line 100) | func (imo *InsertManyOptionsBuilder) SetBypassDocumentValidation(b boo... method SetComment (line 113) | func (imo *InsertManyOptionsBuilder) SetComment(comment any) *InsertMa... method SetOrdered (line 125) | func (imo *InsertManyOptionsBuilder) SetOrdered(b bool) *InsertManyOpt... function InsertMany (line 84) | func InsertMany() *InsertManyOptionsBuilder { FILE: mongo/options/listcollectionsoptions.go type ListCollectionsOptions (line 15) | type ListCollectionsOptions struct type ListCollectionsOptionsBuilder (line 28) | type ListCollectionsOptionsBuilder struct method List (line 38) | func (lc *ListCollectionsOptionsBuilder) List() []func(*ListCollection... method SetNameOnly (line 44) | func (lc *ListCollectionsOptionsBuilder) SetNameOnly(b bool) *ListColl... method SetBatchSize (line 56) | func (lc *ListCollectionsOptionsBuilder) SetBatchSize(size int32) *Lis... method SetAuthorizedCollections (line 69) | func (lc *ListCollectionsOptionsBuilder) SetAuthorizedCollections(b bo... function ListCollections (line 33) | func ListCollections() *ListCollectionsOptionsBuilder { FILE: mongo/options/listdatabasesoptions.go type ListDatabasesOptions (line 13) | type ListDatabasesOptions struct type ListDatabasesOptionsBuilder (line 20) | type ListDatabasesOptionsBuilder struct method List (line 30) | func (ld *ListDatabasesOptionsBuilder) List() []func(*ListDatabasesOpt... method SetNameOnly (line 36) | func (ld *ListDatabasesOptionsBuilder) SetNameOnly(b bool) *ListDataba... method SetAuthorizedDatabases (line 48) | func (ld *ListDatabasesOptionsBuilder) SetAuthorizedDatabases(b bool) ... function ListDatabases (line 25) | func ListDatabases() *ListDatabasesOptionsBuilder { FILE: mongo/options/lister.go type Lister (line 11) | type Lister interface FILE: mongo/options/loggeroptions.go type LogLevel (line 14) | type LogLevel constant LogLevelInfo (line 19) | LogLevelInfo LogLevel = LogLevel(logger.LevelInfo) constant LogLevelDebug (line 24) | LogLevelDebug LogLevel = LogLevel(logger.LevelDebug) type LogComponent (line 29) | type LogComponent constant LogComponentAll (line 33) | LogComponentAll LogComponent = LogComponent(logger.ComponentAll) constant LogComponentCommand (line 36) | LogComponentCommand LogComponent = LogComponent(logger.ComponentCommand) constant LogComponentTopology (line 39) | LogComponentTopology LogComponent = LogComponent(logger.ComponentTopology) constant LogComponentServerSelection (line 42) | LogComponentServerSelection LogComponent = LogComponent(logger.Component... constant LogComponentConnection (line 45) | LogComponentConnection LogComponent = LogComponent(logger.ComponentConne... type LogSink (line 50) | type LogSink interface type LoggerOptions (line 75) | type LoggerOptions struct method SetComponentLevel (line 89) | func (opts *LoggerOptions) SetComponentLevel(component LogComponent, l... method SetMaxDocumentLength (line 102) | func (opts *LoggerOptions) SetMaxDocumentLength(maxDocumentLength uint... method SetSink (line 111) | func (opts *LoggerOptions) SetSink(sink LogSink) *LoggerOptions { function Logger (line 82) | func Logger() *LoggerOptions { FILE: mongo/options/mongooptions.go type Collation (line 17) | type Collation struct type CursorType (line 31) | type CursorType constant NonTailable (line 35) | NonTailable CursorType = iota constant Tailable (line 37) | Tailable constant TailableAwait (line 40) | TailableAwait type ReturnDocument (line 45) | type ReturnDocument constant Before (line 49) | Before ReturnDocument = iota constant After (line 51) | After type FullDocument (line 55) | type FullDocument constant Default (line 59) | Default FullDocument = "default" constant Off (line 61) | Off FullDocument = "off" constant Required (line 63) | Required FullDocument = "required" constant UpdateLookup (line 66) | UpdateLookup FullDocument = "updateLookup" constant WhenAvailable (line 69) | WhenAvailable FullDocument = "whenAvailable" FILE: mongo/options/replaceoptions.go type ReplaceOptions (line 15) | type ReplaceOptions struct type ReplaceOptionsBuilder (line 32) | type ReplaceOptionsBuilder struct method List (line 42) | func (ro *ReplaceOptionsBuilder) List() []func(*ReplaceOptions) error { method SetBypassDocumentValidation (line 50) | func (ro *ReplaceOptionsBuilder) SetBypassDocumentValidation(b bool) *... method SetCollation (line 63) | func (ro *ReplaceOptionsBuilder) SetCollation(c *Collation) *ReplaceOp... method SetComment (line 76) | func (ro *ReplaceOptionsBuilder) SetComment(comment any) *ReplaceOptio... method SetHint (line 94) | func (ro *ReplaceOptionsBuilder) SetHint(h any) *ReplaceOptionsBuilder { method SetUpsert (line 106) | func (ro *ReplaceOptionsBuilder) SetUpsert(b bool) *ReplaceOptionsBuil... method SetLet (line 121) | func (ro *ReplaceOptionsBuilder) SetLet(l any) *ReplaceOptionsBuilder { method SetSort (line 136) | func (ro *ReplaceOptionsBuilder) SetSort(s any) *ReplaceOptionsBuilder { function Replace (line 37) | func Replace() *ReplaceOptionsBuilder { FILE: mongo/options/rewrapdatakeyoptions.go type RewrapManyDataKeyOptions (line 13) | type RewrapManyDataKeyOptions struct type RewrapManyDataKeyOptionsBuilder (line 21) | type RewrapManyDataKeyOptionsBuilder struct method List (line 31) | func (rmdko *RewrapManyDataKeyOptionsBuilder) List() []func(*RewrapMan... method SetProvider (line 37) | func (rmdko *RewrapManyDataKeyOptionsBuilder) SetProvider(provider str... method SetMasterKey (line 49) | func (rmdko *RewrapManyDataKeyOptionsBuilder) SetMasterKey(masterKey a... function RewrapManyDataKey (line 26) | func RewrapManyDataKey() *RewrapManyDataKeyOptionsBuilder { FILE: mongo/options/runcmdoptions.go type RunCmdOptions (line 17) | type RunCmdOptions struct type RunCmdOptionsBuilder (line 24) | type RunCmdOptionsBuilder struct method List (line 34) | func (rc *RunCmdOptionsBuilder) List() []func(*RunCmdOptions) error { method SetReadPreference (line 41) | func (rc *RunCmdOptionsBuilder) SetReadPreference(rp *readpref.ReadPre... function RunCmd (line 29) | func RunCmd() *RunCmdOptionsBuilder { FILE: mongo/options/searchindexoptions.go type SearchIndexesOptions (line 11) | type SearchIndexesOptions struct type SearchIndexesOptionsBuilder (line 19) | type SearchIndexesOptionsBuilder struct method List (line 29) | func (sio *SearchIndexesOptionsBuilder) List() []func(*SearchIndexesOp... method SetName (line 34) | func (sio *SearchIndexesOptionsBuilder) SetName(name string) *SearchIn... method SetType (line 45) | func (sio *SearchIndexesOptionsBuilder) SetType(typ string) *SearchInd... function SearchIndexes (line 24) | func SearchIndexes() *SearchIndexesOptionsBuilder { type CreateSearchIndexesOptions (line 57) | type CreateSearchIndexesOptions struct type CreateSearchIndexesOptionsBuilder (line 62) | type CreateSearchIndexesOptionsBuilder struct method List (line 67) | func (csio *CreateSearchIndexesOptionsBuilder) List() []func(*CreateSe... type ListSearchIndexesOptions (line 73) | type ListSearchIndexesOptions struct type ListSearchIndexesOptionsBuilder (line 79) | type ListSearchIndexesOptionsBuilder struct method List (line 84) | func (lsi *ListSearchIndexesOptionsBuilder) List() []func(*ListSearchI... type DropSearchIndexOptions (line 90) | type DropSearchIndexOptions struct type DropSearchIndexOptionsBuilder (line 95) | type DropSearchIndexOptionsBuilder struct method List (line 100) | func (dsio *DropSearchIndexOptionsBuilder) List() []func(*DropSearchIn... type UpdateSearchIndexOptions (line 106) | type UpdateSearchIndexOptions struct type UpdateSearchIndexOptionsBuilder (line 111) | type UpdateSearchIndexOptionsBuilder struct method List (line 116) | func (usio *UpdateSearchIndexOptionsBuilder) List() []func(*UpdateSear... FILE: mongo/options/serverapioptions.go type ServerAPIOptions (line 26) | type ServerAPIOptions struct method SetStrict (line 39) | func (s *ServerAPIOptions) SetStrict(strict bool) *ServerAPIOptions { method SetDeprecationErrors (line 46) | func (s *ServerAPIOptions) SetDeprecationErrors(deprecationErrors bool... function ServerAPI (line 34) | func ServerAPI(serverAPIVersion ServerAPIVersion) *ServerAPIOptions { type ServerAPIVersion (line 53) | type ServerAPIVersion method Validate (line 61) | func (sav ServerAPIVersion) Validate() error { constant ServerAPIVersion1 (line 57) | ServerAPIVersion1 ServerAPIVersion = "1" FILE: mongo/options/sessionoptions.go type SessionOptions (line 17) | type SessionOptions struct type SessionOptionsBuilder (line 25) | type SessionOptionsBuilder struct method List (line 35) | func (s *SessionOptionsBuilder) List() []func(*SessionOptions) error { method SetCausalConsistency (line 44) | func (s *SessionOptionsBuilder) SetCausalConsistency(b bool) *SessionO... method SetDefaultTransactionOptions (line 56) | func (s *SessionOptionsBuilder) SetDefaultTransactionOptions(dt *Trans... method SetSnapshot (line 68) | func (s *SessionOptionsBuilder) SetSnapshot(b bool) *SessionOptionsBui... method SetSnapshotTime (line 81) | func (s *SessionOptionsBuilder) SetSnapshotTime(t bson.Timestamp) *Ses... function Session (line 30) | func Session() *SessionOptionsBuilder { FILE: mongo/options/transactionoptions.go type TransactionOptions (line 19) | type TransactionOptions struct type TransactionOptionsBuilder (line 28) | type TransactionOptionsBuilder struct method List (line 38) | func (t *TransactionOptionsBuilder) List() []func(*TransactionOptions)... method SetReadConcern (line 45) | func (t *TransactionOptionsBuilder) SetReadConcern(rc *readconcern.Rea... method SetReadPreference (line 58) | func (t *TransactionOptionsBuilder) SetReadPreference(rp *readpref.Rea... method SetWriteConcern (line 71) | func (t *TransactionOptionsBuilder) SetWriteConcern(wc *writeconcern.W... function Transaction (line 33) | func Transaction() *TransactionOptionsBuilder { FILE: mongo/options/updateoptions.go type UpdateOneOptions (line 15) | type UpdateOneOptions struct type UpdateOneOptionsBuilder (line 33) | type UpdateOneOptionsBuilder struct method List (line 43) | func (uo *UpdateOneOptionsBuilder) List() []func(*UpdateOneOptions) er... method SetArrayFilters (line 51) | func (uo *UpdateOneOptionsBuilder) SetArrayFilters(af []any) *UpdateOn... method SetBypassDocumentValidation (line 65) | func (uo *UpdateOneOptionsBuilder) SetBypassDocumentValidation(b bool)... method SetCollation (line 78) | func (uo *UpdateOneOptionsBuilder) SetCollation(c *Collation) *UpdateO... method SetComment (line 91) | func (uo *UpdateOneOptionsBuilder) SetComment(comment any) *UpdateOneO... method SetHint (line 109) | func (uo *UpdateOneOptionsBuilder) SetHint(h any) *UpdateOneOptionsBui... method SetUpsert (line 121) | func (uo *UpdateOneOptionsBuilder) SetUpsert(b bool) *UpdateOneOptions... method SetLet (line 136) | func (uo *UpdateOneOptionsBuilder) SetLet(l any) *UpdateOneOptionsBuil... method SetSort (line 151) | func (uo *UpdateOneOptionsBuilder) SetSort(s any) *UpdateOneOptionsBui... function UpdateOne (line 38) | func UpdateOne() *UpdateOneOptionsBuilder { type UpdateManyOptions (line 165) | type UpdateManyOptions struct type UpdateManyOptionsBuilder (line 182) | type UpdateManyOptionsBuilder struct method List (line 192) | func (uo *UpdateManyOptionsBuilder) List() []func(*UpdateManyOptions) ... method SetArrayFilters (line 200) | func (uo *UpdateManyOptionsBuilder) SetArrayFilters(af []any) *UpdateM... method SetBypassDocumentValidation (line 214) | func (uo *UpdateManyOptionsBuilder) SetBypassDocumentValidation(b bool... method SetCollation (line 227) | func (uo *UpdateManyOptionsBuilder) SetCollation(c *Collation) *Update... method SetComment (line 240) | func (uo *UpdateManyOptionsBuilder) SetComment(comment any) *UpdateMan... method SetHint (line 258) | func (uo *UpdateManyOptionsBuilder) SetHint(h any) *UpdateManyOptionsB... method SetUpsert (line 270) | func (uo *UpdateManyOptionsBuilder) SetUpsert(b bool) *UpdateManyOptio... method SetLet (line 285) | func (uo *UpdateManyOptionsBuilder) SetLet(l any) *UpdateManyOptionsBu... function UpdateMany (line 187) | func UpdateMany() *UpdateManyOptionsBuilder { FILE: mongo/read_write_concern_spec_test.go constant connstringTestsDir (line 28) | connstringTestsDir = "connection-string" constant documentTestsDir (line 29) | documentTestsDir = "document" type connectionStringTestFile (line 42) | type connectionStringTestFile struct type connectionStringTest (line 46) | type connectionStringTest struct type documentTestFile (line 54) | type documentTestFile struct type documentTest (line 58) | type documentTest struct function TestReadWriteConcernSpec (line 69) | func TestReadWriteConcernSpec(t *testing.T) { function runConnectionStringTestFile (line 86) | func runConnectionStringTestFile(t *testing.T, filePath string) { function runConnectionStringTest (line 105) | func runConnectionStringTest(t *testing.T, test connectionStringTest) { function runDocumentTestFile (line 139) | func runDocumentTestFile(t *testing.T, filePath string) { function runDocumentTest (line 158) | func runDocumentTest(t *testing.T, test documentTest) { function readConcernFromRaw (line 209) | func readConcernFromRaw(t *testing.T, rc bson.Raw) *readconcern.ReadConc... type writeConcern (line 228) | type writeConcern struct function writeConcernFromRaw (line 234) | func writeConcernFromRaw(t *testing.T, wcRaw bson.Raw) writeConcern { function jsonFilesInDir (line 269) | func jsonFilesInDir(t *testing.T, dir string) []string { FILE: mongo/readconcern/readconcern.go type ReadConcern (line 18) | type ReadConcern struct function Local (line 27) | func Local() *ReadConcern { function Majority (line 36) | func Majority() *ReadConcern { function Linearizable (line 45) | func Linearizable() *ReadConcern { function Available (line 54) | func Available() *ReadConcern { function Snapshot (line 63) | func Snapshot() *ReadConcern { FILE: mongo/readpref/mode.go type Mode (line 15) | type Mode method String (line 59) | func (mode Mode) String() string { method IsValid (line 77) | func (mode Mode) IsValid() bool { constant _ (line 19) | _ Mode = iota constant PrimaryMode (line 23) | PrimaryMode constant PrimaryPreferredMode (line 27) | PrimaryPreferredMode constant SecondaryMode (line 30) | SecondaryMode constant SecondaryPreferredMode (line 34) | SecondaryPreferredMode constant NearestMode (line 37) | NearestMode function ModeFromString (line 42) | func ModeFromString(mode string) (Mode, error) { FILE: mongo/readpref/mode_test.go function TestMode_String (line 15) | func TestMode_String(t *testing.T) { FILE: mongo/readpref/options.go type Option (line 20) | type Option function WithMaxStaleness (line 24) | func WithMaxStaleness(ms time.Duration) Option { function WithTags (line 40) | func WithTags(tags ...string) Option { function WithTagSets (line 67) | func WithTagSets(tagSets ...tag.Set) Option { function WithHedgeEnabled (line 83) | func WithHedgeEnabled(hedgeEnabled bool) Option { FILE: mongo/readpref/options_example_test.go function ExampleWithTags (line 18) | func ExampleWithTags() { function ExampleWithTagSets (line 43) | func ExampleWithTagSets() { FILE: mongo/readpref/readpref.go function Primary (line 22) | func Primary() *ReadPref { function PrimaryPreferred (line 27) | func PrimaryPreferred(opts ...Option) *ReadPref { function SecondaryPreferred (line 34) | func SecondaryPreferred(opts ...Option) *ReadPref { function Secondary (line 41) | func Secondary(opts ...Option) *ReadPref { function Nearest (line 48) | func Nearest(opts ...Option) *ReadPref { function New (line 55) | func New(mode Mode, opts ...Option) (*ReadPref, error) { type ReadPref (line 78) | type ReadPref struct method MaxStaleness (line 89) | func (r *ReadPref) MaxStaleness() (time.Duration, bool) { method Mode (line 94) | func (r *ReadPref) Mode() Mode { method TagSets (line 100) | func (r *ReadPref) TagSets() []tag.Set { method HedgeEnabled (line 110) | func (r *ReadPref) HedgeEnabled() *bool { method String (line 115) | func (r *ReadPref) String() string { FILE: mongo/readpref/readpref_test.go function TestPrimary (line 18) | func TestPrimary(t *testing.T) { function TestPrimaryPreferred (line 27) | func TestPrimaryPreferred(t *testing.T) { function TestPrimaryPreferred_with_options (line 36) | func TestPrimaryPreferred_with_options(t *testing.T) { function TestSecondaryPreferred (line 49) | func TestSecondaryPreferred(t *testing.T) { function TestSecondaryPreferred_with_options (line 58) | func TestSecondaryPreferred_with_options(t *testing.T) { function TestSecondary (line 71) | func TestSecondary(t *testing.T) { function TestSecondary_with_options (line 80) | func TestSecondary_with_options(t *testing.T) { function TestNearest (line 93) | func TestNearest(t *testing.T) { function TestNearest_with_options (line 102) | func TestNearest_with_options(t *testing.T) { function TestHedge (line 115) | func TestHedge(t *testing.T) { function TestReadPref_String (line 129) | func TestReadPref_String(t *testing.T) { FILE: mongo/results.go type ClientBulkWriteResult (line 17) | type ClientBulkWriteResult struct type ClientBulkWriteInsertResult (line 51) | type ClientBulkWriteInsertResult struct type ClientBulkWriteUpdateResult (line 57) | type ClientBulkWriteUpdateResult struct type ClientBulkWriteDeleteResult (line 64) | type ClientBulkWriteDeleteResult struct type BulkWriteResult (line 69) | type BulkWriteResult struct type InsertOneResult (line 94) | type InsertOneResult struct type InsertManyResult (line 104) | type InsertManyResult struct type DeleteResult (line 116) | type DeleteResult struct type RewrapManyDataKeyResult (line 126) | type RewrapManyDataKeyResult struct type ListDatabasesResult (line 131) | type ListDatabasesResult struct function newListDatabasesResultFromOperation (line 140) | func newListDatabasesResultFromOperation(res operation.ListDatabasesResu... type DatabaseSpecification (line 154) | type DatabaseSpecification struct type UpdateResult (line 161) | type UpdateResult struct type IndexSpecification (line 174) | type IndexSpecification struct type indexListSpecificationResponse (line 203) | type indexListSpecificationResponse struct type CollectionSpecification (line 216) | type CollectionSpecification struct type DistinctResult (line 240) | type DistinctResult struct method Decode (line 255) | func (dr *DistinctResult) Decode(v any) error { method Err (line 272) | func (dr *DistinctResult) Err() error { method Raw (line 280) | func (dr *DistinctResult) Raw() (bson.RawArray, error) { FILE: mongo/search_index_view.go type SearchIndexView (line 32) | type SearchIndexView struct method List (line 52) | func (siv SearchIndexView) List( method CreateOne (line 85) | func (siv SearchIndexView) CreateOne( method CreateMany (line 107) | func (siv SearchIndexView) CreateMany( method DropOne (line 199) | func (siv SearchIndexView) DropOne( method UpdateOne (line 250) | func (siv SearchIndexView) UpdateOne( type SearchIndexModel (line 37) | type SearchIndexModel struct FILE: mongo/session.go type Session (line 52) | type Session struct method ID (line 90) | func (s *Session) ID() bson.Raw { method EndSession (line 95) | func (s *Session) EndSession(ctx context.Context) { method WithTransaction (line 128) | func (s *Session) WithTransaction( method StartTransaction (line 242) | func (s *Session) StartTransaction(opts ...options.Lister[options.Tran... method AbortTransaction (line 267) | func (s *Session) AbortTransaction(ctx context.Context) error { method CommitTransaction (line 296) | func (s *Session) CommitTransaction(ctx context.Context) error { method ClusterTime (line 341) | func (s *Session) ClusterTime() bson.Raw { method SnapshotTime (line 346) | func (s *Session) SnapshotTime() bson.Timestamp { method AdvanceClusterTime (line 352) | func (s *Session) AdvanceClusterTime(d bson.Raw) error { method OperationTime (line 358) | func (s *Session) OperationTime() *bson.Timestamp { method AdvanceOperationTime (line 364) | func (s *Session) AdvanceOperationTime(ts *bson.Timestamp) error { method Client (line 369) | func (s *Session) Client() *Client { method TransactionRunning (line 375) | func (s *Session) TransactionRunning() bool { type sessionKey (line 59) | type sessionKey struct function NewSessionContext (line 67) | func NewSessionContext(parent context.Context, sess *Session) context.Co... function SessionFromContext (line 74) | func SessionFromContext(ctx context.Context) *Session { function sessionFromContext (line 381) | func sessionFromContext(ctx context.Context) *session.Client { FILE: mongo/single_result.go type SingleResult (line 24) | type SingleResult struct method Decode (line 73) | func (sr *SingleResult) Decode(v any) error { method Raw (line 94) | func (sr *SingleResult) Raw() (bson.Raw, error) { method setRdrContents (line 107) | func (sr *SingleResult) setRdrContents() error { method Err (line 136) | func (sr *SingleResult) Err() error { function NewSingleResultFromDocument (line 43) | func NewSingleResultFromDocument( FILE: mongo/single_result_test.go function TestNewSingleResultFromDocument (line 19) | func TestNewSingleResultFromDocument(t *testing.T) { function TestSingleResult_Decode (line 95) | func TestSingleResult_Decode(t *testing.T) { function TestSingleResult_Err (line 132) | func TestSingleResult_Err(t *testing.T) { FILE: mongo/with_transactions_test.go function TestConvenientTransactions (line 39) | func TestConvenientTransactions(t *testing.T) { type testJitter (line 677) | type testJitter struct method Int63n (line 681) | func (j *testJitter) Int63n(n int64) int64 { function setupConvenientTransactions (line 692) | func setupConvenientTransactions(t *testing.T, extraClientOpts ...*optio... function getServerVersion (line 736) | func getServerVersion(db *Database) (string, error) { function compareVersions (line 759) | func compareVersions(v1 string, v2 string) int { FILE: mongo/writeconcern/writeconcern.go constant WCMajority (line 14) | WCMajority = "majority" type WriteConcern (line 22) | type WriteConcern struct method Acknowledged (line 108) | func (wc *WriteConcern) Acknowledged() bool { method IsValid (line 115) | func (wc *WriteConcern) IsValid() bool { function Unacknowledged (line 55) | func Unacknowledged() *WriteConcern { function W1 (line 65) | func W1() *WriteConcern { function Journaled (line 77) | func Journaled() *WriteConcern { function Majority (line 93) | func Majority() *WriteConcern { function Custom (line 103) | func Custom(tag string) *WriteConcern { FILE: mongo/writeconcern/writeconcern_example_test.go function Example_majority (line 17) | func Example_majority() { function Example_w2Journaled (line 32) | func Example_w2Journaled() { function boolPtr (line 56) | func boolPtr(b bool) *bool { FILE: mongo/writeconcern/writeconcern_test.go function TestWriteConcern (line 16) | func TestWriteConcern(t *testing.T) { FILE: tag/tag.go type Tag (line 19) | type Tag struct method String (line 25) | func (tag Tag) String() string { function NewTagSetFromMap (line 33) | func NewTagSetFromMap(m map[string]string) Set { function NewTagSetsFromMaps (line 46) | func NewTagSetsFromMaps(maps []map[string]string) []Set { type Set (line 55) | type Set method Contains (line 58) | func (ts Set) Contains(name, value string) bool { method ContainsAll (line 69) | func (ts Set) ContainsAll(other []Tag) bool { method String (line 80) | func (ts Set) String() string { FILE: tag/tag_test.go function TestTag_String (line 16) | func TestTag_String(t *testing.T) { function TestTagSets_NewTagSet (line 23) | func TestTagSets_NewTagSet(t *testing.T) { function TestTagSets_NewTagSetFromMap (line 34) | func TestTagSets_NewTagSetFromMap(t *testing.T) { function TestTagSets_NewTagSetsFromMaps (line 45) | func TestTagSets_NewTagSetsFromMaps(t *testing.T) { function TestTagSets_ContainsAll (line 65) | func TestTagSets_ContainsAll(t *testing.T) { function TestTagSets_String (line 88) | func TestTagSets_String(t *testing.T) { FILE: x/bsonx/bsoncore/array.go function NewArrayLengthError (line 18) | func NewArrayLengthError(length, rem int) error { type Array (line 23) | type Array method Index (line 33) | func (a Array) Index(index uint) Value { method IndexErr (line 42) | func (a Array) IndexErr(index uint) (Value, error) { method DebugString (line 52) | func (a Array) DebugString() string { method String (line 84) | func (a Array) String() string { method StringN (line 92) | func (a Array) StringN(n int) (string, bool) { method Values (line 163) | func (a Array) Values() ([]Value, error) { method Validate (line 168) | func (a Array) Validate() error { function NewArrayFromReader (line 27) | func NewArrayFromReader(r io.Reader) (Array, error) { FILE: x/bsonx/bsoncore/array_test.go function TestArray (line 21) | func TestArray(t *testing.T) { function TestArray_String (line 408) | func TestArray_String(t *testing.T) { function TestArray_StringN (line 417) | func TestArray_StringN(t *testing.T) { FILE: x/bsonx/bsoncore/bson_arraybuilder.go type ArrayBuilder (line 14) | type ArrayBuilder struct method startArray (line 26) | func (a *ArrayBuilder) startArray() *ArrayBuilder { method Build (line 36) | func (a *ArrayBuilder) Build() Array { method incrementKey (line 46) | func (a *ArrayBuilder) incrementKey() string { method AppendInt32 (line 54) | func (a *ArrayBuilder) AppendInt32(i32 int32) *ArrayBuilder { method AppendDocument (line 60) | func (a *ArrayBuilder) AppendDocument(doc []byte) *ArrayBuilder { method AppendArray (line 66) | func (a *ArrayBuilder) AppendArray(arr []byte) *ArrayBuilder { method AppendDouble (line 72) | func (a *ArrayBuilder) AppendDouble(f float64) *ArrayBuilder { method AppendString (line 78) | func (a *ArrayBuilder) AppendString(str string) *ArrayBuilder { method AppendObjectID (line 84) | func (a *ArrayBuilder) AppendObjectID(oid objectID) *ArrayBuilder { method AppendBinary (line 91) | func (a *ArrayBuilder) AppendBinary(subtype byte, b []byte) *ArrayBuil... method AppendUndefined (line 97) | func (a *ArrayBuilder) AppendUndefined() *ArrayBuilder { method AppendBoolean (line 103) | func (a *ArrayBuilder) AppendBoolean(b bool) *ArrayBuilder { method AppendDateTime (line 109) | func (a *ArrayBuilder) AppendDateTime(dt int64) *ArrayBuilder { method AppendNull (line 115) | func (a *ArrayBuilder) AppendNull() *ArrayBuilder { method AppendRegex (line 121) | func (a *ArrayBuilder) AppendRegex(pattern, options string) *ArrayBuil... method AppendDBPointer (line 127) | func (a *ArrayBuilder) AppendDBPointer(ns string, oid objectID) *Array... method AppendJavaScript (line 133) | func (a *ArrayBuilder) AppendJavaScript(js string) *ArrayBuilder { method AppendSymbol (line 139) | func (a *ArrayBuilder) AppendSymbol(symbol string) *ArrayBuilder { method AppendCodeWithScope (line 145) | func (a *ArrayBuilder) AppendCodeWithScope(code string, scope Document... method AppendTimestamp (line 151) | func (a *ArrayBuilder) AppendTimestamp(t, i uint32) *ArrayBuilder { method AppendInt64 (line 157) | func (a *ArrayBuilder) AppendInt64(i64 int64) *ArrayBuilder { method AppendDecimal128 (line 163) | func (a *ArrayBuilder) AppendDecimal128(high, low uint64) *ArrayBuilder { method AppendMaxKey (line 169) | func (a *ArrayBuilder) AppendMaxKey() *ArrayBuilder { method AppendMinKey (line 175) | func (a *ArrayBuilder) AppendMinKey() *ArrayBuilder { method AppendValue (line 181) | func (a *ArrayBuilder) AppendValue(val Value) *ArrayBuilder { method StartArray (line 188) | func (a *ArrayBuilder) StartArray() *ArrayBuilder { method FinishArray (line 195) | func (a *ArrayBuilder) FinishArray() *ArrayBuilder { function NewArrayBuilder (line 21) | func NewArrayBuilder() *ArrayBuilder { FILE: x/bsonx/bsoncore/bson_arraybuilder_test.go function TestArrayBuilder (line 17) | func TestArrayBuilder(t *testing.T) { FILE: x/bsonx/bsoncore/bson_documentbuilder.go type DocumentBuilder (line 10) | type DocumentBuilder struct method startDocument (line 16) | func (db *DocumentBuilder) startDocument() *DocumentBuilder { method Build (line 30) | func (db *DocumentBuilder) Build() Document { method AppendInt32 (line 38) | func (db *DocumentBuilder) AppendInt32(key string, i32 int32) *Documen... method AppendDocument (line 45) | func (db *DocumentBuilder) AppendDocument(key string, doc []byte) *Doc... method AppendArray (line 51) | func (db *DocumentBuilder) AppendArray(key string, arr []byte) *Docume... method AppendDouble (line 58) | func (db *DocumentBuilder) AppendDouble(key string, f float64) *Docume... method AppendString (line 64) | func (db *DocumentBuilder) AppendString(key string, str string) *Docum... method AppendObjectID (line 70) | func (db *DocumentBuilder) AppendObjectID(key string, oid objectID) *D... method AppendBinary (line 77) | func (db *DocumentBuilder) AppendBinary(key string, subtype byte, b []... method AppendUndefined (line 83) | func (db *DocumentBuilder) AppendUndefined(key string) *DocumentBuilder { method AppendBoolean (line 89) | func (db *DocumentBuilder) AppendBoolean(key string, b bool) *Document... method AppendDateTime (line 95) | func (db *DocumentBuilder) AppendDateTime(key string, dt int64) *Docum... method AppendNull (line 101) | func (db *DocumentBuilder) AppendNull(key string) *DocumentBuilder { method AppendRegex (line 107) | func (db *DocumentBuilder) AppendRegex(key, pattern, options string) *... method AppendDBPointer (line 113) | func (db *DocumentBuilder) AppendDBPointer(key string, ns string, oid ... method AppendJavaScript (line 119) | func (db *DocumentBuilder) AppendJavaScript(key, js string) *DocumentB... method AppendSymbol (line 125) | func (db *DocumentBuilder) AppendSymbol(key, symbol string) *DocumentB... method AppendCodeWithScope (line 131) | func (db *DocumentBuilder) AppendCodeWithScope(key string, code string... method AppendTimestamp (line 137) | func (db *DocumentBuilder) AppendTimestamp(key string, t, i uint32) *D... method AppendInt64 (line 143) | func (db *DocumentBuilder) AppendInt64(key string, i64 int64) *Documen... method AppendDecimal128 (line 149) | func (db *DocumentBuilder) AppendDecimal128(key string, high, low uint... method AppendMaxKey (line 155) | func (db *DocumentBuilder) AppendMaxKey(key string) *DocumentBuilder { method AppendMinKey (line 161) | func (db *DocumentBuilder) AppendMinKey(key string) *DocumentBuilder { method AppendValue (line 167) | func (db *DocumentBuilder) AppendValue(key string, val Value) *Documen... method StartDocument (line 174) | func (db *DocumentBuilder) StartDocument(key string) *DocumentBuilder { method FinishDocument (line 181) | func (db *DocumentBuilder) FinishDocument() *DocumentBuilder { function NewDocumentBuilder (line 24) | func NewDocumentBuilder() *DocumentBuilder { FILE: x/bsonx/bsoncore/bson_documentbuilder_test.go function TestDocumentBuilder (line 17) | func TestDocumentBuilder(t *testing.T) { FILE: x/bsonx/bsoncore/bsoncore.go constant EmptyDocumentLength (line 23) | EmptyDocumentLength = 5 constant nullTerminator (line 25) | nullTerminator = string(byte(0)) constant invalidKeyPanicMsg (line 26) | invalidKeyPanicMsg = "BSON element keys cannot contain null bytes" constant invalidRegexPanicMsg (line 27) | invalidRegexPanicMsg = "BSON regex values cannot contain null bytes" function AppendType (line 33) | func AppendType(dst []byte, t Type) []byte { return append(dst, byte(t)) } function AppendKey (line 36) | func AppendKey(dst []byte, key string) []byte { return append(dst, key+n... function AppendHeader (line 40) | func AppendHeader(dst []byte, t Type, key string) []byte { function ReadType (line 55) | func ReadType(src []byte) (Type, []byte, bool) { function ReadKey (line 65) | func ReadKey(src []byte) (string, []byte, bool) { return binaryutil.Read... function ReadKeyBytes (line 70) | func ReadKeyBytes(src []byte) ([]byte, []byte, bool) { return binaryutil... function ReadHeader (line 74) | func ReadHeader(src []byte) (t Type, key string, rem []byte, ok bool) { function ReadHeaderBytes (line 89) | func ReadHeaderBytes(src []byte) (header []byte, rem []byte, ok bool) { function ReadElement (line 102) | func ReadElement(src []byte) (Element, []byte, bool) { function AppendValueElement (line 127) | func AppendValueElement(dst []byte, key string, value Value) []byte { function ReadValue (line 135) | func ReadValue(src []byte, t Type) (Value, []byte, bool) { function AppendDouble (line 144) | func AppendDouble(dst []byte, f float64) []byte { function AppendDoubleElement (line 150) | func AppendDoubleElement(dst []byte, key string, f float64) []byte { function ReadDouble (line 156) | func ReadDouble(src []byte) (float64, []byte, bool) { function AppendString (line 165) | func AppendString(dst []byte, s string) []byte { function AppendStringElement (line 171) | func AppendStringElement(dst []byte, key, val string) []byte { function ReadString (line 177) | func ReadString(src []byte) (string, []byte, bool) { function AppendDocumentStart (line 183) | func AppendDocumentStart(dst []byte) (index int32, b []byte) { function AppendDocumentStartInline (line 193) | func AppendDocumentStartInline(dst []byte, index *int32) []byte { function AppendDocumentElementStart (line 200) | func AppendDocumentElementStart(dst []byte, key string) (index int32, b ... function AppendDocumentEnd (line 206) | func AppendDocumentEnd(dst []byte, index int32) ([]byte, error) { function AppendDocument (line 216) | func AppendDocument(dst []byte, doc []byte) []byte { return append(dst, ... function AppendDocumentElement (line 220) | func AppendDocumentElement(dst []byte, key string, doc []byte) []byte { function BuildDocument (line 226) | func BuildDocument(dst []byte, elems ...[]byte) []byte { function BuildDocumentValue (line 237) | func BuildDocumentValue(elems ...[]byte) Value { function BuildDocumentElement (line 243) | func BuildDocumentElement(dst []byte, key string, elems ...[]byte) []byte { function ReadDocument (line 252) | func ReadDocument(src []byte) (doc Document, rem []byte, ok bool) { retu... function AppendArrayStart (line 256) | func AppendArrayStart(dst []byte) (index int32, b []byte) { return Reser... function AppendArrayElementStart (line 260) | func AppendArrayElementStart(dst []byte, key string) (index int32, b []b... function AppendArrayEnd (line 266) | func AppendArrayEnd(dst []byte, index int32) ([]byte, error) { return Ap... function AppendArray (line 269) | func AppendArray(dst []byte, arr []byte) []byte { return append(dst, arr... function AppendArrayElement (line 273) | func AppendArrayElement(dst []byte, key string, arr []byte) []byte { function BuildArray (line 278) | func BuildArray(dst []byte, values ...Value) []byte { function BuildArrayElement (line 289) | func BuildArrayElement(dst []byte, key string, values ...Value) []byte { function ReadArray (line 295) | func ReadArray(src []byte) (arr Array, rem []byte, ok bool) { return rea... function AppendBinary (line 298) | func AppendBinary(dst []byte, subtype byte, b []byte) []byte { function AppendBinaryElement (line 308) | func AppendBinaryElement(dst []byte, key string, subtype byte, b []byte)... function ReadBinary (line 314) | func ReadBinary(src []byte) (subtype byte, bin []byte, rem []byte, ok bo... function AppendUndefinedElement (line 340) | func AppendUndefinedElement(dst []byte, key string) []byte { function AppendObjectID (line 345) | func AppendObjectID(dst []byte, oid objectID) []byte { return append(dst... function AppendObjectIDElement (line 349) | func AppendObjectIDElement(dst []byte, key string, oid objectID) []byte { function ReadObjectID (line 355) | func ReadObjectID(src []byte) ([12]byte, []byte, bool) { function AppendBoolean (line 366) | func AppendBoolean(dst []byte, b bool) []byte { function AppendBooleanElement (line 375) | func AppendBooleanElement(dst []byte, key string, b bool) []byte { function ReadBoolean (line 381) | func ReadBoolean(src []byte) (bool, []byte, bool) { function AppendDateTime (line 390) | func AppendDateTime(dst []byte, dt int64) []byte { return binaryutil.App... function AppendDateTimeElement (line 394) | func AppendDateTimeElement(dst []byte, key string, dt int64) []byte { function ReadDateTime (line 400) | func ReadDateTime(src []byte) (int64, []byte, bool) { return binaryutil.... function AppendTime (line 403) | func AppendTime(dst []byte, t time.Time) []byte { function AppendTimeElement (line 409) | func AppendTimeElement(dst []byte, key string, t time.Time) []byte { function ReadTime (line 415) | func ReadTime(src []byte) (time.Time, []byte, bool) { function AppendNullElement (line 422) | func AppendNullElement(dst []byte, key string) []byte { return AppendHea... function AppendRegex (line 425) | func AppendRegex(dst []byte, pattern, options string) []byte { function AppendRegexElement (line 435) | func AppendRegexElement(dst []byte, key, pattern, options string) []byte { function ReadRegex (line 441) | func ReadRegex(src []byte) (pattern, options string, rem []byte, ok bool) { function AppendDBPointer (line 454) | func AppendDBPointer(dst []byte, ns string, oid objectID) []byte { function AppendDBPointerElement (line 460) | func AppendDBPointerElement(dst []byte, key, ns string, oid objectID) []... function ReadDBPointer (line 466) | func ReadDBPointer(src []byte) (ns string, oid [12]byte, rem []byte, ok ... function AppendJavaScript (line 479) | func AppendJavaScript(dst []byte, js string) []byte { return appendstrin... function AppendJavaScriptElement (line 483) | func AppendJavaScriptElement(dst []byte, key, js string) []byte { function ReadJavaScript (line 489) | func ReadJavaScript(src []byte) (js string, rem []byte, ok bool) { retur... function AppendSymbol (line 492) | func AppendSymbol(dst []byte, symbol string) []byte { return appendstrin... function AppendSymbolElement (line 496) | func AppendSymbolElement(dst []byte, key, symbol string) []byte { function ReadSymbol (line 502) | func ReadSymbol(src []byte) (symbol string, rem []byte, ok bool) { retur... function AppendCodeWithScope (line 505) | func AppendCodeWithScope(dst []byte, code string, scope []byte) []byte { function AppendCodeWithScopeElement (line 515) | func AppendCodeWithScopeElement(dst []byte, key, code string, scope []by... function ReadCodeWithScope (line 521) | func ReadCodeWithScope(src []byte) (code string, scope []byte, rem []byt... function AppendInt32 (line 540) | func AppendInt32(dst []byte, i32 int32) []byte { return binaryutil.Appen... function AppendInt32Element (line 544) | func AppendInt32Element(dst []byte, key string, i32 int32) []byte { function ReadInt32 (line 550) | func ReadInt32(src []byte) (int32, []byte, bool) { return binaryutil.Rea... function AppendTimestamp (line 553) | func AppendTimestamp(dst []byte, t, i uint32) []byte { function AppendTimestampElement (line 559) | func AppendTimestampElement(dst []byte, key string, t, i uint32) []byte { function ReadTimestamp (line 565) | func ReadTimestamp(src []byte) (t, i uint32, rem []byte, ok bool) { function AppendInt64 (line 578) | func AppendInt64(dst []byte, i64 int64) []byte { return binaryutil.Appen... function AppendInt64Element (line 582) | func AppendInt64Element(dst []byte, key string, i64 int64) []byte { function ReadInt64 (line 588) | func ReadInt64(src []byte) (int64, []byte, bool) { return binaryutil.Rea... function AppendDecimal128 (line 591) | func AppendDecimal128(dst []byte, high, low uint64) []byte { function AppendDecimal128Element (line 597) | func AppendDecimal128Element(dst []byte, key string, high, low uint64) [... function ReadDecimal128 (line 603) | func ReadDecimal128(src []byte) (high uint64, low uint64, rem []byte, ok... function AppendMaxKeyElement (line 619) | func AppendMaxKeyElement(dst []byte, key string) []byte { function AppendMinKeyElement (line 625) | func AppendMinKeyElement(dst []byte, key string) []byte { function EqualValue (line 630) | func EqualValue(t1, t2 Type, v1, v2 []byte) bool { function valueLength (line 648) | func valueLength(src []byte, t Type) (int32, bool) { function readValue (line 694) | func readValue(src []byte, t Type) ([]byte, []byte, bool) { function ReserveLength (line 705) | func ReserveLength(dst []byte) (int32, []byte) { function UpdateLength (line 711) | func UpdateLength(dst []byte, index, length int32) []byte { function appendLength (line 716) | func appendLength(dst []byte, l int32) []byte { return binaryutil.Append... function ReadLength (line 721) | func ReadLength(src []byte) (int32, []byte, bool) { function appendstring (line 729) | func appendstring(dst []byte, s string) []byte { function readstring (line 736) | func readstring(src []byte) (string, []byte, bool) { function readLengthBytes (line 750) | func readLengthBytes(src []byte) ([]byte, []byte, bool) { function appendBinarySubtype2 (line 764) | func appendBinarySubtype2(dst []byte, subtype byte, b []byte) []byte { function isValidCString (line 771) | func isValidCString(cs string) bool { FILE: x/bsonx/bsoncore/bsoncore_test.go function compareErrors (line 21) | func compareErrors(err1, err2 error) bool { function TestAppend (line 37) | func TestAppend(t *testing.T) { function TestRead (line 450) | func TestRead(t *testing.T) { function TestBuild (line 869) | func TestBuild(t *testing.T) { function TestNullBytes (line 913) | func TestNullBytes(t *testing.T) { function TestInvalidBytes (line 964) | func TestInvalidBytes(t *testing.T) { FILE: x/bsonx/bsoncore/document.go type ValidationError (line 20) | type ValidationError method Error (line 22) | func (ve ValidationError) Error() string { return string(ve) } function NewDocumentLengthError (line 26) | func NewDocumentLengthError(length, rem int) error { function lengthError (line 30) | func lengthError(bufferType string, length, rem int) error { type InsufficientBytesError (line 36) | type InsufficientBytesError struct method Error (line 48) | func (ibe InsufficientBytesError) Error() string { method Equal (line 53) | func (ibe InsufficientBytesError) Equal(err2 error) bool { function NewInsufficientBytesError (line 43) | func NewInsufficientBytesError(src, rem []byte) InsufficientBytesError { type InvalidDepthTraversalError (line 64) | type InvalidDepthTraversalError struct method Error (line 69) | func (idte InvalidDepthTraversalError) Error() string { constant ErrMissingNull (line 77) | ErrMissingNull ValidationError = "document or array end is missing null ... constant ErrInvalidLength (line 81) | ErrInvalidLength ValidationError = "document or array length is invalid" type Document (line 96) | type Document method Lookup (line 141) | func (d Document) Lookup(key ...string) Value { method LookupErr (line 147) | func (d Document) LookupErr(key ...string) (Value, error) { method Index (line 196) | func (d Document) Index(index uint) Element { method IndexErr (line 205) | func (d Document) IndexErr(index uint) (Element, error) { method DebugString (line 236) | func (d Document) DebugString() string { method String (line 265) | func (d Document) String() string { method StringN (line 273) | func (d Document) StringN(n int) (string, bool) { method Elements (line 344) | func (d Document) Elements() ([]Element, error) { method Values (line 371) | func (d Document) Values() ([]Value, error) { method Validate (line 400) | func (d Document) Validate() error { function NewDocumentFromReader (line 100) | func NewDocumentFromReader(r io.Reader) (Document, error) { function newBufferFromReader (line 104) | func newBufferFromReader(r io.Reader) ([]byte, error) { function indexErr (line 209) | func indexErr(b []byte, index uint) (Element, error) { function values (line 375) | func values(b []byte) ([]Value, error) { FILE: x/bsonx/bsoncore/document_test.go function ExampleDocument_Validate (line 21) | func ExampleDocument_Validate() { function BenchmarkDocumentValidate (line 30) | func BenchmarkDocumentValidate(b *testing.B) { function TestDocument (line 38) | func TestDocument(t *testing.T) { function TestDocument_String (line 463) | func TestDocument_String(t *testing.T) { function TestDocument_StringN (line 472) | func TestDocument_StringN(t *testing.T) { function TestDocument_StringN_Multibyte (line 491) | func TestDocument_StringN_Multibyte(t *testing.T) { FILE: x/bsonx/bsoncore/element.go type MalformedElementError (line 18) | type MalformedElementError method Error (line 20) | func (mee MalformedElementError) Error() string { return string(mee) } constant ErrElementMissingKey (line 23) | ErrElementMissingKey MalformedElementError = "element is missing key" constant ErrElementMissingType (line 26) | ErrElementMissingType MalformedElementError = "element is missing type" type Element (line 29) | type Element method Key (line 33) | func (e Element) Key() string { method KeyBytes (line 41) | func (e Element) KeyBytes() []byte { method KeyErr (line 47) | func (e Element) KeyErr() (string, error) { method KeyBytesErr (line 54) | func (e Element) KeyBytesErr() ([]byte, error) { method Validate (line 66) | func (e Element) Validate() error { method CompareKey (line 80) | func (e Element) CompareKey(key []byte) bool { method Value (line 96) | func (e Element) Value() Value { method ValueErr (line 102) | func (e Element) ValueErr() (Value, error) { method String (line 119) | func (e Element) String() string { method StringN (line 128) | func (e Element) StringN(n int) (string, bool) { method DebugString (line 198) | func (e Element) DebugString() string { FILE: x/bsonx/bsoncore/element_test.go function TestElement (line 15) | func TestElement(t *testing.T) { FILE: x/bsonx/bsoncore/iterator.go type Iterator (line 21) | type Iterator struct method Count (line 27) | func (iter *Iterator) Count() int { method Empty (line 49) | func (iter *Iterator) Empty() bool { method Reset (line 55) | func (iter *Iterator) Reset() { method Documents (line 62) | func (iter *Iterator) Documents() ([]Document, error) { method Next (line 86) | func (iter *Iterator) Next() (*Value, error) { FILE: x/bsonx/bsoncore/iterator_test.go function TestIterator_Reset (line 17) | func TestIterator_Reset(t *testing.T) { function TestIterator_Count (line 96) | func TestIterator_Count(t *testing.T) { function TestIterator_Next (line 185) | func TestIterator_Next(t *testing.T) { function BenchmarkIterator_Next (line 269) | func BenchmarkIterator_Next(b *testing.B) { FILE: x/bsonx/bsoncore/type.go type Type (line 10) | type Type method String (line 13) | func (bt Type) String() string { constant TypeDouble (line 64) | TypeDouble Type = 0x01 constant TypeString (line 65) | TypeString Type = 0x02 constant TypeEmbeddedDocument (line 66) | TypeEmbeddedDocument Type = 0x03 constant TypeArray (line 67) | TypeArray Type = 0x04 constant TypeBinary (line 68) | TypeBinary Type = 0x05 constant TypeUndefined (line 69) | TypeUndefined Type = 0x06 constant TypeObjectID (line 70) | TypeObjectID Type = 0x07 constant TypeBoolean (line 71) | TypeBoolean Type = 0x08 constant TypeDateTime (line 72) | TypeDateTime Type = 0x09 constant TypeNull (line 73) | TypeNull Type = 0x0A constant TypeRegex (line 74) | TypeRegex Type = 0x0B constant TypeDBPointer (line 75) | TypeDBPointer Type = 0x0C constant TypeJavaScript (line 76) | TypeJavaScript Type = 0x0D constant TypeSymbol (line 77) | TypeSymbol Type = 0x0E constant TypeCodeWithScope (line 78) | TypeCodeWithScope Type = 0x0F constant TypeInt32 (line 79) | TypeInt32 Type = 0x10 constant TypeTimestamp (line 80) | TypeTimestamp Type = 0x11 constant TypeInt64 (line 81) | TypeInt64 Type = 0x12 constant TypeDecimal128 (line 82) | TypeDecimal128 Type = 0x13 constant TypeMaxKey (line 83) | TypeMaxKey Type = 0x7F constant TypeMinKey (line 84) | TypeMinKey Type = 0xFF FILE: x/bsonx/bsoncore/value.go type ElementTypeError (line 26) | type ElementTypeError struct method Error (line 32) | func (ete ElementTypeError) Error() string { type Value (line 37) | type Value struct method Validate (line 43) | func (v Value) Validate() error { method IsNumber (line 52) | func (v Value) IsNumber() bool { method AsInt32 (line 63) | func (v Value) AsInt32() int32 { method AsInt32OK (line 95) | func (v Value) AsInt32OK() (int32, bool) { method AsInt64 (line 127) | func (v Value) AsInt64() int64 { method AsInt64OK (line 159) | func (v Value) AsInt64OK() (int64, bool) { method AsFloat64 (line 191) | func (v Value) AsFloat64() float64 { method AsFloat64OK (line 223) | func (v Value) AsFloat64OK() (float64, bool) { method Equal (line 254) | func (v Value) Equal(v2 Value) bool { method String (line 270) | func (v Value) String() string { method StringN (line 279) | func (v Value) StringN(n int) (string, bool) { method DebugString (line 406) | func (v Value) DebugString() string { method Double (line 443) | func (v Value) Double() float64 { method DoubleOK (line 455) | func (v Value) DoubleOK() (float64, bool) { method StringValue (line 471) | func (v Value) StringValue() string { method StringValueOK (line 484) | func (v Value) StringValueOK() (string, bool) { method Document (line 497) | func (v Value) Document() Document { method DocumentOK (line 510) | func (v Value) DocumentOK() (Document, bool) { method Array (line 523) | func (v Value) Array() Array { method ArrayOK (line 536) | func (v Value) ArrayOK() (Array, bool) { method Binary (line 549) | func (v Value) Binary() (subtype byte, data []byte) { method BinaryOK (line 562) | func (v Value) BinaryOK() (subtype byte, data []byte, ok bool) { method ObjectID (line 575) | func (v Value) ObjectID() [12]byte { method ObjectIDOK (line 588) | func (v Value) ObjectIDOK() ([12]byte, bool) { method Boolean (line 601) | func (v Value) Boolean() bool { method BooleanOK (line 614) | func (v Value) BooleanOK() (bool, bool) { method DateTime (line 627) | func (v Value) DateTime() int64 { method DateTimeOK (line 640) | func (v Value) DateTimeOK() (int64, bool) { method Time (line 653) | func (v Value) Time() time.Time { method TimeOK (line 666) | func (v Value) TimeOK() (time.Time, bool) { method Regex (line 679) | func (v Value) Regex() (pattern, options string) { method RegexOK (line 692) | func (v Value) RegexOK() (pattern, options string, ok bool) { method DBPointer (line 705) | func (v Value) DBPointer() (string, [12]byte) { method DBPointerOK (line 718) | func (v Value) DBPointerOK() (string, [12]byte, bool) { method JavaScript (line 731) | func (v Value) JavaScript() string { method JavaScriptOK (line 744) | func (v Value) JavaScriptOK() (string, bool) { method Symbol (line 757) | func (v Value) Symbol() string { method SymbolOK (line 770) | func (v Value) SymbolOK() (string, bool) { method CodeWithScope (line 783) | func (v Value) CodeWithScope() (string, Document) { method CodeWithScopeOK (line 796) | func (v Value) CodeWithScopeOK() (string, Document, bool) { method Int32 (line 809) | func (v Value) Int32() int32 { method Int32OK (line 822) | func (v Value) Int32OK() (int32, bool) { method Timestamp (line 835) | func (v Value) Timestamp() (t, i uint32) { method TimestampOK (line 848) | func (v Value) TimestampOK() (t, i uint32, ok bool) { method Int64 (line 861) | func (v Value) Int64() int64 { method Int64OK (line 874) | func (v Value) Int64OK() (int64, bool) { method Decimal128 (line 887) | func (v Value) Decimal128() (uint64, uint64) { method Decimal128OK (line 900) | func (v Value) Decimal128OK() (uint64, uint64, bool) { function idHex (line 262) | func idHex(id [12]byte) string { function escapeString (line 913) | func escapeString(s string) string { function formatDouble (line 996) | func formatDouble(f float64) string { type sortableString (line 1017) | type sortableString method Len (line 1019) | func (ss sortableString) Len() int { method Less (line 1023) | func (ss sortableString) Less(i, j int) bool { method Swap (line 1027) | func (ss sortableString) Swap(i, j int) { function sortStringAlphebeticAscending (line 1031) | func sortStringAlphebeticAscending(s string) string { FILE: x/bsonx/bsoncore/value_test.go function TestValue (line 19) | func TestValue(t *testing.T) { function TestValue_String (line 1295) | func TestValue_String(t *testing.T) { function TestValue_StringN (line 1304) | func TestValue_StringN(t *testing.T) { function TestArray_StringN_Multibyte (line 1323) | func TestArray_StringN_Multibyte(t *testing.T) { FILE: x/mongo/driver/auth/auth.go constant sourceExternal (line 24) | sourceExternal = "$external" type AuthenticatorFactory (line 27) | type AuthenticatorFactory function init (line 31) | func init() { function CreateAuthenticator (line 43) | func CreateAuthenticator(name string, cred *Cred, httpClient *http.Clien... function RegisterAuthenticatorFactory (line 58) | func RegisterAuthenticatorFactory(name string, factory AuthenticatorFact... type HandshakeOptions (line 65) | type HandshakeOptions struct type authHandshaker (line 81) | type authHandshaker struct method GetHandshakeInformation (line 93) | func (ah *authHandshaker) GetHandshakeInformation( method FinishHandshake (line 144) | func (ah *authHandshaker) FinishHandshake(ctx context.Context, conn *m... method authenticate (line 172) | func (ah *authHandshaker) authenticate(ctx context.Context, cfg *drive... function Handshaker (line 189) | func Handshaker(h driver.Handshaker, options *HandshakeOptions) driver.H... type Config (line 197) | type Config struct function newAuthError (line 208) | func newAuthError(msg string, inner error) error { function newError (line 215) | func newError(err error, mech string) error { type Error (line 223) | type Error struct method Error (line 228) | func (e *Error) Error() string { method Inner (line 236) | func (e *Error) Inner() error { method Unwrap (line 241) | func (e *Error) Unwrap() error { method Message (line 246) | func (e *Error) Message() string { FILE: x/mongo/driver/auth/auth_spec_test.go type credential (line 21) | type credential struct type testCase (line 29) | type testCase struct type testContainer (line 36) | type testContainer struct function runTestsInFile (line 43) | func runTestsInFile(t *testing.T, dirname string, filename string) { function runTest (line 64) | func runTest(t *testing.T, test testCase) { function mapInterfaceToString (line 101) | func mapInterfaceToString(m map[string]any) map[string]string { function TestAuthSpec (line 112) | func TestAuthSpec(t *testing.T) { FILE: x/mongo/driver/auth/auth_test.go function TestCreateAuthenticator (line 27) | func TestCreateAuthenticator(t *testing.T) { function compareResponses (line 61) | func compareResponses(t *testing.T, wm []byte, expectedPayload bsoncore.... type testAuthenticator (line 116) | type testAuthenticator struct method Auth (line 118) | func (a *testAuthenticator) Auth(context.Context, *driver.AuthConfig) ... method Reauth (line 122) | func (a *testAuthenticator) Reauth(context.Context, *driver.AuthConfig... function TestPerformAuthentication (line 126) | func TestPerformAuthentication(t *testing.T) { FILE: x/mongo/driver/auth/aws_conv.go type clientState (line 26) | type clientState constant clientStarting (line 29) | clientStarting clientState = iota constant clientFirst (line 30) | clientFirst constant clientFinal (line 31) | clientFinal constant clientDone (line 32) | clientDone type awsConversation (line 35) | type awsConversation struct method Step (line 59) | func (ac *awsConversation) Step(challenge []byte) (response []byte, er... method Done (line 77) | func (ac *awsConversation) Done() bool { method Valid (line 84) | func (ac *awsConversation) Valid() bool { method firstMsg (line 114) | func (ac *awsConversation) firstMsg() []byte { method finalMsg (line 126) | func (ac *awsConversation) finalMsg(s1 []byte) ([]byte, error) { type serverMessage (line 42) | type serverMessage struct constant amzDateFormat (line 48) | amzDateFormat = "20060102T150405Z" constant defaultRegion (line 49) | defaultRegion = "us-east-1" constant maxHostLength (line 50) | maxHostLength = 255 constant responceNonceLength (line 51) | responceNonceLength = 64 function getRegion (line 88) | func getRegion(host string) (string, error) { FILE: x/mongo/driver/auth/conversation.go type SpeculativeConversation (line 24) | type SpeculativeConversation interface type SpeculativeAuthenticator (line 30) | type SpeculativeAuthenticator interface FILE: x/mongo/driver/auth/creds/awscreds.go constant expiryWindow (line 24) | expiryWindow = 5 * time.Minute type AWSCredentialProvider (line 28) | type AWSCredentialProvider struct method GetCredentialsDoc (line 46) | func (p AWSCredentialProvider) GetCredentialsDoc(ctx context.Context) ... function NewAWSCredentialProvider (line 33) | func NewAWSCredentialProvider(httpClient *http.Client, providers ...cred... FILE: x/mongo/driver/auth/creds/azurecreds.go type AzureCredentialProvider (line 20) | type AzureCredentialProvider struct method GetCredentialsDoc (line 32) | func (p AzureCredentialProvider) GetCredentialsDoc(ctx context.Context... function NewAzureCredentialProvider (line 25) | func NewAzureCredentialProvider(httpClient *http.Client) AzureCredential... FILE: x/mongo/driver/auth/creds/credscaching_test.go type pipeTransport (line 25) | type pipeTransport struct method RoundTrip (line 32) | func (t pipeTransport) RoundTrip(req *http.Request) (*http.Response, e... function TestAWSCredentialProviderCaching (line 44) | func TestAWSCredentialProviderCaching(t *testing.T) { FILE: x/mongo/driver/auth/creds/gcpcreds.go type GCPCredentialProvider (line 21) | type GCPCredentialProvider struct method GetCredentialsDoc (line 31) | func (p GCPCredentialProvider) GetCredentialsDoc(ctx context.Context) ... function NewGCPCredentialProvider (line 26) | func NewGCPCredentialProvider(httpClient *http.Client) GCPCredentialProv... FILE: x/mongo/driver/auth/default.go function newDefaultAuthenticator (line 17) | func newDefaultAuthenticator(cred *Cred, httpClient *http.Client) (Authe... type DefaultAuthenticator (line 37) | type DefaultAuthenticator struct method CreateSpeculativeConversation (line 50) | func (a *DefaultAuthenticator) CreateSpeculativeConversation() (Specul... method Auth (line 55) | func (a *DefaultAuthenticator) Auth(ctx context.Context, cfg *driver.A... method Reauth (line 78) | func (a *DefaultAuthenticator) Reauth(_ context.Context, _ *driver.Aut... FILE: x/mongo/driver/auth/gssapi.go constant GSSAPI (line 22) | GSSAPI = "GSSAPI" function newGSSAPIAuthenticator (line 24) | func newGSSAPIAuthenticator(cred *Cred, _ *http.Client) (Authenticator, ... type GSSAPIAuthenticator (line 38) | type GSSAPIAuthenticator struct method Auth (line 46) | func (a *GSSAPIAuthenticator) Auth(ctx context.Context, cfg *driver.Au... method Reauth (line 61) | func (a *GSSAPIAuthenticator) Reauth(_ context.Context, _ *driver.Auth... FILE: x/mongo/driver/auth/gssapi_not_enabled.go constant GSSAPI (line 14) | GSSAPI = "GSSAPI" function newGSSAPIAuthenticator (line 16) | func newGSSAPIAuthenticator(*Cred, *http.Client) (Authenticator, error) { FILE: x/mongo/driver/auth/gssapi_not_supported.go constant GSSAPI (line 18) | GSSAPI = "GSSAPI" function newGSSAPIAuthenticator (line 20) | func newGSSAPIAuthenticator(*Cred, *http.Client) (Authenticator, error) { FILE: x/mongo/driver/auth/gssapi_test.go function TestGSSAPIAuthenticator (line 22) | func TestGSSAPIAuthenticator(t *testing.T) { FILE: x/mongo/driver/auth/internal/gssapi/gss.go function New (line 31) | func New(target, username, password string, passwordSet bool, props map[... type SaslClient (line 59) | type SaslClient struct method Close (line 71) | func (sc *SaslClient) Close() { method Start (line 75) | func (sc *SaslClient) Start() (string, []byte, error) { method Next (line 101) | func (sc *SaslClient) Next(_ context.Context, challenge []byte) ([]byt... method Completed (line 150) | func (sc *SaslClient) Completed() bool { method getError (line 154) | func (sc *SaslClient) getError(prefix string) error { FILE: x/mongo/driver/auth/internal/gssapi/gss_wrapper.c function OM_uint32 (line 14) | OM_uint32 gssapi_canonicalize_name( function gssapi_error_desc (line 41) | int gssapi_error_desc( function gssapi_client_init (line 85) | int gssapi_client_init( function gssapi_client_username (line 127) | int gssapi_client_username( function gssapi_client_negotiate (line 155) | int gssapi_client_negotiate( function gssapi_client_wrap_msg (line 205) | int gssapi_client_wrap_msg( function gssapi_client_destroy (line 236) | int gssapi_client_destroy( FILE: x/mongo/driver/auth/internal/gssapi/gss_wrapper.h type gssapi_client_state (line 25) | typedef struct { FILE: x/mongo/driver/auth/internal/gssapi/sspi.go function New (line 26) | func New(target, username, password string, passwordSet bool, props map[... type SaslClient (line 85) | type SaslClient struct method Close (line 97) | func (sc *SaslClient) Close() { method Start (line 101) | func (sc *SaslClient) Start() (string, []byte, error) { method Next (line 125) | func (sc *SaslClient) Next(_ context.Context, challenge []byte) ([]byt... method Completed (line 176) | func (sc *SaslClient) Completed() bool { method getError (line 180) | func (sc *SaslClient) getError(prefix string) error { function initSSPI (line 189) | func initSSPI() { function getError (line 196) | func getError(prefix string, status C.SECURITY_STATUS) error { FILE: x/mongo/driver/auth/internal/gssapi/sspi_wrapper.c function sspi_init (line 15) | int sspi_init( function sspi_client_init (line 61) | int sspi_client_init( function sspi_client_username (line 99) | int sspi_client_username( function sspi_client_negotiate (line 120) | int sspi_client_negotiate( function sspi_client_wrap_msg (line 184) | int sspi_client_wrap_msg( function sspi_client_destroy (line 238) | int sspi_client_destroy( FILE: x/mongo/driver/auth/internal/gssapi/sspi_wrapper.h type sspi_client_state (line 21) | typedef struct { FILE: x/mongo/driver/auth/mongodbaws.go constant MongoDBAWS (line 21) | MongoDBAWS = "MONGODB-AWS" function newMongoDBAWSAuthenticator (line 23) | func newMongoDBAWSAuthenticator(cred *Cred, httpClient *http.Client) (Au... type MongoDBAWSAuthenticator (line 43) | type MongoDBAWSAuthenticator struct method Auth (line 49) | func (a *MongoDBAWSAuthenticator) Auth(ctx context.Context, cfg *drive... method Reauth (line 64) | func (a *MongoDBAWSAuthenticator) Reauth(_ context.Context, _ *driver.... type awsSaslAdapter (line 68) | type awsSaslAdapter struct method Start (line 74) | func (a *awsSaslAdapter) Start() (string, []byte, error) { method Next (line 82) | func (a *awsSaslAdapter) Next(_ context.Context, challenge []byte) ([]... method Completed (line 90) | func (a *awsSaslAdapter) Completed() bool { FILE: x/mongo/driver/auth/mongodbaws_test.go function TestGetRegion (line 16) | func TestGetRegion(t *testing.T) { FILE: x/mongo/driver/auth/oidc.go constant MongoDBOIDC (line 29) | MongoDBOIDC = "MONGODB-OIDC" constant EnvironmentProp (line 34) | EnvironmentProp = "ENVIRONMENT" constant ResourceProp (line 37) | ResourceProp = "TOKEN_RESOURCE" constant AllowedHostsProp (line 40) | AllowedHostsProp = "ALLOWED_HOSTS" constant AzureEnvironmentValue (line 46) | AzureEnvironmentValue = "azure" constant GCPEnvironmentValue (line 49) | GCPEnvironmentValue = "gcp" constant K8SEnvironmentValue (line 52) | K8SEnvironmentValue = "k8s" constant TestEnvironmentValue (line 55) | TestEnvironmentValue = "test" constant apiVersion (line 59) | apiVersion = 1 constant invalidateSleepTimeout (line 60) | invalidateSleepTimeout = 100 * time.Millisecond constant machineCallbackTimeout (line 66) | machineCallbackTimeout = time.Minute constant humanCallbackTimeout (line 67) | humanCallbackTimeout = 5 * time.Minute type OIDCAuthenticator (line 103) | type OIDCAuthenticator struct method SetAccessToken (line 121) | func (oa *OIDCAuthenticator) SetAccessToken(accessToken string) { method setAllowedHosts (line 175) | func (oa *OIDCAuthenticator) setAllowedHosts() error { method validateConnectionAddressWithAllowedHosts (line 195) | func (oa *OIDCAuthenticator) validateConnectionAddressWithAllowedHosts... method providerCallback (line 278) | func (oa *OIDCAuthenticator) providerCallback() (OIDCCallback, error) { method getAccessToken (line 401) | func (oa *OIDCAuthenticator) getAccessToken( method invalidateAccessToken (line 454) | func (oa *OIDCAuthenticator) invalidateAccessToken(conn *mnet.Connecti... method Reauth (line 469) | func (oa *OIDCAuthenticator) Reauth(ctx context.Context, cfg *driver.A... method Auth (line 475) | func (oa *OIDCAuthenticator) Auth(ctx context.Context, cfg *driver.Aut... method doAuthHuman (line 525) | func (oa *OIDCAuthenticator) doAuthHuman(ctx context.Context, cfg *dri... method doAuthMachine (line 562) | func (oa *OIDCAuthenticator) doAuthMachine(ctx context.Context, cfg *d... method CreateSpeculativeConversation (line 586) | func (oa *OIDCAuthenticator) CreateSpeculativeConversation() (Speculat... function newOIDCAuthenticator (line 127) | func newOIDCAuthenticator(cred *Cred, httpClient *http.Client) (Authenti... function createPatternsForGlobs (line 160) | func createPatternsForGlobs(hosts []string) ([]*regexp.Regexp, error) { type oidcOneStep (line 212) | type oidcOneStep struct method Start (line 236) | func (oos *oidcOneStep) Start() (string, []byte, error) { method Next (line 240) | func (oos *oidcOneStep) Next(context.Context, []byte) ([]byte, error) { method Completed (line 244) | func (*oidcOneStep) Completed() bool { type oidcTwoStep (line 217) | type oidcTwoStep struct method Start (line 248) | func (ots *oidcTwoStep) Start() (string, []byte, error) { method Next (line 252) | func (ots *oidcTwoStep) Next(ctx context.Context, msg []byte) ([]byte,... method Completed (line 274) | func (*oidcTwoStep) Completed() bool { function jwtStepRequest (line 222) | func jwtStepRequest(accessToken string) []byte { function principalStepRequest (line 228) | func principalStepRequest(principal string) []byte { function getAzureOIDCCallback (line 305) | func getAzureOIDCCallback(clientID string, resource string, httpClient *... function getGCPOIDCCallback (line 348) | func getGCPOIDCCallback(resource string, httpClient *http.Client) OIDCCa... function k8sOIDCCallback (line 379) | func k8sOIDCCallback(context.Context, *OIDCArgs) (*OIDCCredential, error) { FILE: x/mongo/driver/auth/oidc_test.go function TestCreatePatternsForGlobs (line 16) | func TestCreatePatternsForGlobs(t *testing.T) { FILE: x/mongo/driver/auth/plain.go constant PLAIN (line 17) | PLAIN = "PLAIN" function newPlainAuthenticator (line 19) | func newPlainAuthenticator(cred *Cred, _ *http.Client) (Authenticator, e... type PlainAuthenticator (line 42) | type PlainAuthenticator struct method Auth (line 48) | func (a *PlainAuthenticator) Auth(ctx context.Context, cfg *driver.Aut... method Reauth (line 56) | func (a *PlainAuthenticator) Reauth(_ context.Context, _ *driver.AuthC... type plainSaslClient (line 60) | type plainSaslClient struct method Start (line 67) | func (c *plainSaslClient) Start() (string, []byte, error) { method Next (line 72) | func (c *plainSaslClient) Next(context.Context, []byte) ([]byte, error) { method Completed (line 76) | func (c *plainSaslClient) Completed() bool { FILE: x/mongo/driver/auth/plain_test.go function TestPlainAuthenticator_Fails (line 24) | func TestPlainAuthenticator_Fails(t *testing.T) { function TestPlainAuthenticator_Extra_server_message (line 65) | func TestPlainAuthenticator_Extra_server_message(t *testing.T) { function TestPlainAuthenticator_Succeeds (line 110) | func TestPlainAuthenticator_Succeeds(t *testing.T) { function TestPlainAuthenticator_SucceedsBoolean (line 157) | func TestPlainAuthenticator_SucceedsBoolean(t *testing.T) { function writeReplies (line 201) | func writeReplies(c chan []byte, docs ...bsoncore.Document) { FILE: x/mongo/driver/auth/sasl.go type SaslClient (line 20) | type SaslClient interface type SaslClientCloser (line 27) | type SaslClientCloser interface type ExtraOptionsSaslClient (line 33) | type ExtraOptionsSaslClient interface type saslConversation (line 39) | type saslConversation struct method FirstMessage (line 62) | func (sc *saslConversation) FirstMessage() (bsoncore.Document, error) { method Finish (line 97) | func (sc *saslConversation) Finish(ctx context.Context, cfg *driver.Au... function newSaslConversation (line 48) | func newSaslConversation(client SaslClient, source string, speculative b... type saslResponse (line 89) | type saslResponse struct function ConductSaslConversation (line 156) | func ConductSaslConversation(ctx context.Context, cfg *driver.AuthConfig... FILE: x/mongo/driver/auth/scram.go constant SCRAMSHA1 (line 27) | SCRAMSHA1 = "SCRAM-SHA-1" constant SCRAMSHA256 (line 30) | SCRAMSHA256 = "SCRAM-SHA-256" function newScramSHA1Authenticator (line 38) | func newScramSHA1Authenticator(cred *Cred, _ *http.Client) (Authenticato... function newScramSHA256Authenticator (line 56) | func newScramSHA256Authenticator(cred *Cred, _ *http.Client) (Authentica... type ScramAuthenticator (line 78) | type ScramAuthenticator struct method Auth (line 87) | func (a *ScramAuthenticator) Auth(ctx context.Context, cfg *driver.Aut... method Reauth (line 96) | func (a *ScramAuthenticator) Reauth(_ context.Context, _ *driver.AuthC... method CreateSpeculativeConversation (line 101) | func (a *ScramAuthenticator) CreateSpeculativeConversation() (Speculat... method createSaslClient (line 105) | func (a *ScramAuthenticator) createSaslClient() SaslClient { type scramSaslAdapter (line 112) | type scramSaslAdapter struct method Start (line 122) | func (a *scramSaslAdapter) Start() (string, []byte, error) { method Next (line 130) | func (a *scramSaslAdapter) Next(_ context.Context, challenge []byte) (... method Completed (line 138) | func (a *scramSaslAdapter) Completed() bool { method StartCommandOptions (line 142) | func (*scramSaslAdapter) StartCommandOptions() bsoncore.Document { FILE: x/mongo/driver/auth/scram_test.go constant scramSha1Nonce (line 23) | scramSha1Nonce = "fyko+d2lbbFgONRv9qkxdawL" constant scramSha256Nonce (line 24) | scramSha256Nonce = "rOprNGfwEbeRWgbNEkqO" function TestSCRAM (line 40) | func TestSCRAM(t *testing.T) { function createSCRAMConversation (line 104) | func createSCRAMConversation(payloads [][]byte) []bsoncore.Document { function createSCRAMServerResponse (line 113) | func createSCRAMServerResponse(payload []byte, done bool) bsoncore.Docum... function writeReplies (line 122) | func writeReplies(c chan []byte, docs ...bsoncore.Document) { FILE: x/mongo/driver/auth/speculative_scram_test.go function TestSpeculativeSCRAM (line 39) | func TestSpeculativeSCRAM(t *testing.T) { function setNonce (line 204) | func setNonce(t *testing.T, authenticator Authenticator, nonce string) { function createSpeculativeSCRAMHandshake (line 226) | func createSpeculativeSCRAMHandshake(payloads [][]byte) []bsoncore.Docum... function createRegularSCRAMHandshake (line 244) | func createRegularSCRAMHandshake(payloads [][]byte) []bsoncore.Document { function assertCommandName (line 254) | func assertCommandName(t *testing.T, cmd bsoncore.Document, expectedName... FILE: x/mongo/driver/auth/speculative_x509_test.go function TestSpeculativeX509 (line 30) | func TestSpeculativeX509(t *testing.T) { function createSpeculativeX509Handshake (line 126) | func createSpeculativeX509Handshake() []bsoncore.Document { function createRegularX509Handshake (line 137) | func createRegularX509Handshake() []bsoncore.Document { FILE: x/mongo/driver/auth/util.go constant defaultAuthDB (line 19) | defaultAuthDB = "admin" function mongoPasswordDigest (line 21) | func mongoPasswordDigest(username, password string) string { FILE: x/mongo/driver/auth/x509.go constant MongoDBX509 (line 19) | MongoDBX509 = "MONGODB-X509" function newMongoDBX509Authenticator (line 21) | func newMongoDBX509Authenticator(cred *Cred, _ *http.Client) (Authentica... type MongoDBX509Authenticator (line 29) | type MongoDBX509Authenticator struct method CreateSpeculativeConversation (line 63) | func (a *MongoDBX509Authenticator) CreateSpeculativeConversation() (Sp... method Auth (line 68) | func (a *MongoDBX509Authenticator) Auth(ctx context.Context, cfg *driv... method Reauth (line 85) | func (a *MongoDBX509Authenticator) Reauth(_ context.Context, _ *driver... type x509Conversation (line 37) | type x509Conversation struct method FirstMessage (line 42) | func (c *x509Conversation) FirstMessage() (bsoncore.Document, error) { method Finish (line 58) | func (c *x509Conversation) Finish(context.Context, *driver.AuthConfig,... function createFirstX509Message (line 47) | func createFirstX509Message() bsoncore.Document { FILE: x/mongo/driver/batch_cursor.go type BatchCursor (line 34) | type BatchCursor struct method ID (line 240) | func (bc *BatchCursor) ID() int64 { method Next (line 249) | func (bc *BatchCursor) Next(ctx context.Context) bool { method Batch (line 270) | func (bc *BatchCursor) Batch() *bsoncore.Iterator { method Err (line 275) | func (bc *BatchCursor) Err() error { method Close (line 280) | func (bc *BatchCursor) Close(ctx context.Context) error { method unpinConnection (line 298) | func (bc *BatchCursor) unpinConnection() error { method Server (line 313) | func (bc *BatchCursor) Server() Server { method clearBatch (line 317) | func (bc *BatchCursor) clearBatch() { method KillCursor (line 322) | func (bc *BatchCursor) KillCursor(ctx context.Context) error { method getMore (line 367) | func (bc *BatchCursor) getMore(ctx context.Context) { method PostBatchResumeToken (line 514) | func (bc *BatchCursor) PostBatchResumeToken() bsoncore.Document { method SetBatchSize (line 519) | func (bc *BatchCursor) SetBatchSize(size int32) { method SetMaxAwaitTime (line 529) | func (bc *BatchCursor) SetMaxAwaitTime(dur time.Duration) { method SetComment (line 534) | func (bc *BatchCursor) SetComment(comment any) { method getOperationDeployment (line 538) | func (bc *BatchCursor) getOperationDeployment() Deployment { method MaxAwaitTime (line 550) | func (bc *BatchCursor) MaxAwaitTime() *time.Duration { type CursorResponse (line 66) | type CursorResponse struct function ExtractCursorDocument (line 80) | func ExtractCursorDocument(response bsoncore.Document) (bsoncore.Documen... function NewCursorResponse (line 99) | func NewCursorResponse(response bsoncore.Document, info ResponseInfo) (C... type CursorOptions (line 165) | type CursorOptions struct method SetMaxAwaitTime (line 181) | func (cursorOptions *CursorOptions) SetMaxAwaitTime(dur time.Duration) { function NewBatchCursor (line 186) | func NewBatchCursor( function NewEmptyBatchCursor (line 225) | func NewEmptyBatchCursor() *BatchCursor { function NewBatchCursorFromList (line 231) | func NewBatchCursorFromList(array []byte) *BatchCursor { function calcGetMoreBatchSize (line 353) | func calcGetMoreBatchSize(bc BatchCursor) (int32, bool) { type loadBalancedCursorDeployment (line 557) | type loadBalancedCursorDeployment struct method SelectServer (line 568) | func (lbcd *loadBalancedCursorDeployment) SelectServer(context.Context... method Kind (line 572) | func (lbcd *loadBalancedCursorDeployment) Kind() description.TopologyK... method Connection (line 576) | func (lbcd *loadBalancedCursorDeployment) Connection(context.Context) ... method RTTMonitor (line 581) | func (lbcd *loadBalancedCursorDeployment) RTTMonitor() RTTMonitor { method ProcessError (line 585) | func (lbcd *loadBalancedCursorDeployment) ProcessError(err error, desc... method GetServerSelectionTimeout (line 591) | func (*loadBalancedCursorDeployment) GetServerSelectionTimeout() time.... FILE: x/mongo/driver/batch_cursor_test.go function TestBatchCursor (line 15) | func TestBatchCursor(t *testing.T) { FILE: x/mongo/driver/batches.go type Batches (line 19) | type Batches struct method AppendBatchSequence (line 32) | func (b *Batches) AppendBatchSequence(dst []byte, maxCount, totalSize ... method AppendBatchArray (line 66) | func (b *Batches) AppendBatchArray(dst []byte, maxCount, totalSize int... method IsOrdered (line 98) | func (b *Batches) IsOrdered() *bool { method AdvanceBatches (line 103) | func (b *Batches) AdvanceBatches(n int) { method Size (line 111) | func (b *Batches) Size() int { FILE: x/mongo/driver/batches_test.go function newTestBatches (line 17) | func newTestBatches(t *testing.T) *Batches { function TestAdvancing (line 28) | func TestAdvancing(t *testing.T) { function TestAppendBatchSequence (line 35) | func TestAppendBatchSequence(t *testing.T) { function TestAppendBatchArray (line 56) | func TestAppendBatchArray(t *testing.T) { FILE: x/mongo/driver/command_monitoring_test.go function TestCommandMonitoring (line 17) | func TestCommandMonitoring(t *testing.T) { FILE: x/mongo/driver/compression.go type CompressionOpts (line 22) | type CompressionOpts struct function mustZstdNewWriter (line 32) | func mustZstdNewWriter(lvl zstd.EncoderLevel) *zstd.Encoder { function getZstdEncoder (line 52) | func getZstdEncoder(level zstd.EncoderLevel) (*zstd.Encoder, error) { constant zlibEncodersOffset (line 62) | zlibEncodersOffset = -zlib.HuffmanOnly function getZlibEncoder (line 66) | func getZlibEncoder(level int) (*zlibEncoder, error) { function putZlibEncoder (line 82) | func putZlibEncoder(enc *zlibEncoder) { type zlibEncoder (line 88) | type zlibEncoder struct method Encode (line 94) | func (e *zlibEncoder) Encode(dst, src []byte) ([]byte, error) { function CompressPayload (line 120) | func CompressPayload(in []byte, opts CompressionOpts) ([]byte, error) { function DecompressPayload (line 157) | func DecompressPayload(in []byte, opts CompressionOpts) ([]byte, error) { FILE: x/mongo/driver/compression_test.go function TestCompression (line 22) | func TestCompression(t *testing.T) { function TestCompressionLevels (line 49) | func TestCompressionLevels(t *testing.T) { function TestDecompressFailures (line 86) | func TestDecompressFailures(t *testing.T) { function initCompressionPayload (line 114) | func initCompressionPayload(b *testing.B) { function BenchmarkCompressPayload (line 156) | func BenchmarkCompressPayload(b *testing.B) { function BenchmarkDecompressPayload (line 187) | func BenchmarkDecompressPayload(b *testing.B) { FILE: x/mongo/driver/connstring/connstring.go constant ServerMonitoringModeAuto (line 38) | ServerMonitoringModeAuto = "auto" constant ServerMonitoringModePoll (line 43) | ServerMonitoringModePoll = "poll" constant ServerMonitoringModeStream (line 48) | ServerMonitoringModeStream = "stream" function ParseAndValidate (line 83) | func ParseAndValidate(s string) (*ConnString, error) { function Parse (line 98) | func Parse(s string) (*ConnString, error) { type ConnString (line 108) | type ConnString struct method String (line 194) | func (u *ConnString) String() string { method HasAuthParameters (line 200) | func (u *ConnString) HasAuthParameters() bool { method Validate (line 207) | func (u *ConnString) Validate() error { method setDefaultAuthParams (line 270) | func (u *ConnString) setDefaultAuthParams(dbName string) error { method addOptions (line 323) | func (u *ConnString) addOptions(connectionArgPairs []string) error { method validateAuth (line 695) | func (u *ConnString) validateAuth() error { method validateSSL (line 774) | func (u *ConnString) validateSSL() error { function sanitizeHost (line 800) | func sanitizeHost(host string) (string, error) { type ConnectMode (line 832) | type ConnectMode method String (line 843) | func (c ConnectMode) String() string { constant AutoConnect (line 838) | AutoConnect ConnectMode = iota constant SingleConnect (line 839) | SingleConnect constant SchemeMongoDB (line 856) | SchemeMongoDB = "mongodb" constant SchemeMongoDBSRV (line 857) | SchemeMongoDBSRV = "mongodb+srv" type parser (line 860) | type parser struct method parse (line 864) | func (p *parser) parse(original string) (*ConnString, error) { function IsValidServerMonitoringMode (line 1021) | func IsValidServerMonitoringMode(mode string) bool { function extractQueryArgsFromURI (line 1027) | func extractQueryArgsFromURI(uri string) ([]string, error) { type extractedDatabase (line 1043) | type extractedDatabase struct function extractDatabaseFromURI (line 1052) | func extractDatabaseFromURI(uri string) (extractedDatabase, error) { FILE: x/mongo/driver/connstring/connstring_spec_test.go type host (line 24) | type host struct method toString (line 55) | func (h *host) toString() string { type auth (line 30) | type auth struct type testCase (line 36) | type testCase struct type testContainer (line 46) | type testContainer struct function hostsToStrings (line 76) | func hostsToStrings(hosts []host) []string { function runTestsInFile (line 86) | func runTestsInFile(t *testing.T, dirname string, filename string, warni... function runTest (line 107) | func runTest(t *testing.T, test testCase, warningsError bool) { function TestConnStringSpec (line 159) | func TestConnStringSpec(t *testing.T) { function TestURIOptionsSpec (line 165) | func TestURIOptionsSpec(t *testing.T) { function verifyConnStringOptions (line 172) | func verifyConnStringOptions(t *testing.T, cs *connstring.ConnString, op... function mapInterfaceToString (line 289) | func mapInterfaceToString(m map[string]any) map[string]string { function getIntFromInterface (line 302) | func getIntFromInterface(i any) *int64 { function convertToStringSlice (line 333) | func convertToStringSlice(i any) []string { FILE: x/mongo/driver/connstring/connstring_test.go function TestAppName (line 19) | func TestAppName(t *testing.T) { function TestAuthMechanism (line 44) | func TestAuthMechanism(t *testing.T) { function TestAuthSource (line 69) | func TestAuthSource(t *testing.T) { function TestConnect (line 115) | func TestConnect(t *testing.T) { function TestDirectConnection (line 152) | func TestDirectConnection(t *testing.T) { function TestConnectTimeout (line 182) | func TestConnectTimeout(t *testing.T) { function TestHeartbeatInterval (line 209) | func TestHeartbeatInterval(t *testing.T) { function TestLocalThreshold (line 235) | func TestLocalThreshold(t *testing.T) { function TestMaxConnIdleTime (line 262) | func TestMaxConnIdleTime(t *testing.T) { function TestMaxPoolSize (line 288) | func TestMaxPoolSize(t *testing.T) { function TestMinPoolSize (line 315) | func TestMinPoolSize(t *testing.T) { function TestMaxConnecting (line 342) | func TestMaxConnecting(t *testing.T) { function TestReadPreference (line 369) | func TestReadPreference(t *testing.T) { function TestReadPreferenceTags (line 394) | func TestReadPreferenceTags(t *testing.T) { function TestMaxStaleness (line 423) | func TestMaxStaleness(t *testing.T) { function TestReplicaSet (line 448) | func TestReplicaSet(t *testing.T) { function TestRetryWrites (line 472) | func TestRetryWrites(t *testing.T) { function TestRetryReads (line 498) | func TestRetryReads(t *testing.T) { function TestScheme (line 524) | func TestScheme(t *testing.T) { function TestServerSelectionTimeout (line 533) | func TestServerSelectionTimeout(t *testing.T) { function TestSocketTimeout (line 560) | func TestSocketTimeout(t *testing.T) { function TestCompressionOptions (line 587) | func TestCompressionOptions(t *testing.T) { FILE: x/mongo/driver/connstring/initial_dns_seedlist_discovery_prose_test.go function TestInitialDNSSeedlistDiscoveryProse (line 18) | func TestInitialDNSSeedlistDiscoveryProse(t *testing.T) { FILE: x/mongo/driver/crypt.go constant defaultKmsPort (line 22) | defaultKmsPort = 443 constant defaultKmsTimeout (line 23) | defaultKmsTimeout = 10 * time.Second type CollectionInfoFn (line 27) | type CollectionInfoFn type KeyRetrieverFn (line 30) | type KeyRetrieverFn type MarkCommandFn (line 33) | type MarkCommandFn type CryptOptions (line 36) | type CryptOptions struct type Crypt (line 51) | type Crypt interface type crypt (line 75) | type crypt struct method Encrypt (line 99) | func (c *crypt) Encrypt(ctx context.Context, db string, cmd bsoncore.D... method Decrypt (line 114) | func (c *crypt) Decrypt(ctx context.Context, cmdResponse bsoncore.Docu... method CreateDataKey (line 125) | func (c *crypt) CreateDataKey(ctx context.Context, kmsProvider string,... method RewrapDataKey (line 137) | func (c *crypt) RewrapDataKey(ctx context.Context, filter []byte, method EncryptExplicit (line 187) | func (c *crypt) EncryptExplicit(ctx context.Context, val bsoncore.Valu... method EncryptExplicitExpression (line 208) | func (c *crypt) EncryptExplicitExpression(ctx context.Context, expr bs... method DecryptExplicit (line 229) | func (c *crypt) DecryptExplicit(ctx context.Context, subtype byte, dat... method Close (line 249) | func (c *crypt) Close() { method BypassAutoEncryption (line 253) | func (c *crypt) BypassAutoEncryption() bool { method executeStateMachine (line 257) | func (c *crypt) executeStateMachine(ctx context.Context, cryptCtx *mon... method collectionInfo (line 285) | func (c *crypt) collectionInfo(ctx context.Context, cryptCtx *mongocry... method markCommand (line 304) | func (c *crypt) markCommand(ctx context.Context, cryptCtx *mongocrypt.... method retrieveKeys (line 321) | func (c *crypt) retrieveKeys(ctx context.Context, cryptCtx *mongocrypt... method decryptKeys (line 341) | func (c *crypt) decryptKeys(cryptCtx *mongocrypt.Context) error { method decryptKey (line 356) | func (c *crypt) decryptKey(kmsCtx *mongocrypt.KmsContext) error { method provideKmsProviders (line 410) | func (c *crypt) provideKmsProviders(ctx context.Context, cryptCtx *mon... function NewCrypt (line 86) | func NewCrypt(opts *CryptOptions) Crypt { FILE: x/mongo/driver/description/server.go type ServerKind (line 19) | type ServerKind method String (line 38) | func (kind ServerKind) String() string { constant ServerKindStandalone (line 23) | ServerKindStandalone ServerKind = 1 constant ServerKindRSMember (line 24) | ServerKindRSMember ServerKind = 2 constant ServerKindRSPrimary (line 25) | ServerKindRSPrimary ServerKind = 4 + ServerKindRSMember constant ServerKindRSSecondary (line 26) | ServerKindRSSecondary ServerKind = 8 + ServerKindRSMember constant ServerKindRSArbiter (line 27) | ServerKindRSArbiter ServerKind = 16 + ServerKindRSMember constant ServerKindRSGhost (line 28) | ServerKindRSGhost ServerKind = 32 + ServerKindRSMember constant ServerKindMongos (line 29) | ServerKindMongos ServerKind = 256 constant ServerKindLoadBalancer (line 30) | ServerKindLoadBalancer ServerKind = 512 constant UnknownStr (line 34) | UnknownStr = "Unknown" constant Unknown (line 62) | Unknown = 0 type TopologyVersion (line 65) | type TopologyVersion struct type VersionRange (line 71) | type VersionRange struct type Server (line 80) | type Server struct method String (line 114) | func (s Server) String() string { type SelectedServer (line 133) | type SelectedServer struct type ServerSelector (line 142) | type ServerSelector interface FILE: x/mongo/driver/description/topology.go type TopologyKind (line 12) | type TopologyKind method String (line 43) | func (kind TopologyKind) String() string { constant TopologyKindSingle (line 16) | TopologyKindSingle TopologyKind = 1 constant TopologyKindReplicaSet (line 17) | TopologyKindReplicaSet TopologyKind = 2 constant TopologyKindReplicaSetNoPrimary (line 18) | TopologyKindReplicaSetNoPrimary TopologyKind = 4 + TopologyKindReplicaSet constant TopologyKindReplicaSetWithPrimary (line 19) | TopologyKindReplicaSetWithPrimary TopologyKind = 8 + TopologyKindReplicaSet constant TopologyKindSharded (line 20) | TopologyKindSharded TopologyKind = 256 constant TopologyKindLoadBalanced (line 21) | TopologyKindLoadBalanced TopologyKind = 512 type Topology (line 25) | type Topology struct method String (line 34) | func (t Topology) String() string { FILE: x/mongo/driver/dns/dns.go type Resolver (line 25) | type Resolver struct method ParseHosts (line 35) | func (r *Resolver) ParseHosts(host string, srvName string, stopOnErr b... method GetConnectionArgsFromTXT (line 45) | func (r *Resolver) GetConnectionArgsFromTXT(host string) ([]string, er... method fetchSeedlistFromSRV (line 74) | func (r *Resolver) fetchSeedlistFromSRV(host string, srvName string, s... function validateSRVResult (line 113) | func validateSRVResult(recordFromSRV, inputHostName string) error { function validateTXTResult (line 144) | func validateTXTResult(paramsFromTXT []string) error { FILE: x/mongo/driver/driver.go type AuthConfig (line 31) | type AuthConfig struct type OIDCCallback (line 41) | type OIDCCallback type OIDCArgs (line 44) | type OIDCArgs struct type OIDCCredential (line 51) | type OIDCCredential struct type IDPInfo (line 58) | type IDPInfo struct type Authenticator (line 68) | type Authenticator interface type Cred (line 75) | type Cred struct type Deployment (line 86) | type Deployment interface type Connector (line 98) | type Connector interface type Disconnector (line 103) | type Disconnector interface type Subscription (line 109) | type Subscription struct type Subscriber (line 116) | type Subscriber interface type Server (line 123) | type Server interface type RTTMonitor (line 131) | type RTTMonitor interface type LocalAddresser (line 145) | type LocalAddresser interface type Expirable (line 150) | type Expirable interface type ProcessErrorResult (line 158) | type ProcessErrorResult constant NoChange (line 162) | NoChange ProcessErrorResult = iota constant ServerMarkedUnknown (line 164) | ServerMarkedUnknown constant ConnectionPoolCleared (line 167) | ConnectionPoolCleared type ErrorProcessor (line 173) | type ErrorProcessor interface type HandshakeInformation (line 182) | type HandshakeInformation struct type Handshaker (line 192) | type Handshaker interface type SingleServerDeployment (line 198) | type SingleServerDeployment struct method SelectServer (line 204) | func (ssd SingleServerDeployment) SelectServer(context.Context, descri... method Kind (line 209) | func (SingleServerDeployment) Kind() description.TopologyKind { return... method GetServerSelectionTimeout (line 213) | func (SingleServerDeployment) GetServerSelectionTimeout() time.Duration { type SingleConnectionDeployment (line 220) | type SingleConnectionDeployment struct method SelectServer (line 230) | func (scd SingleConnectionDeployment) SelectServer(context.Context, de... method GetServerSelectionTimeout (line 236) | func (SingleConnectionDeployment) GetServerSelectionTimeout() time.Dur... method Kind (line 241) | func (SingleConnectionDeployment) Kind() description.TopologyKind { method Connection (line 246) | func (scd SingleConnectionDeployment) Connection(context.Context) (*mn... method RTTMonitor (line 251) | func (scd SingleConnectionDeployment) RTTMonitor() RTTMonitor { type Type (line 262) | type Type constant _ (line 266) | _ Type = iota constant Write (line 267) | Write constant Read (line 268) | Read type RetryMode (line 272) | type RetryMode method Enabled (line 292) | func (rm RetryMode) Enabled() bool { constant RetryNone (line 279) | RetryNone RetryMode = iota constant RetryOnce (line 281) | RetryOnce constant RetryOncePerCommand (line 285) | RetryOncePerCommand constant RetryContext (line 288) | RetryContext FILE: x/mongo/driver/drivertest/channel_conn.go type ChannelConn (line 21) | type ChannelConn struct method OIDCTokenGenID (line 31) | func (c *ChannelConn) OIDCTokenGenID() uint64 { method SetOIDCTokenGenID (line 37) | func (c *ChannelConn) SetOIDCTokenGenID(uint64) {} method Write (line 40) | func (c *ChannelConn) Write(ctx context.Context, wm []byte) error { method Read (line 55) | func (c *ChannelConn) Read(ctx context.Context) ([]byte, error) { method Description (line 68) | func (c *ChannelConn) Description() description.Server { return c.Desc } method Close (line 71) | func (c *ChannelConn) Close() error { method ID (line 76) | func (c *ChannelConn) ID() string { method DriverConnectionID (line 81) | func (c *ChannelConn) DriverConnectionID() int64 { method ServerConnectionID (line 86) | func (c *ChannelConn) ServerConnectionID() *int64 { method Address (line 92) | func (c *ChannelConn) Address() address.Address { return address.Addre... method Stale (line 95) | func (c *ChannelConn) Stale() bool { function MakeReply (line 100) | func MakeReply(doc bsoncore.Document) []byte { function GetCommandFromQueryWireMessage (line 112) | func GetCommandFromQueryWireMessage(wm []byte) (bsoncore.Document, error) { function GetCommandFromMsgWireMessage (line 144) | func GetCommandFromMsgWireMessage(wm []byte) (bsoncore.Document, error) { FILE: x/mongo/driver/drivertest/channel_netconn.go type ChannelNetConn (line 16) | type ChannelNetConn struct method Read (line 24) | func (c *ChannelNetConn) Read(b []byte) (int, error) { method Write (line 35) | func (c *ChannelNetConn) Write(b []byte) (int, error) { method Close (line 48) | func (c *ChannelNetConn) Close() error { method LocalAddr (line 53) | func (c *ChannelNetConn) LocalAddr() net.Addr { method RemoteAddr (line 58) | func (c *ChannelNetConn) RemoteAddr() net.Addr { method SetDeadline (line 63) | func (c *ChannelNetConn) SetDeadline(_ time.Time) error { method SetReadDeadline (line 68) | func (c *ChannelNetConn) SetReadDeadline(_ time.Time) error { method SetWriteDeadline (line 73) | func (c *ChannelNetConn) SetWriteDeadline(_ time.Time) error { method GetWrittenMessage (line 78) | func (c *ChannelNetConn) GetWrittenMessage() []byte { method AddResponse (line 88) | func (c *ChannelNetConn) AddResponse(resp []byte) error { FILE: x/mongo/driver/drivertest/opmsg_deployment.go constant serverAddress (line 26) | serverAddress = address.Address("127.0.0.1:27017") constant maxDocumentSize (line 27) | maxDocumentSize uint32 = 16777216 constant maxMessageSize (line 28) | maxMessageSize uint32 = 48000000 constant maxBatchCount (line 29) | maxBatchCount uint32 = 100000 type connection (line 55) | type connection struct method Write (line 65) | func (c *connection) Write(context.Context, []byte) error { method OIDCTokenGenID (line 69) | func (c *connection) OIDCTokenGenID() uint64 { method SetOIDCTokenGenID (line 73) | func (c *connection) SetOIDCTokenGenID(uint64) { method Read (line 77) | func (c *connection) Read(_ context.Context) ([]byte, error) { method Description (line 96) | func (c *connection) Description() description.Server { method Close (line 101) | func (*connection) Close() error { method ID (line 106) | func (*connection) ID() string { method DriverConnectionID (line 111) | func (*connection) DriverConnectionID() int64 { method ServerConnectionID (line 116) | func (*connection) ServerConnectionID() *int64 { method Address (line 122) | func (*connection) Address() address.Address { method Stale (line 127) | func (*connection) Stale() bool { type MockDeployment (line 132) | type MockDeployment struct method SelectServer (line 148) | func (md *MockDeployment) SelectServer(context.Context, description.Se... method GetServerSelectionTimeout (line 154) | func (*MockDeployment) GetServerSelectionTimeout() time.Duration { method Kind (line 159) | func (md *MockDeployment) Kind() description.TopologyKind { method Connection (line 164) | func (md *MockDeployment) Connection(context.Context) (*mnet.Connectio... method RTTMonitor (line 169) | func (md *MockDeployment) RTTMonitor() driver.RTTMonitor { method Connect (line 174) | func (md *MockDeployment) Connect() error { method Disconnect (line 179) | func (md *MockDeployment) Disconnect(context.Context) error { method Subscribe (line 186) | func (md *MockDeployment) Subscribe() (*driver.Subscription, error) { method Unsubscribe (line 201) | func (md *MockDeployment) Unsubscribe(*driver.Subscription) error { method AddResponses (line 206) | func (md *MockDeployment) AddResponses(responses ...bson.D) { method ClearResponses (line 211) | func (md *MockDeployment) ClearResponses() { function NewMockDeployment (line 217) | func NewMockDeployment(responses ...bson.D) *MockDeployment { FILE: x/mongo/driver/drivertest/opmsg_deployment_test.go function TestOPMSGMockDeployment (line 20) | func TestOPMSGMockDeployment(t *testing.T) { FILE: x/mongo/driver/errors.go constant LegacyNotPrimaryErrMsg (line 25) | LegacyNotPrimaryErrMsg = "not master" type QueryFailureError (line 84) | type QueryFailureError struct method Error (line 91) | func (e QueryFailureError) Error() string { method Unwrap (line 96) | func (e QueryFailureError) Unwrap() error { type ResponseError (line 101) | type ResponseError struct method Error (line 112) | func (e ResponseError) Error() string { function NewCommandResponseError (line 107) | func NewCommandResponseError(msg string, err error) ResponseError { type WriteCommandError (line 120) | type WriteCommandError struct method UnsupportedStorageEngine (line 129) | func (wce WriteCommandError) UnsupportedStorageEngine() bool { method Error (line 138) | func (wce WriteCommandError) Error() string { method Retryable (line 147) | func (wce WriteCommandError) Retryable(serverKind description.ServerKi... method HasErrorLabel (line 164) | func (wce WriteCommandError) HasErrorLabel(label string) bool { type WriteConcernError (line 175) | type WriteConcernError struct method Error (line 185) | func (wce WriteConcernError) Error() string { method Retryable (line 193) | func (wce WriteConcernError) Retryable(serverKind description.ServerKi... method NodeIsRecovering (line 211) | func (wce WriteConcernError) NodeIsRecovering() bool { method NodeIsShuttingDown (line 222) | func (wce WriteConcernError) NodeIsShuttingDown() bool { method NotPrimary (line 233) | func (wce WriteConcernError) NotPrimary() bool { type WriteError (line 245) | type WriteError struct method Error (line 253) | func (we WriteError) Error() string { return we.Message } type WriteErrors (line 257) | type WriteErrors method Error (line 259) | func (we WriteErrors) Error() string { type Error (line 273) | type Error struct method UnsupportedStorageEngine (line 284) | func (e Error) UnsupportedStorageEngine() bool { method Error (line 289) | func (e Error) Error() string { method Unwrap (line 302) | func (e Error) Unwrap() error { method HasErrorLabel (line 307) | func (e Error) HasErrorLabel(label string) bool { method RetryableRead (line 317) | func (e Error) RetryableRead() bool { method RetryableWrite (line 333) | func (e Error) RetryableWrite(wireVersion *description.VersionRange) b... method NetworkError (line 352) | func (e Error) NetworkError() bool { method NodeIsRecovering (line 362) | func (e Error) NodeIsRecovering() bool { method NodeIsShuttingDown (line 373) | func (e Error) NodeIsShuttingDown() bool { method NotPrimary (line 384) | func (e Error) NotPrimary() bool { method NamespaceNotFound (line 395) | func (e Error) NamespaceNotFound() bool { function ExtractErrorFromServerResponse (line 401) | func ExtractErrorFromServerResponse(doc bsoncore.Document) error { FILE: x/mongo/driver/integration/aggregate_test.go function TestAggregate (line 23) | func TestAggregate(t *testing.T) { FILE: x/mongo/driver/integration/compressor_test.go function TestCompression (line 21) | func TestCompression(t *testing.T) { FILE: x/mongo/driver/integration/main_test.go function TestMain (line 37) | func TestMain(m *testing.M) { function noerr (line 64) | func noerr(t *testing.T, err error) { function autherr (line 72) | func autherr(t *testing.T, err error) { function addTLSConfigToURI (line 88) | func addTLSConfigToURI(uri string) string { function addCompressorToURI (line 107) | func addCompressorToURI(uri string) string { function runCommand (line 128) | func runCommand(s driver.Server, db string, cmd bsoncore.Document) error { function dropCollection (line 136) | func dropCollection(t *testing.T, dbname, colname string) { function autoInsertDocs (line 146) | func autoInsertDocs(t *testing.T, writeConcern *writeconcern.WriteConcer... function insertDocs (line 151) | func insertDocs(t *testing.T, dbname, colname string, writeConcern *writ... FILE: x/mongo/driver/integration/scram_test.go type scramTestCase (line 23) | type scramTestCase struct function TestSCRAM (line 30) | func TestSCRAM(t *testing.T) { function hasAuthMech (line 112) | func hasAuthMech(mechs []string, m string) bool { function testScramUserAuthWithMech (line 121) | func testScramUserAuthWithMech(t *testing.T, c scramTestCase, mech strin... function runScramAuthTest (line 137) | func runScramAuthTest(t *testing.T, credential options.Credential) error { function createScramUsers (line 147) | func createScramUsers(t *testing.T, s driver.Server, cases []scramTestCa... FILE: x/mongo/driver/legacy.go type LegacyOperationKind (line 12) | type LegacyOperationKind constant LegacyNone (line 16) | LegacyNone LegacyOperationKind = iota constant LegacyFind (line 17) | LegacyFind constant LegacyGetMore (line 18) | LegacyGetMore constant LegacyKillCursors (line 19) | LegacyKillCursors constant LegacyListCollections (line 20) | LegacyListCollections constant LegacyListIndexes (line 21) | LegacyListIndexes constant LegacyHandshake (line 22) | LegacyHandshake FILE: x/mongo/driver/mnet/connection.go type ReadWriteCloser (line 19) | type ReadWriteCloser interface type Describer (line 26) | type Describer interface type Streamer (line 48) | type Streamer interface type Compressor (line 58) | type Compressor interface type Pinner (line 72) | type Pinner interface type Connection (line 80) | type Connection struct function NewConnection (line 91) | func NewConnection(component interface { FILE: x/mongo/driver/mongocrypt/binary.go type binary (line 22) | type binary struct method toBytes (line 50) | func (b *binary) toBytes() []byte { method close (line 58) | func (b *binary) close() { function newBinary (line 28) | func newBinary() *binary { function newBinaryFromBytes (line 35) | func newBinaryFromBytes(data []byte) *binary { FILE: x/mongo/driver/mongocrypt/binary_test.go function resourceToDocumentForBench (line 28) | func resourceToDocumentForBench(b *testing.B, filename string) bsoncore.... function addMongoKeysForBench (line 43) | func addMongoKeysForBench(b *testing.B, encryptCtx *Context) { function createEncryptedDocForBench (line 62) | func createEncryptedDocForBench(b *testing.B, crypt *MongoCrypt, iter in... function decryptDocForBench (line 91) | func decryptDocForBench(b *testing.B, crypt *MongoCrypt, encryptedDoc bs... function createEncryptedDocForBulkDecryptionBench (line 109) | func createEncryptedDocForBulkDecryptionBench(b *testing.B, crypt *Mongo... function newCryptForBench (line 121) | func newCryptForBench(b *testing.B) *MongoCrypt { function calcMedian (line 157) | func calcMedian(values []float64) float64 { function BenchmarkBulkDecryption (line 168) | func BenchmarkBulkDecryption(b *testing.B) { FILE: x/mongo/driver/mongocrypt/errors.go type Error (line 19) | type Error struct method Error (line 25) | func (e Error) Error() string { function errorFromStatus (line 30) | func errorFromStatus(status *C.mongocrypt_status_t) error { FILE: x/mongo/driver/mongocrypt/errors_not_enabled.go type Error (line 12) | type Error struct method Error (line 18) | func (Error) Error() string { FILE: x/mongo/driver/mongocrypt/mongocrypt.go type kmsProvider (line 33) | type kmsProvider interface type MongoCrypt (line 37) | type MongoCrypt struct method CreateEncryptionContext (line 129) | func (m *MongoCrypt) CreateEncryptionContext(db string, cmd bsoncore.D... method CreateDecryptionContext (line 147) | func (m *MongoCrypt) CreateDecryptionContext(cmd bsoncore.Document) (*... method CreateDataKeyContext (line 213) | func (m *MongoCrypt) CreateDataKeyContext(kmsProvider string, opts *op... method createExplicitEncryptionContext (line 263) | func (m *MongoCrypt) createExplicitEncryptionContext(opts *options.Exp... method CreateExplicitEncryptionContext (line 387) | func (m *MongoCrypt) CreateExplicitEncryptionContext(doc bsoncore.Docu... method CreateExplicitEncryptionExpressionContext (line 402) | func (m *MongoCrypt) CreateExplicitEncryptionExpressionContext(doc bso... method CreateExplicitDecryptionContext (line 417) | func (m *MongoCrypt) CreateExplicitDecryptionContext(doc bsoncore.Docu... method CryptSharedLibVersion (line 434) | func (m *MongoCrypt) CryptSharedLibVersion() uint64 { method CryptSharedLibVersionString (line 440) | func (m *MongoCrypt) CryptSharedLibVersionString() string { method Close (line 449) | func (m *MongoCrypt) Close() { method RewrapDataKeyContext (line 457) | func (m *MongoCrypt) RewrapDataKeyContext(filter []byte, opts *options... method setProviderOptions (line 500) | func (m *MongoCrypt) setProviderOptions(kmsProviders bsoncore.Document... method setLocalSchemaMap (line 511) | func (m *MongoCrypt) setLocalSchemaMap(schemaMap map[string]bsoncore.D... method setEncryptedFieldsMap (line 532) | func (m *MongoCrypt) setEncryptedFieldsMap(encryptedfieldsMap map[stri... method createErrorFromStatus (line 553) | func (m *MongoCrypt) createErrorFromStatus() error { method GetKmsProviders (line 576) | func (m *MongoCrypt) GetKmsProviders(ctx context.Context) (bsoncore.Do... function Version (line 45) | func Version() string { function NewMongoCrypt (line 51) | func NewMongoCrypt(opts *options.MongoCryptOptions) (*MongoCrypt, error) { function lookupString (line 164) | func lookupString(doc bsoncore.Document, key string) string { function setAltName (line 169) | func setAltName(ctx *Context, altName string) error { function setKeyMaterial (line 184) | func setKeyMaterial(ctx *Context, keyMaterial []byte) error { function rewrapDataKey (line 202) | func rewrapDataKey(ctx *Context, filter []byte) error { constant IndexTypeUnindexed (line 258) | IndexTypeUnindexed = 1 constant IndexTypeIndexed (line 259) | IndexTypeIndexed = 2 function needsKmsProvider (line 562) | func needsKmsProvider(kmsProviders bsoncore.Document, provider string) b... FILE: x/mongo/driver/mongocrypt/mongocrypt_context.go type Context (line 19) | type Context struct method State (line 31) | func (c *Context) State() State { method NextOperation (line 36) | func (c *Context) NextOperation() (bsoncore.Document, error) { method AddOperationResult (line 47) | func (c *Context) AddOperationResult(result bsoncore.Document) error { method CompleteOperation (line 58) | func (c *Context) CompleteOperation() error { method NextKmsContext (line 66) | func (c *Context) NextKmsContext() *KmsContext { method FinishKmsContexts (line 75) | func (c *Context) FinishKmsContexts() error { method Finish (line 83) | func (c *Context) Finish() (bsoncore.Document, error) { method Close (line 94) | func (c *Context) Close() { method createErrorFromStatus (line 99) | func (c *Context) createErrorFromStatus() error { method ProvideKmsProviders (line 107) | func (c *Context) ProvideKmsProviders(kmsProviders bsoncore.Document) ... function newContext (line 24) | func newContext(wrapped *C.mongocrypt_ctx_t) *Context { FILE: x/mongo/driver/mongocrypt/mongocrypt_context_not_enabled.go type Context (line 16) | type Context struct method State (line 19) | func (c *Context) State() State { method NextOperation (line 24) | func (c *Context) NextOperation() (bsoncore.Document, error) { method AddOperationResult (line 29) | func (c *Context) AddOperationResult(bsoncore.Document) error { method CompleteOperation (line 34) | func (c *Context) CompleteOperation() error { method NextKmsContext (line 39) | func (c *Context) NextKmsContext() *KmsContext { method FinishKmsContexts (line 44) | func (c *Context) FinishKmsContexts() error { method Finish (line 49) | func (c *Context) Finish() (bsoncore.Document, error) { method Close (line 54) | func (c *Context) Close() { method ProvideKmsProviders (line 59) | func (c *Context) ProvideKmsProviders(bsoncore.Document) error { FILE: x/mongo/driver/mongocrypt/mongocrypt_kms_context.go type KmsContext (line 16) | type KmsContext struct method HostName (line 28) | func (kc *KmsContext) HostName() (string, error) { method KMSProvider (line 37) | func (kc *KmsContext) KMSProvider() string { method Message (line 43) | func (kc *KmsContext) Message() ([]byte, error) { method BytesNeeded (line 57) | func (kc *KmsContext) BytesNeeded() int32 { method FeedResponse (line 62) | func (kc *KmsContext) FeedResponse(response []byte) error { method createErrorFromStatus (line 73) | func (kc *KmsContext) createErrorFromStatus() error { method RequestError (line 81) | func (kc *KmsContext) RequestError() error { function newKmsContext (line 21) | func newKmsContext(wrapped *C.mongocrypt_kms_ctx_t) *KmsContext { FILE: x/mongo/driver/mongocrypt/mongocrypt_kms_context_not_enabled.go type KmsContext (line 12) | type KmsContext struct method HostName (line 15) | func (kc *KmsContext) HostName() (string, error) { method Message (line 20) | func (kc *KmsContext) Message() ([]byte, error) { method KMSProvider (line 25) | func (kc *KmsContext) KMSProvider() string { method BytesNeeded (line 31) | func (kc *KmsContext) BytesNeeded() int32 { method FeedResponse (line 36) | func (kc *KmsContext) FeedResponse([]byte) error { method RequestError (line 41) | func (kc *KmsContext) RequestError() error { FILE: x/mongo/driver/mongocrypt/mongocrypt_not_enabled.go constant cseNotSupportedMsg (line 25) | cseNotSupportedMsg = "client-side encryption not enabled. add the cse bu... type MongoCrypt (line 28) | type MongoCrypt struct method CreateEncryptionContext (line 42) | func (m *MongoCrypt) CreateEncryptionContext(string, bsoncore.Document... method CreateExplicitEncryptionExpressionContext (line 47) | func (m *MongoCrypt) CreateExplicitEncryptionExpressionContext(bsoncor... method CreateDecryptionContext (line 52) | func (m *MongoCrypt) CreateDecryptionContext(bsoncore.Document) (*Cont... method CreateDataKeyContext (line 57) | func (m *MongoCrypt) CreateDataKeyContext(string, *options.DataKeyOpti... method CreateExplicitEncryptionContext (line 62) | func (m *MongoCrypt) CreateExplicitEncryptionContext(bsoncore.Document... method RewrapDataKeyContext (line 67) | func (m *MongoCrypt) RewrapDataKeyContext([]byte, *options.RewrapManyD... method CreateExplicitDecryptionContext (line 72) | func (m *MongoCrypt) CreateExplicitDecryptionContext(bsoncore.Document... method CryptSharedLibVersion (line 78) | func (m *MongoCrypt) CryptSharedLibVersion() uint64 { method CryptSharedLibVersionString (line 84) | func (m *MongoCrypt) CryptSharedLibVersionString() string { method Close (line 89) | func (m *MongoCrypt) Close() { method GetKmsProviders (line 94) | func (m *MongoCrypt) GetKmsProviders(context.Context) (bsoncore.Docume... function Version (line 32) | func Version() string { function NewMongoCrypt (line 37) | func NewMongoCrypt(*options.MongoCryptOptions) (*MongoCrypt, error) { FILE: x/mongo/driver/mongocrypt/mongocrypt_test.go constant resourcesDir (line 25) | resourcesDir = "../../../../testdata/mongocrypt" function noerr (line 27) | func noerr(t *testing.T, err error) { function compareStates (line 35) | func compareStates(t *testing.T, expected, actual State) { function compareResources (line 42) | func compareResources(t *testing.T, expected, actual bsoncore.Document) { function createMongoCrypt (line 49) | func createMongoCrypt(t *testing.T) *MongoCrypt { function resourceToDocument (line 75) | func resourceToDocument(t *testing.T, filename string) bsoncore.Document { function httpResponseToBytes (line 86) | func httpResponseToBytes(t *testing.T, filename string) []byte { function testKmsCtx (line 110) | func testKmsCtx(t *testing.T, ctx *Context, keyAltName bool) { function TestMongoCrypt (line 166) | func TestMongoCrypt(t *testing.T) { FILE: x/mongo/driver/mongocrypt/options/mongocrypt_context_options.go type DataKeyOptions (line 15) | type DataKeyOptions struct type QueryType (line 22) | type QueryType constant QueryTypeEquality (line 26) | QueryTypeEquality QueryType = 1 type ExplicitEncryptionOptions (line 30) | type ExplicitEncryptionOptions struct method SetKeyID (line 83) | func (eeo *ExplicitEncryptionOptions) SetKeyID(keyID bson.Binary) *Exp... method SetKeyAltName (line 89) | func (eeo *ExplicitEncryptionOptions) SetKeyAltName(keyAltName string)... method SetAlgorithm (line 95) | func (eeo *ExplicitEncryptionOptions) SetAlgorithm(algorithm string) *... method SetQueryType (line 101) | func (eeo *ExplicitEncryptionOptions) SetQueryType(queryType string) *... method SetContentionFactor (line 107) | func (eeo *ExplicitEncryptionOptions) SetContentionFactor(contentionFa... method SetRangeOptions (line 113) | func (eeo *ExplicitEncryptionOptions) SetRangeOptions(ro ExplicitRange... method SetTextOptions (line 119) | func (eeo *ExplicitEncryptionOptions) SetTextOptions(to ExplicitTextOp... type ExplicitRangeOptions (line 41) | type ExplicitRangeOptions struct type ExplicitTextOptions (line 50) | type ExplicitTextOptions struct type SubstringOptions (line 59) | type SubstringOptions struct type PrefixOptions (line 66) | type PrefixOptions struct type SuffixOptions (line 72) | type SuffixOptions struct function ExplicitEncryption (line 78) | func ExplicitEncryption() *ExplicitEncryptionOptions { type RewrapManyDataKeyOptions (line 126) | type RewrapManyDataKeyOptions struct FILE: x/mongo/driver/mongocrypt/options/mongocrypt_options.go type MongoCryptOptions (line 17) | type MongoCryptOptions struct FILE: x/mongo/driver/mongocrypt/state.go type State (line 10) | type State method String (line 26) | func (s State) String() string { constant StateError (line 15) | StateError State = 0 constant NeedMongoCollInfo (line 16) | NeedMongoCollInfo State = 1 constant NeedMongoMarkings (line 17) | NeedMongoMarkings State = 2 constant NeedMongoKeys (line 18) | NeedMongoKeys State = 3 constant NeedKms (line 19) | NeedKms State = 4 constant Ready (line 20) | Ready State = 5 constant Done (line 21) | Done State = 6 constant NeedKmsCredentials (line 22) | NeedKmsCredentials State = 7 FILE: x/mongo/driver/ocsp/cache.go type cacheKey (line 17) | type cacheKey struct type Cache (line 25) | type Cache interface type ConcurrentCache (line 31) | type ConcurrentCache struct method Update (line 51) | func (c *ConcurrentCache) Update(request *ocsp.Request, response *Resp... method Get (line 96) | func (c *ConcurrentCache) Get(request *ocsp.Request) *ResponseDetails { function NewCache (line 39) | func NewCache() *ConcurrentCache { function createCacheKey (line 114) | func createCacheKey(request *ocsp.Request) cacheKey { FILE: x/mongo/driver/ocsp/cache_test.go function TestCache (line 23) | func TestCache(t *testing.T) { function futureTime (line 188) | func futureTime(minutes int) time.Time { FILE: x/mongo/driver/ocsp/config.go type config (line 19) | type config struct function newConfig (line 28) | func newConfig(certChain []*x509.Certificate, opts *VerifyOptions) (conf... FILE: x/mongo/driver/ocsp/ocsp.go type Error (line 40) | type Error struct method Error (line 45) | func (e *Error) Error() string { method Unwrap (line 50) | func (e *Error) Unwrap() error { function newOCSPError (line 54) | func newOCSPError(wrapped error) error { type ResponseDetails (line 60) | type ResponseDetails struct function extractResponseDetails (line 65) | func extractResponseDetails(res *ocsp.Response) *ResponseDetails { function Verify (line 73) | func Verify(ctx context.Context, connState tls.ConnectionState, opts *Ve... function getParsedResponse (line 112) | func getParsedResponse(ctx context.Context, cfg config, connState tls.Co... function processStaple (line 150) | func processStaple(cfg config, staple []byte) (*ResponseDetails, error) { function isMustStapleCertificate (line 181) | func isMustStapleCertificate(cert *x509.Certificate) (bool, error) { function contactResponders (line 217) | func contactResponders(ctx context.Context, cfg config) *ResponseDetails { function verifyResponse (line 293) | func verifyResponse(cfg config, res *ocsp.Response) error { function verifyExtendedKeyUsage (line 308) | func verifyExtendedKeyUsage(cfg config, res *ocsp.Response) error { FILE: x/mongo/driver/ocsp/ocsp_test.go function TestContactResponders (line 22) | func TestContactResponders(t *testing.T) { FILE: x/mongo/driver/ocsp/options.go type VerifyOptions (line 12) | type VerifyOptions struct FILE: x/mongo/driver/operation.go constant defaultLocalThreshold (line 39) | defaultLocalThreshold = 15 * time.Millisecond constant cryptMaxBsonObjectSize (line 67) | cryptMaxBsonObjectSize int = 2097152 constant cryptMinWireVersion (line 69) | cryptMinWireVersion int32 = 8 constant readSnapshotMinWireVersion (line 71) | readSnapshotMinWireVersion int32 = 13 type RetryablePoolError (line 75) | type RetryablePoolError interface type labeledError (line 80) | type labeledError interface type InvalidOperationError (line 87) | type InvalidOperationError struct method Error (line 89) | func (err InvalidOperationError) Error() string { type opReply (line 95) | type opReply struct type startedInformation (line 105) | type startedInformation struct type finishedInformation (line 123) | type finishedInformation struct method success (line 143) | func (info finishedInformation) success() bool { type ResponseInfo (line 152) | type ResponseInfo struct function redactStartedInformationCmd (line 160) | func redactStartedInformationCmd(info startedInformation) bson.Raw { function redactFinishedInformationResponse (line 214) | func redactFinishedInformationResponse(info finishedInformation) bson.Raw { type OperationBatches (line 224) | type OperationBatches interface type Operation (line 242) | type Operation struct method shouldEncrypt (line 365) | func (op Operation) shouldEncrypt() bool { method selectServer (line 370) | func (op Operation) selectServer( method getServerAndConnection (line 404) | func (op Operation) getServerAndConnection( method Validate (line 457) | func (op Operation) Validate() error { method Execute (line 483) | func (op Operation) Execute(ctx context.Context) error { method retryable (line 1015) | func (op Operation) retryable(desc description.Server) bool { method roundTrip (line 1039) | func (op Operation) roundTrip(ctx context.Context, conn *mnet.Connecti... method readWireMessage (line 1047) | func (op Operation) readWireMessage(ctx context.Context, conn *mnet.Co... method networkError (line 1101) | func (op Operation) networkError(err error) error { method moreToComeRoundTrip (line 1121) | func (op *Operation) moreToComeRoundTrip(ctx context.Context, conn *mn... method decompressWireMessage (line 1133) | func (Operation) decompressWireMessage(wm []byte) (wiremessage.OpCode,... method createLegacyHandshakeWireMessage (line 1161) | func (op Operation) createLegacyHandshakeWireMessage( method createMsgWireMessage (line 1243) | func (op Operation) createMsgWireMessage( method createWireMessage (line 1313) | func (op Operation) createWireMessage( method addEncryptCommandFields (line 1420) | func (op Operation) addEncryptCommandFields(ctx context.Context, dst [... method addServerAPI (line 1461) | func (op Operation) addServerAPI(dst []byte) []byte { method addReadConcern (line 1491) | func (op Operation) addReadConcern(dst []byte, desc description.Select... method addWriteConcern (line 1596) | func (op Operation) addWriteConcern(ctx context.Context, dst []byte, d... method addSession (line 1630) | func (op Operation) addSession(dst []byte, desc description.SelectedSe... method addClusterTime (line 1665) | func (op Operation) addClusterTime(dst []byte, desc description.Select... method calculateMaxTimeMS (line 1692) | func (op Operation) calculateMaxTimeMS(ctx context.Context, rttMin tim... method updateClusterTimes (line 1713) | func (op Operation) updateClusterTimes(response bsoncore.Document) { method updateOperationTime (line 1736) | func (op Operation) updateOperationTime(response bsoncore.Document) { method getReadPrefBasedOnTransaction (line 1755) | func (op Operation) getReadPrefBasedOnTransaction() (*readpref.ReadPre... method createReadPref (line 1772) | func (op Operation) createReadPref(desc description.SelectedServer, is... method secondaryOK (line 1876) | func (op Operation) secondaryOK(desc description.SelectedServer) wirem... method canCompress (line 1888) | func (Operation) canCompress(cmd string) bool { method decodeOpReply (line 1899) | func (Operation) decodeOpReply(wm []byte) opReply { method decodeResult (line 1947) | func (op Operation) decodeResult(opcode wiremessage.OpCode, wm []byte)... method getCommandName (line 2008) | func (op Operation) getCommandName(doc []byte) string { method redactCommand (line 2014) | func (op *Operation) redactCommand(cmd string, doc bsoncore.Document) ... method canLogCommandMessage (line 2030) | func (op Operation) canLogCommandMessage() bool { method canPublishStartedEvent (line 2034) | func (op Operation) canPublishStartedEvent() bool { method publishStartedEvent (line 2041) | func (op Operation) publishStartedEvent(ctx context.Context, info star... method canPublishFinishedEvent (line 2084) | func (op Operation) canPublishFinishedEvent(info finishedInformation) ... method publishFinishedEvent (line 2094) | func (op Operation) publishFinishedEvent(ctx context.Context, info fin... function isLegacyHandshake (line 1307) | func isLegacyHandshake(op Operation, desc description.SelectedServer) bo... function MarshalBSONReadConcern (line 1478) | func MarshalBSONReadConcern(rc *readconcern.ReadConcern) (bson.Type, []b... function MarshalBSONWriteConcern (line 1545) | func MarshalBSONWriteConcern(wc *writeconcern.WriteConcern, wtimeout tim... function sessionsSupported (line 2176) | func sessionsSupported(wireVersion *description.VersionRange) bool { function retryWritesSupported (line 2181) | func retryWritesSupported(s description.Server) bool { function appendDocumentArray (line 2186) | func appendDocumentArray(dst []byte, key string, data []byte) []byte { FILE: x/mongo/driver/operation/abort_transaction.go type AbortTransaction (line 24) | type AbortTransaction struct method processResponse (line 46) | func (at *AbortTransaction) processResponse(context.Context, bsoncore.... method Execute (line 51) | func (at *AbortTransaction) Execute(ctx context.Context) error { method command (line 76) | func (at *AbortTransaction) command(dst []byte, _ description.Selected... method RecoveryToken (line 85) | func (at *AbortTransaction) RecoveryToken(recoveryToken bsoncore.Docum... method Session (line 95) | func (at *AbortTransaction) Session(session *session.Client) *AbortTra... method ClusterClock (line 105) | func (at *AbortTransaction) ClusterClock(clock *session.ClusterClock) ... method Collection (line 115) | func (at *AbortTransaction) Collection(collection string) *AbortTransa... method CommandMonitor (line 125) | func (at *AbortTransaction) CommandMonitor(monitor *event.CommandMonit... method Crypt (line 135) | func (at *AbortTransaction) Crypt(crypt driver.Crypt) *AbortTransaction { method Database (line 145) | func (at *AbortTransaction) Database(database string) *AbortTransaction { method Deployment (line 155) | func (at *AbortTransaction) Deployment(deployment driver.Deployment) *... method ServerSelector (line 165) | func (at *AbortTransaction) ServerSelector(selector description.Server... method WriteConcern (line 175) | func (at *AbortTransaction) WriteConcern(writeConcern *writeconcern.Wr... method Retry (line 186) | func (at *AbortTransaction) Retry(retry driver.RetryMode) *AbortTransa... method ServerAPI (line 196) | func (at *AbortTransaction) ServerAPI(serverAPI *driver.ServerAPIOptio... method Authenticator (line 206) | func (at *AbortTransaction) Authenticator(authenticator driver.Authent... method Logger (line 216) | func (at *AbortTransaction) Logger(logger *logger.Logger) *AbortTransa... function NewAbortTransaction (line 42) | func NewAbortTransaction() *AbortTransaction { FILE: x/mongo/driver/operation/aggregate.go type Aggregate (line 26) | type Aggregate struct method Result (line 66) | func (a *Aggregate) Result(opts driver.CursorOptions) (*driver.BatchCu... method ResultCursorResponse (line 76) | func (a *Aggregate) ResultCursorResponse() driver.CursorResponse { method processResponse (line 80) | func (a *Aggregate) processResponse(_ context.Context, resp bsoncore.D... method Execute (line 90) | func (a *Aggregate) Execute(ctx context.Context) error { method command (line 121) | func (a *Aggregate) command(dst []byte, desc description.SelectedServe... method AllowDiskUse (line 170) | func (a *Aggregate) AllowDiskUse(allowDiskUse bool) *Aggregate { method BatchSize (line 180) | func (a *Aggregate) BatchSize(batchSize int32) *Aggregate { method BypassDocumentValidation (line 190) | func (a *Aggregate) BypassDocumentValidation(bypassDocumentValidation ... method Collation (line 200) | func (a *Aggregate) Collation(collation bsoncore.Document) *Aggregate { method Comment (line 210) | func (a *Aggregate) Comment(comment bsoncore.Value) *Aggregate { method Hint (line 220) | func (a *Aggregate) Hint(hint bsoncore.Value) *Aggregate { method Pipeline (line 230) | func (a *Aggregate) Pipeline(pipeline bsoncore.Document) *Aggregate { method Session (line 240) | func (a *Aggregate) Session(session *session.Client) *Aggregate { method ClusterClock (line 250) | func (a *Aggregate) ClusterClock(clock *session.ClusterClock) *Aggrega... method Collection (line 260) | func (a *Aggregate) Collection(collection string) *Aggregate { method CommandMonitor (line 270) | func (a *Aggregate) CommandMonitor(monitor *event.CommandMonitor) *Agg... method Database (line 280) | func (a *Aggregate) Database(database string) *Aggregate { method Deployment (line 290) | func (a *Aggregate) Deployment(deployment driver.Deployment) *Aggregate { method ReadConcern (line 300) | func (a *Aggregate) ReadConcern(readConcern *readconcern.ReadConcern) ... method ReadPreference (line 310) | func (a *Aggregate) ReadPreference(readPreference *readpref.ReadPref) ... method ServerSelector (line 320) | func (a *Aggregate) ServerSelector(selector description.ServerSelector... method WriteConcern (line 330) | func (a *Aggregate) WriteConcern(writeConcern *writeconcern.WriteConce... method Retry (line 342) | func (a *Aggregate) Retry(retry driver.RetryMode) *Aggregate { method Crypt (line 352) | func (a *Aggregate) Crypt(crypt driver.Crypt) *Aggregate { method ServerAPI (line 362) | func (a *Aggregate) ServerAPI(serverAPI *driver.ServerAPIOptions) *Agg... method Let (line 372) | func (a *Aggregate) Let(let bsoncore.Document) *Aggregate { method HasOutputStage (line 383) | func (a *Aggregate) HasOutputStage(hos bool) *Aggregate { method CustomOptions (line 393) | func (a *Aggregate) CustomOptions(co map[string]bsoncore.Value) *Aggre... method Timeout (line 403) | func (a *Aggregate) Timeout(timeout *time.Duration) *Aggregate { method Authenticator (line 413) | func (a *Aggregate) Authenticator(authenticator driver.Authenticator) ... method OmitMaxTimeMS (line 424) | func (a *Aggregate) OmitMaxTimeMS(omit bool) *Aggregate { method RawData (line 434) | func (a *Aggregate) RawData(rawData bool) *Aggregate { function NewAggregate (line 59) | func NewAggregate(pipeline bsoncore.Document) *Aggregate { FILE: x/mongo/driver/operation/command.go type Command (line 24) | type Command struct method Result (line 63) | func (c *Command) Result() bsoncore.Document { return c.resultResponse } method ResultCursor (line 68) | func (c *Command) ResultCursor() (*driver.BatchCursor, error) { method Execute (line 76) | func (c *Command) Execute(ctx context.Context) error { method Session (line 120) | func (c *Command) Session(session *session.Client) *Command { method ClusterClock (line 130) | func (c *Command) ClusterClock(clock *session.ClusterClock) *Command { method CommandMonitor (line 140) | func (c *Command) CommandMonitor(monitor *event.CommandMonitor) *Comma... method Database (line 150) | func (c *Command) Database(database string) *Command { method Deployment (line 160) | func (c *Command) Deployment(deployment driver.Deployment) *Command { method ReadPreference (line 170) | func (c *Command) ReadPreference(readPreference *readpref.ReadPref) *C... method ServerSelector (line 180) | func (c *Command) ServerSelector(selector description.ServerSelector) ... method Crypt (line 190) | func (c *Command) Crypt(crypt driver.Crypt) *Command { method ServerAPI (line 200) | func (c *Command) ServerAPI(serverAPI *driver.ServerAPIOptions) *Comma... method Timeout (line 210) | func (c *Command) Timeout(timeout *time.Duration) *Command { method Logger (line 220) | func (c *Command) Logger(logger *logger.Logger) *Command { method Authenticator (line 230) | func (c *Command) Authenticator(authenticator driver.Authenticator) *C... function NewCommand (line 46) | func NewCommand(command bsoncore.Document) *Command { function NewCursorCommand (line 54) | func NewCursorCommand(command bsoncore.Document, cursorOpts driver.Curso... FILE: x/mongo/driver/operation/commit_transaction.go type CommitTransaction (line 24) | type CommitTransaction struct method processResponse (line 45) | func (ct *CommitTransaction) processResponse(context.Context, bsoncore... method Execute (line 50) | func (ct *CommitTransaction) Execute(ctx context.Context) error { method command (line 75) | func (ct *CommitTransaction) command(dst []byte, _ description.Selecte... method RecoveryToken (line 84) | func (ct *CommitTransaction) RecoveryToken(recoveryToken bsoncore.Docu... method Session (line 94) | func (ct *CommitTransaction) Session(session *session.Client) *CommitT... method ClusterClock (line 104) | func (ct *CommitTransaction) ClusterClock(clock *session.ClusterClock)... method CommandMonitor (line 114) | func (ct *CommitTransaction) CommandMonitor(monitor *event.CommandMoni... method Crypt (line 124) | func (ct *CommitTransaction) Crypt(crypt driver.Crypt) *CommitTransact... method Database (line 134) | func (ct *CommitTransaction) Database(database string) *CommitTransact... method Deployment (line 144) | func (ct *CommitTransaction) Deployment(deployment driver.Deployment) ... method ServerSelector (line 154) | func (ct *CommitTransaction) ServerSelector(selector description.Serve... method WriteConcern (line 164) | func (ct *CommitTransaction) WriteConcern(writeConcern *writeconcern.W... method Retry (line 175) | func (ct *CommitTransaction) Retry(retry driver.RetryMode) *CommitTran... method ServerAPI (line 185) | func (ct *CommitTransaction) ServerAPI(serverAPI *driver.ServerAPIOpti... method Authenticator (line 195) | func (ct *CommitTransaction) Authenticator(authenticator driver.Authen... method Logger (line 205) | func (ct *CommitTransaction) Logger(logger *logger.Logger) *CommitTran... function NewCommitTransaction (line 41) | func NewCommitTransaction() *CommitTransaction { FILE: x/mongo/driver/operation/count.go type Count (line 26) | type Count struct method Result (line 99) | func (c *Count) Result() CountResult { return c.result } method processResponse (line 101) | func (c *Count) processResponse(_ context.Context, resp bsoncore.Docum... method Execute (line 108) | func (c *Count) Execute(ctx context.Context) error { method command (line 142) | func (c *Count) command(dst []byte, desc description.SelectedServer) (... method Query (line 158) | func (c *Count) Query(query bsoncore.Document) *Count { method Session (line 168) | func (c *Count) Session(session *session.Client) *Count { method ClusterClock (line 178) | func (c *Count) ClusterClock(clock *session.ClusterClock) *Count { method Collection (line 188) | func (c *Count) Collection(collection string) *Count { method Comment (line 198) | func (c *Count) Comment(comment bsoncore.Value) *Count { method CommandMonitor (line 208) | func (c *Count) CommandMonitor(monitor *event.CommandMonitor) *Count { method Crypt (line 218) | func (c *Count) Crypt(crypt driver.Crypt) *Count { method Database (line 228) | func (c *Count) Database(database string) *Count { method Deployment (line 238) | func (c *Count) Deployment(deployment driver.Deployment) *Count { method ReadConcern (line 248) | func (c *Count) ReadConcern(readConcern *readconcern.ReadConcern) *Cou... method ReadPreference (line 258) | func (c *Count) ReadPreference(readPreference *readpref.ReadPref) *Cou... method ServerSelector (line 268) | func (c *Count) ServerSelector(selector description.ServerSelector) *C... method Retry (line 279) | func (c *Count) Retry(retry driver.RetryMode) *Count { method ServerAPI (line 289) | func (c *Count) ServerAPI(serverAPI *driver.ServerAPIOptions) *Count { method Timeout (line 299) | func (c *Count) Timeout(timeout *time.Duration) *Count { method Authenticator (line 309) | func (c *Count) Authenticator(authenticator driver.Authenticator) *Cou... method RawData (line 319) | func (c *Count) RawData(rawData bool) *Count { type CountResult (line 48) | type CountResult struct function buildCountResult (line 53) | func buildCountResult(response bsoncore.Document) (CountResult, error) { function NewCount (line 94) | func NewCount() *Count { FILE: x/mongo/driver/operation/create.go type Create (line 23) | type Create struct method processResponse (line 60) | func (c *Create) processResponse(context.Context, bsoncore.Document, d... method Execute (line 65) | func (c *Create) Execute(ctx context.Context) error { method command (line 86) | func (c *Create) command(dst []byte, desc description.SelectedServer) ... method Capped (line 145) | func (c *Create) Capped(capped bool) *Create { method Collation (line 155) | func (c *Create) Collation(collation bsoncore.Document) *Create { method ChangeStreamPreAndPostImages (line 166) | func (c *Create) ChangeStreamPreAndPostImages(csppi bsoncore.Document)... method CollectionName (line 176) | func (c *Create) CollectionName(collectionName string) *Create { method IndexOptionDefaults (line 186) | func (c *Create) IndexOptionDefaults(indexOptionDefaults bsoncore.Docu... method Max (line 196) | func (c *Create) Max(max int64) *Create { method Pipeline (line 206) | func (c *Create) Pipeline(pipeline bsoncore.Document) *Create { method Size (line 216) | func (c *Create) Size(size int64) *Create { method StorageEngine (line 226) | func (c *Create) StorageEngine(storageEngine bsoncore.Document) *Create { method ValidationAction (line 236) | func (c *Create) ValidationAction(validationAction string) *Create { method ValidationLevel (line 247) | func (c *Create) ValidationLevel(validationLevel string) *Create { method Validator (line 257) | func (c *Create) Validator(validator bsoncore.Document) *Create { method ViewOn (line 267) | func (c *Create) ViewOn(viewOn string) *Create { method Session (line 277) | func (c *Create) Session(session *session.Client) *Create { method ClusterClock (line 287) | func (c *Create) ClusterClock(clock *session.ClusterClock) *Create { method CommandMonitor (line 297) | func (c *Create) CommandMonitor(monitor *event.CommandMonitor) *Create { method Crypt (line 307) | func (c *Create) Crypt(crypt driver.Crypt) *Create { method Database (line 317) | func (c *Create) Database(database string) *Create { method Deployment (line 327) | func (c *Create) Deployment(deployment driver.Deployment) *Create { method ServerSelector (line 337) | func (c *Create) ServerSelector(selector description.ServerSelector) *... method WriteConcern (line 347) | func (c *Create) WriteConcern(writeConcern *writeconcern.WriteConcern)... method ServerAPI (line 357) | func (c *Create) ServerAPI(serverAPI *driver.ServerAPIOptions) *Create { method ExpireAfterSeconds (line 367) | func (c *Create) ExpireAfterSeconds(eas int64) *Create { method TimeSeries (line 377) | func (c *Create) TimeSeries(timeSeries bsoncore.Document) *Create { method EncryptedFields (line 387) | func (c *Create) EncryptedFields(ef bsoncore.Document) *Create { method ClusteredIndex (line 397) | func (c *Create) ClusteredIndex(ci bsoncore.Document) *Create { method Authenticator (line 407) | func (c *Create) Authenticator(authenticator driver.Authenticator) *Cr... function NewCreate (line 54) | func NewCreate(collectionName string) *Create { FILE: x/mongo/driver/operation/create_indexes.go type CreateIndexes (line 25) | type CreateIndexes struct method Result (line 93) | func (ci *CreateIndexes) Result() CreateIndexesResult { return ci.resu... method processResponse (line 95) | func (ci *CreateIndexes) processResponse(_ context.Context, resp bsonc... method Execute (line 102) | func (ci *CreateIndexes) Execute(ctx context.Context) error { method command (line 125) | func (ci *CreateIndexes) command(dst []byte, desc description.Selected... method CommitQuorum (line 146) | func (ci *CreateIndexes) CommitQuorum(commitQuorum bsoncore.Value) *Cr... method Indexes (line 156) | func (ci *CreateIndexes) Indexes(indexes bsoncore.Document) *CreateInd... method Session (line 166) | func (ci *CreateIndexes) Session(session *session.Client) *CreateIndex... method ClusterClock (line 176) | func (ci *CreateIndexes) ClusterClock(clock *session.ClusterClock) *Cr... method Collection (line 186) | func (ci *CreateIndexes) Collection(collection string) *CreateIndexes { method CommandMonitor (line 196) | func (ci *CreateIndexes) CommandMonitor(monitor *event.CommandMonitor)... method Crypt (line 206) | func (ci *CreateIndexes) Crypt(crypt driver.Crypt) *CreateIndexes { method Database (line 216) | func (ci *CreateIndexes) Database(database string) *CreateIndexes { method Deployment (line 226) | func (ci *CreateIndexes) Deployment(deployment driver.Deployment) *Cre... method ServerSelector (line 236) | func (ci *CreateIndexes) ServerSelector(selector description.ServerSel... method WriteConcern (line 246) | func (ci *CreateIndexes) WriteConcern(writeConcern *writeconcern.Write... method ServerAPI (line 256) | func (ci *CreateIndexes) ServerAPI(serverAPI *driver.ServerAPIOptions)... method Timeout (line 266) | func (ci *CreateIndexes) Timeout(timeout *time.Duration) *CreateIndexes { method Authenticator (line 276) | func (ci *CreateIndexes) Authenticator(authenticator driver.Authentica... method RawData (line 286) | func (ci *CreateIndexes) RawData(rawData bool) *CreateIndexes { type CreateIndexesResult (line 45) | type CreateIndexesResult struct function buildCreateIndexesResult (line 54) | func buildCreateIndexesResult(response bsoncore.Document) (CreateIndexes... function NewCreateIndexes (line 86) | func NewCreateIndexes(indexes bsoncore.Document) *CreateIndexes { FILE: x/mongo/driver/operation/create_search_indexes.go type CreateSearchIndexes (line 24) | type CreateSearchIndexes struct method Result (line 94) | func (csi *CreateSearchIndexes) Result() CreateSearchIndexesResult { r... method processResponse (line 96) | func (csi *CreateSearchIndexes) processResponse(_ context.Context, res... method Execute (line 103) | func (csi *CreateSearchIndexes) Execute(ctx context.Context) error { method command (line 124) | func (csi *CreateSearchIndexes) command(dst []byte, _ description.Sele... method Indexes (line 133) | func (csi *CreateSearchIndexes) Indexes(indexes bsoncore.Document) *Cr... method Session (line 143) | func (csi *CreateSearchIndexes) Session(session *session.Client) *Crea... method ClusterClock (line 153) | func (csi *CreateSearchIndexes) ClusterClock(clock *session.ClusterClo... method Collection (line 163) | func (csi *CreateSearchIndexes) Collection(collection string) *CreateS... method CommandMonitor (line 173) | func (csi *CreateSearchIndexes) CommandMonitor(monitor *event.CommandM... method Crypt (line 183) | func (csi *CreateSearchIndexes) Crypt(crypt driver.Crypt) *CreateSearc... method Database (line 193) | func (csi *CreateSearchIndexes) Database(database string) *CreateSearc... method Deployment (line 203) | func (csi *CreateSearchIndexes) Deployment(deployment driver.Deploymen... method ServerSelector (line 213) | func (csi *CreateSearchIndexes) ServerSelector(selector description.Se... method ServerAPI (line 223) | func (csi *CreateSearchIndexes) ServerAPI(serverAPI *driver.ServerAPIO... method Timeout (line 233) | func (csi *CreateSearchIndexes) Timeout(timeout *time.Duration) *Creat... method Authenticator (line 243) | func (csi *CreateSearchIndexes) Authenticator(authenticator driver.Aut... type CreateSearchIndexResult (line 41) | type CreateSearchIndexResult struct type CreateSearchIndexesResult (line 46) | type CreateSearchIndexesResult struct function buildCreateSearchIndexesResult (line 50) | func buildCreateSearchIndexesResult(response bsoncore.Document) (CreateS... function NewCreateSearchIndexes (line 87) | func NewCreateSearchIndexes(indexes bsoncore.Document) *CreateSearchInde... FILE: x/mongo/driver/operation/delete.go type Delete (line 26) | type Delete struct method Result (line 82) | func (d *Delete) Result() DeleteResult { return d.result } method processResponse (line 84) | func (d *Delete) processResponse(_ context.Context, resp bsoncore.Docu... method Execute (line 91) | func (d *Delete) Execute(ctx context.Context) error { method command (line 123) | func (d *Delete) command(dst []byte, desc description.SelectedServer) ... method Deletes (line 152) | func (d *Delete) Deletes(deletes ...bsoncore.Document) *Delete { method Ordered (line 163) | func (d *Delete) Ordered(ordered bool) *Delete { method Session (line 173) | func (d *Delete) Session(session *session.Client) *Delete { method ClusterClock (line 183) | func (d *Delete) ClusterClock(clock *session.ClusterClock) *Delete { method Collection (line 193) | func (d *Delete) Collection(collection string) *Delete { method Comment (line 203) | func (d *Delete) Comment(comment bsoncore.Value) *Delete { method CommandMonitor (line 213) | func (d *Delete) CommandMonitor(monitor *event.CommandMonitor) *Delete { method Crypt (line 223) | func (d *Delete) Crypt(crypt driver.Crypt) *Delete { method Database (line 233) | func (d *Delete) Database(database string) *Delete { method Deployment (line 243) | func (d *Delete) Deployment(deployment driver.Deployment) *Delete { method ServerSelector (line 253) | func (d *Delete) ServerSelector(selector description.ServerSelector) *... method WriteConcern (line 263) | func (d *Delete) WriteConcern(writeConcern *writeconcern.WriteConcern)... method Retry (line 274) | func (d *Delete) Retry(retry driver.RetryMode) *Delete { method Hint (line 285) | func (d *Delete) Hint(hint bool) *Delete { method ServerAPI (line 295) | func (d *Delete) ServerAPI(serverAPI *driver.ServerAPIOptions) *Delete { method Let (line 305) | func (d *Delete) Let(let bsoncore.Document) *Delete { method Timeout (line 315) | func (d *Delete) Timeout(timeout *time.Duration) *Delete { method Logger (line 325) | func (d *Delete) Logger(logger *logger.Logger) *Delete { method Authenticator (line 336) | func (d *Delete) Authenticator(authenticator driver.Authenticator) *De... method RawData (line 346) | func (d *Delete) RawData(rawData bool) *Delete { type DeleteResult (line 51) | type DeleteResult struct function buildDeleteResult (line 56) | func buildDeleteResult(response bsoncore.Document) (DeleteResult, error) { function NewDelete (line 75) | func NewDelete(deletes ...bsoncore.Document) *Delete { FILE: x/mongo/driver/operation/distinct.go type Distinct (line 25) | type Distinct struct method Result (line 78) | func (d *Distinct) Result() DistinctResult { return d.result } method processResponse (line 80) | func (d *Distinct) processResponse(_ context.Context, resp bsoncore.Do... method Execute (line 87) | func (d *Distinct) Execute(ctx context.Context) error { method command (line 113) | func (d *Distinct) command(dst []byte, desc description.SelectedServer... method Collation (line 141) | func (d *Distinct) Collation(collation bsoncore.Document) *Distinct { method Key (line 151) | func (d *Distinct) Key(key string) *Distinct { method Query (line 161) | func (d *Distinct) Query(query bsoncore.Document) *Distinct { method Session (line 171) | func (d *Distinct) Session(session *session.Client) *Distinct { method ClusterClock (line 181) | func (d *Distinct) ClusterClock(clock *session.ClusterClock) *Distinct { method Collection (line 191) | func (d *Distinct) Collection(collection string) *Distinct { method Comment (line 201) | func (d *Distinct) Comment(comment bsoncore.Value) *Distinct { method Hint (line 211) | func (d *Distinct) Hint(hint bsoncore.Value) *Distinct { method CommandMonitor (line 221) | func (d *Distinct) CommandMonitor(monitor *event.CommandMonitor) *Dist... method Crypt (line 231) | func (d *Distinct) Crypt(crypt driver.Crypt) *Distinct { method Database (line 241) | func (d *Distinct) Database(database string) *Distinct { method Deployment (line 251) | func (d *Distinct) Deployment(deployment driver.Deployment) *Distinct { method ReadConcern (line 261) | func (d *Distinct) ReadConcern(readConcern *readconcern.ReadConcern) *... method ReadPreference (line 271) | func (d *Distinct) ReadPreference(readPreference *readpref.ReadPref) *... method ServerSelector (line 281) | func (d *Distinct) ServerSelector(selector description.ServerSelector)... method Retry (line 292) | func (d *Distinct) Retry(retry driver.RetryMode) *Distinct { method ServerAPI (line 302) | func (d *Distinct) ServerAPI(serverAPI *driver.ServerAPIOptions) *Dist... method Timeout (line 312) | func (d *Distinct) Timeout(timeout *time.Duration) *Distinct { method Authenticator (line 322) | func (d *Distinct) Authenticator(authenticator driver.Authenticator) *... method RawData (line 332) | func (d *Distinct) RawData(rawData bool) *Distinct { type DistinctResult (line 50) | type DistinctResult struct function buildDistinctResult (line 55) | func buildDistinctResult(response bsoncore.Document) (DistinctResult, er... function NewDistinct (line 70) | func NewDistinct(key string, query bsoncore.Document) *Distinct { FILE: x/mongo/driver/operation/drop_collection.go type DropCollection (line 25) | type DropCollection struct method Result (line 80) | func (dc *DropCollection) Result() DropCollectionResult { return dc.re... method processResponse (line 82) | func (dc *DropCollection) processResponse(_ context.Context, resp bson... method Execute (line 89) | func (dc *DropCollection) Execute(ctx context.Context) error { method command (line 112) | func (dc *DropCollection) command(dst []byte, _ description.SelectedSe... method Session (line 118) | func (dc *DropCollection) Session(session *session.Client) *DropCollec... method ClusterClock (line 128) | func (dc *DropCollection) ClusterClock(clock *session.ClusterClock) *D... method Collection (line 138) | func (dc *DropCollection) Collection(collection string) *DropCollection { method CommandMonitor (line 148) | func (dc *DropCollection) CommandMonitor(monitor *event.CommandMonitor... method Crypt (line 158) | func (dc *DropCollection) Crypt(crypt driver.Crypt) *DropCollection { method Database (line 168) | func (dc *DropCollection) Database(database string) *DropCollection { method Deployment (line 178) | func (dc *DropCollection) Deployment(deployment driver.Deployment) *Dr... method ServerSelector (line 188) | func (dc *DropCollection) ServerSelector(selector description.ServerSe... method WriteConcern (line 198) | func (dc *DropCollection) WriteConcern(writeConcern *writeconcern.Writ... method ServerAPI (line 208) | func (dc *DropCollection) ServerAPI(serverAPI *driver.ServerAPIOptions... method Timeout (line 218) | func (dc *DropCollection) Timeout(timeout *time.Duration) *DropCollect... method Authenticator (line 228) | func (dc *DropCollection) Authenticator(authenticator driver.Authentic... type DropCollectionResult (line 42) | type DropCollectionResult struct function buildDropCollectionResult (line 49) | func buildDropCollectionResult(response bsoncore.Document) (DropCollecti... function NewDropCollection (line 75) | func NewDropCollection() *DropCollection { FILE: x/mongo/driver/operation/drop_database.go type DropDatabase (line 23) | type DropDatabase struct method Execute (line 42) | func (dd *DropDatabase) Execute(ctx context.Context) error { method command (line 63) | func (dd *DropDatabase) command(dst []byte, _ description.SelectedServ... method Session (line 69) | func (dd *DropDatabase) Session(session *session.Client) *DropDatabase { method ClusterClock (line 79) | func (dd *DropDatabase) ClusterClock(clock *session.ClusterClock) *Dro... method CommandMonitor (line 89) | func (dd *DropDatabase) CommandMonitor(monitor *event.CommandMonitor) ... method Crypt (line 99) | func (dd *DropDatabase) Crypt(crypt driver.Crypt) *DropDatabase { method Database (line 109) | func (dd *DropDatabase) Database(database string) *DropDatabase { method Deployment (line 119) | func (dd *DropDatabase) Deployment(deployment driver.Deployment) *Drop... method ServerSelector (line 129) | func (dd *DropDatabase) ServerSelector(selector description.ServerSele... method WriteConcern (line 139) | func (dd *DropDatabase) WriteConcern(writeConcern *writeconcern.WriteC... method ServerAPI (line 149) | func (dd *DropDatabase) ServerAPI(serverAPI *driver.ServerAPIOptions) ... method Authenticator (line 159) | func (dd *DropDatabase) Authenticator(authenticator driver.Authenticat... function NewDropDatabase (line 37) | func NewDropDatabase() *DropDatabase { FILE: x/mongo/driver/operation/drop_indexes.go type DropIndexes (line 25) | type DropIndexes struct method Result (line 75) | func (di *DropIndexes) Result() DropIndexesResult { return di.result } method processResponse (line 77) | func (di *DropIndexes) processResponse(_ context.Context, resp bsoncor... method Execute (line 84) | func (di *DropIndexes) Execute(ctx context.Context) error { method command (line 107) | func (di *DropIndexes) command(dst []byte, desc description.SelectedSe... method Index (line 127) | func (di *DropIndexes) Index(index any) *DropIndexes { method Session (line 137) | func (di *DropIndexes) Session(session *session.Client) *DropIndexes { method ClusterClock (line 147) | func (di *DropIndexes) ClusterClock(clock *session.ClusterClock) *Drop... method Collection (line 157) | func (di *DropIndexes) Collection(collection string) *DropIndexes { method CommandMonitor (line 167) | func (di *DropIndexes) CommandMonitor(monitor *event.CommandMonitor) *... method Crypt (line 177) | func (di *DropIndexes) Crypt(crypt driver.Crypt) *DropIndexes { method Database (line 187) | func (di *DropIndexes) Database(database string) *DropIndexes { method Deployment (line 197) | func (di *DropIndexes) Deployment(deployment driver.Deployment) *DropI... method ServerSelector (line 207) | func (di *DropIndexes) ServerSelector(selector description.ServerSelec... method WriteConcern (line 217) | func (di *DropIndexes) WriteConcern(writeConcern *writeconcern.WriteCo... method ServerAPI (line 227) | func (di *DropIndexes) ServerAPI(serverAPI *driver.ServerAPIOptions) *... method Timeout (line 237) | func (di *DropIndexes) Timeout(timeout *time.Duration) *DropIndexes { method Authenticator (line 247) | func (di *DropIndexes) Authenticator(authenticator driver.Authenticato... method RawData (line 257) | func (di *DropIndexes) RawData(rawData bool) *DropIndexes { type DropIndexesResult (line 44) | type DropIndexesResult struct function buildDropIndexesResult (line 49) | func buildDropIndexesResult(response bsoncore.Document) (DropIndexesResu... function NewDropIndexes (line 68) | func NewDropIndexes(index any) *DropIndexes { FILE: x/mongo/driver/operation/drop_search_index.go type DropSearchIndex (line 23) | type DropSearchIndex struct method Result (line 70) | func (dsi *DropSearchIndex) Result() DropSearchIndexResult { return ds... method processResponse (line 72) | func (dsi *DropSearchIndex) processResponse(_ context.Context, resp bs... method Execute (line 79) | func (dsi *DropSearchIndex) Execute(ctx context.Context) error { method command (line 100) | func (dsi *DropSearchIndex) command(dst []byte, _ description.Selected... method Index (line 107) | func (dsi *DropSearchIndex) Index(index string) *DropSearchIndex { method Session (line 117) | func (dsi *DropSearchIndex) Session(session *session.Client) *DropSear... method ClusterClock (line 127) | func (dsi *DropSearchIndex) ClusterClock(clock *session.ClusterClock) ... method Collection (line 137) | func (dsi *DropSearchIndex) Collection(collection string) *DropSearchI... method CommandMonitor (line 147) | func (dsi *DropSearchIndex) CommandMonitor(monitor *event.CommandMonit... method Crypt (line 157) | func (dsi *DropSearchIndex) Crypt(crypt driver.Crypt) *DropSearchIndex { method Database (line 167) | func (dsi *DropSearchIndex) Database(database string) *DropSearchIndex { method Deployment (line 177) | func (dsi *DropSearchIndex) Deployment(deployment driver.Deployment) *... method ServerSelector (line 187) | func (dsi *DropSearchIndex) ServerSelector(selector description.Server... method ServerAPI (line 197) | func (dsi *DropSearchIndex) ServerAPI(serverAPI *driver.ServerAPIOptio... method Timeout (line 207) | func (dsi *DropSearchIndex) Timeout(timeout *time.Duration) *DropSearc... method Authenticator (line 217) | func (dsi *DropSearchIndex) Authenticator(authenticator driver.Authent... type DropSearchIndexResult (line 40) | type DropSearchIndexResult struct function buildDropSearchIndexResult (line 44) | func buildDropSearchIndexResult(response bsoncore.Document) (DropSearchI... function NewDropSearchIndex (line 63) | func NewDropSearchIndex(index string) *DropSearchIndex { FILE: x/mongo/driver/operation/end_sessions.go type EndSessions (line 22) | type EndSessions struct method processResponse (line 42) | func (es *EndSessions) processResponse(context.Context, bsoncore.Docum... method Execute (line 47) | func (es *EndSessions) Execute(ctx context.Context) error { method command (line 68) | func (es *EndSessions) command(dst []byte, _ description.SelectedServe... method SessionIDs (line 76) | func (es *EndSessions) SessionIDs(sessionIDs bsoncore.Document) *EndSe... method Session (line 86) | func (es *EndSessions) Session(session *session.Client) *EndSessions { method ClusterClock (line 96) | func (es *EndSessions) ClusterClock(clock *session.ClusterClock) *EndS... method CommandMonitor (line 106) | func (es *EndSessions) CommandMonitor(monitor *event.CommandMonitor) *... method Crypt (line 116) | func (es *EndSessions) Crypt(crypt driver.Crypt) *EndSessions { method Database (line 126) | func (es *EndSessions) Database(database string) *EndSessions { method Deployment (line 136) | func (es *EndSessions) Deployment(deployment driver.Deployment) *EndSe... method ServerSelector (line 146) | func (es *EndSessions) ServerSelector(selector description.ServerSelec... method ServerAPI (line 156) | func (es *EndSessions) ServerAPI(serverAPI *driver.ServerAPIOptions) *... method Authenticator (line 166) | func (es *EndSessions) Authenticator(authenticator driver.Authenticato... function NewEndSessions (line 36) | func NewEndSessions(sessionIDs bsoncore.Document) *EndSessions { FILE: x/mongo/driver/operation/find.go type Find (line 26) | type Find struct method Result (line 77) | func (f *Find) Result(opts driver.CursorOptions) (*driver.BatchCursor,... method processResponse (line 82) | func (f *Find) processResponse(_ context.Context, resp bsoncore.Docume... method Execute (line 92) | func (f *Find) Execute(ctx context.Context) error { method command (line 121) | func (f *Find) command(dst []byte, desc description.SelectedServer) ([... method AllowDiskUse (line 203) | func (f *Find) AllowDiskUse(allowDiskUse bool) *Find { method AllowPartialResults (line 213) | func (f *Find) AllowPartialResults(allowPartialResults bool) *Find { method AwaitData (line 223) | func (f *Find) AwaitData(awaitData bool) *Find { method BatchSize (line 233) | func (f *Find) BatchSize(batchSize int32) *Find { method Collation (line 243) | func (f *Find) Collation(collation bsoncore.Document) *Find { method Comment (line 253) | func (f *Find) Comment(comment bsoncore.Value) *Find { method Filter (line 263) | func (f *Find) Filter(filter bsoncore.Document) *Find { method Hint (line 273) | func (f *Find) Hint(hint bsoncore.Value) *Find { method Let (line 283) | func (f *Find) Let(let bsoncore.Document) *Find { method Limit (line 293) | func (f *Find) Limit(limit int64) *Find { method Max (line 303) | func (f *Find) Max(max bsoncore.Document) *Find { method Min (line 313) | func (f *Find) Min(min bsoncore.Document) *Find { method NoCursorTimeout (line 323) | func (f *Find) NoCursorTimeout(noCursorTimeout bool) *Find { method OplogReplay (line 333) | func (f *Find) OplogReplay(oplogReplay bool) *Find { method Projection (line 343) | func (f *Find) Projection(projection bsoncore.Document) *Find { method ReturnKey (line 353) | func (f *Find) ReturnKey(returnKey bool) *Find { method ShowRecordID (line 363) | func (f *Find) ShowRecordID(showRecordID bool) *Find { method SingleBatch (line 373) | func (f *Find) SingleBatch(singleBatch bool) *Find { method Skip (line 383) | func (f *Find) Skip(skip int64) *Find { method Snapshot (line 393) | func (f *Find) Snapshot(snapshot bool) *Find { method Sort (line 403) | func (f *Find) Sort(sort bsoncore.Document) *Find { method Tailable (line 413) | func (f *Find) Tailable(tailable bool) *Find { method Session (line 423) | func (f *Find) Session(session *session.Client) *Find { method ClusterClock (line 433) | func (f *Find) ClusterClock(clock *session.ClusterClock) *Find { method Collection (line 443) | func (f *Find) Collection(collection string) *Find { method CommandMonitor (line 453) | func (f *Find) CommandMonitor(monitor *event.CommandMonitor) *Find { method Crypt (line 463) | func (f *Find) Crypt(crypt driver.Crypt) *Find { method Database (line 473) | func (f *Find) Database(database string) *Find { method Deployment (line 483) | func (f *Find) Deployment(deployment driver.Deployment) *Find { method ReadConcern (line 493) | func (f *Find) ReadConcern(readConcern *readconcern.ReadConcern) *Find { method ReadPreference (line 503) | func (f *Find) ReadPreference(readPreference *readpref.ReadPref) *Find { method ServerSelector (line 513) | func (f *Find) ServerSelector(selector description.ServerSelector) *Fi... method Retry (line 524) | func (f *Find) Retry(retry driver.RetryMode) *Find { method ServerAPI (line 534) | func (f *Find) ServerAPI(serverAPI *driver.ServerAPIOptions) *Find { method Timeout (line 544) | func (f *Find) Timeout(timeout *time.Duration) *Find { method Logger (line 554) | func (f *Find) Logger(logger *logger.Logger) *Find { method Authenticator (line 564) | func (f *Find) Authenticator(authenticator driver.Authenticator) *Find { method RawData (line 574) | func (f *Find) RawData(rawData bool) *Find { method OmitMaxTimeMS (line 585) | func (f *Find) OmitMaxTimeMS(omit bool) *Find { function NewFind (line 70) | func NewFind(filter bsoncore.Document) *Find { FILE: x/mongo/driver/operation/find_and_modify.go type FindAndModify (line 26) | type FindAndModify struct method Result (line 115) | func (fam *FindAndModify) Result() FindAndModifyResult { return fam.re... method processResponse (line 117) | func (fam *FindAndModify) processResponse(_ context.Context, resp bson... method Execute (line 125) | func (fam *FindAndModify) Execute(ctx context.Context) error { method command (line 151) | func (fam *FindAndModify) command(dst []byte, desc description.Selecte... method ArrayFilters (line 223) | func (fam *FindAndModify) ArrayFilters(arrayFilters bsoncore.Array) *F... method BypassDocumentValidation (line 233) | func (fam *FindAndModify) BypassDocumentValidation(bypassDocumentValid... method Collation (line 243) | func (fam *FindAndModify) Collation(collation bsoncore.Document) *Find... method Comment (line 253) | func (fam *FindAndModify) Comment(comment bsoncore.Value) *FindAndModi... method Fields (line 263) | func (fam *FindAndModify) Fields(fields bsoncore.Document) *FindAndMod... method NewDocument (line 273) | func (fam *FindAndModify) NewDocument(newDocument bool) *FindAndModify { method Query (line 283) | func (fam *FindAndModify) Query(query bsoncore.Document) *FindAndModify { method Remove (line 293) | func (fam *FindAndModify) Remove(remove bool) *FindAndModify { method Sort (line 303) | func (fam *FindAndModify) Sort(sort bsoncore.Document) *FindAndModify { method Update (line 313) | func (fam *FindAndModify) Update(update bsoncore.Value) *FindAndModify { method Upsert (line 323) | func (fam *FindAndModify) Upsert(upsert bool) *FindAndModify { method Session (line 333) | func (fam *FindAndModify) Session(session *session.Client) *FindAndMod... method ClusterClock (line 343) | func (fam *FindAndModify) ClusterClock(clock *session.ClusterClock) *F... method Collection (line 353) | func (fam *FindAndModify) Collection(collection string) *FindAndModify { method CommandMonitor (line 363) | func (fam *FindAndModify) CommandMonitor(monitor *event.CommandMonitor... method Database (line 373) | func (fam *FindAndModify) Database(database string) *FindAndModify { method Deployment (line 383) | func (fam *FindAndModify) Deployment(deployment driver.Deployment) *Fi... method ServerSelector (line 393) | func (fam *FindAndModify) ServerSelector(selector description.ServerSe... method WriteConcern (line 403) | func (fam *FindAndModify) WriteConcern(writeConcern *writeconcern.Writ... method Retry (line 415) | func (fam *FindAndModify) Retry(retry driver.RetryMode) *FindAndModify { method Crypt (line 425) | func (fam *FindAndModify) Crypt(crypt driver.Crypt) *FindAndModify { method Hint (line 435) | func (fam *FindAndModify) Hint(hint bsoncore.Value) *FindAndModify { method ServerAPI (line 445) | func (fam *FindAndModify) ServerAPI(serverAPI *driver.ServerAPIOptions... method Let (line 455) | func (fam *FindAndModify) Let(let bsoncore.Document) *FindAndModify { method Timeout (line 465) | func (fam *FindAndModify) Timeout(timeout *time.Duration) *FindAndModi... method Authenticator (line 475) | func (fam *FindAndModify) Authenticator(authenticator driver.Authentic... method RawData (line 485) | func (fam *FindAndModify) RawData(rawData bool) *FindAndModify { method AdditionalCmd (line 495) | func (fam *FindAndModify) AdditionalCmd(d bson.D) *FindAndModify { type LastErrorObject (line 60) | type LastErrorObject struct type FindAndModifyResult (line 68) | type FindAndModifyResult struct function buildFindAndModifyResult (line 75) | func buildFindAndModifyResult(response bsoncore.Document) (FindAndModify... function NewFindAndModify (line 108) | func NewFindAndModify(query bsoncore.Document) *FindAndModify { FILE: x/mongo/driver/operation/hello.go constant maxClientMetadataSize (line 34) | maxClientMetadataSize = 512 constant driverName (line 36) | driverName = "mongo-go-driver" type Hello (line 39) | type Hello struct method AppName (line 67) | func (h *Hello) AppName(appname string) *Hello { method ClusterClock (line 73) | func (h *Hello) ClusterClock(clock *session.ClusterClock) *Hello { method Compressors (line 83) | func (h *Hello) Compressors(compressors []string) *Hello { method SASLSupportedMechs (line 90) | func (h *Hello) SASLSupportedMechs(username string) *Hello { method Deployment (line 96) | func (h *Hello) Deployment(d driver.Deployment) *Hello { method SpeculativeAuthenticate (line 102) | func (h *Hello) SpeculativeAuthenticate(doc bsoncore.Document) *Hello { method TopologyVersion (line 108) | func (h *Hello) TopologyVersion(tv *description.TopologyVersion) *Hello { method MaxAwaitTimeMS (line 114) | func (h *Hello) MaxAwaitTimeMS(awaitTime int64) *Hello { method ServerAPI (line 120) | func (h *Hello) ServerAPI(serverAPI *driver.ServerAPIOptions) *Hello { method LoadBalanced (line 126) | func (h *Hello) LoadBalanced(lb bool) *Hello { method OuterLibraryName (line 132) | func (h *Hello) OuterLibraryName(name string) *Hello { method OuterLibraryVersion (line 140) | func (h *Hello) OuterLibraryVersion(version string) *Hello { method OuterLibraryPlatform (line 148) | func (h *Hello) OuterLibraryPlatform(platform string) *Hello { method Result (line 155) | func (h *Hello) Result(addr address.Address) description.Server { method handshakeCommand (line 546) | func (h *Hello) handshakeCommand(dst []byte, desc description.Selected... method command (line 576) | func (h *Hello) command(dst []byte, desc description.SelectedServer) (... method Execute (line 607) | func (h *Hello) Execute(ctx context.Context) error { method StreamResponse (line 616) | func (h *Hello) StreamResponse(ctx context.Context, conn *mnet.Connect... method createOperation (line 628) | func (h *Hello) createOperation() driver.Operation { method GetHandshakeInformation (line 651) | func (h *Hello) GetHandshakeInformation(ctx context.Context, _ address... method FinishHandshake (line 696) | func (h *Hello) FinishHandshake(context.Context, *mnet.Connection) err... method OmitMaxTimeMS (line 702) | func (h *Hello) OmitMaxTimeMS(val bool) *Hello { method Authenticator (line 711) | func (h *Hello) Authenticator(authenticator driver.Authenticator) *Hel... function NewHello (line 64) | func NewHello() *Hello { return &Hello{} } constant dockerEnvPath (line 159) | dockerEnvPath = "/.dockerenv" constant runtimeNameDocker (line 163) | runtimeNameDocker = "docker" constant orchestratorNameK8s (line 166) | orchestratorNameK8s = "kubernetes" function getFaasEnvName (line 175) | func getFaasEnvName() string { type containerInfo (line 234) | type containerInfo struct function getContainerEnvInfo (line 242) | func getContainerEnvInfo() *containerInfo { function appendClientAppName (line 262) | func appendClientAppName(dst []byte, name string) ([]byte, error) { function appendClientDriver (line 278) | func appendClientDriver(dst []byte, outerLibraryName, outerLibraryVersio... function appendClientEnv (line 301) | func appendClientEnv(dst []byte, omitNonName, omitDoc bool) ([]byte, err... function appendClientOS (line 399) | func appendClientOS(dst []byte, omitNonType bool) ([]byte, error) { function appendClientPlatform (line 415) | func appendClientPlatform(dst []byte, outerLibraryPlatform string) []byte { function encodeClientMetadata (line 458) | func encodeClientMetadata(h *Hello, maxLen int) ([]byte, error) { function isLegacyHandshake (line 624) | func isLegacyHandshake(srvAPI *driver.ServerAPIOptions, loadbalanced boo... FILE: x/mongo/driver/operation/hello_test.go function assertDocsEqual (line 23) | func assertDocsEqual(t *testing.T, got bsoncore.Document, want []byte) { function encodeWithCallback (line 37) | func encodeWithCallback(t *testing.T, cb func(int, []byte) ([]byte, erro... function clearTestEnv (line 58) | func clearTestEnv(t *testing.T) { function TestAppendClientName (line 73) | func TestAppendClientName(t *testing.T) { function TestAppendClientDriver (line 111) | func TestAppendClientDriver(t *testing.T) { function TestAppendClientEnv (line 153) | func TestAppendClientEnv(t *testing.T) { function TestAppendClientOS (line 322) | func TestAppendClientOS(t *testing.T) { function TestAppendClientPlatform (line 360) | func TestAppendClientPlatform(t *testing.T) { function TestEncodeClientMetadata (line 399) | func TestEncodeClientMetadata(t *testing.T) { function TestParseFaasEnvName (line 603) | func TestParseFaasEnvName(t *testing.T) { function BenchmarkClientMetadata (line 671) | func BenchmarkClientMetadata(b *testing.B) { function BenchmarkClientMetadtaLargeEnv (line 685) | func BenchmarkClientMetadtaLargeEnv(b *testing.B) { function FuzzEncodeClientMetadata (line 708) | func FuzzEncodeClientMetadata(f *testing.F) { FILE: x/mongo/driver/operation/list_collections.go type ListCollections (line 24) | type ListCollections struct method Result (line 53) | func (lc *ListCollections) Result(opts driver.CursorOptions) (*driver.... method processResponse (line 59) | func (lc *ListCollections) processResponse(_ context.Context, resp bso... method Execute (line 69) | func (lc *ListCollections) Execute(ctx context.Context) error { method command (line 95) | func (lc *ListCollections) command(dst []byte, desc description.Select... method Filter (line 122) | func (lc *ListCollections) Filter(filter bsoncore.Document) *ListColle... method NameOnly (line 132) | func (lc *ListCollections) NameOnly(nameOnly bool) *ListCollections { method AuthorizedCollections (line 143) | func (lc *ListCollections) AuthorizedCollections(authorizedCollections... method Session (line 153) | func (lc *ListCollections) Session(session *session.Client) *ListColle... method ClusterClock (line 163) | func (lc *ListCollections) ClusterClock(clock *session.ClusterClock) *... method CommandMonitor (line 173) | func (lc *ListCollections) CommandMonitor(monitor *event.CommandMonito... method Crypt (line 183) | func (lc *ListCollections) Crypt(crypt driver.Crypt) *ListCollections { method Database (line 193) | func (lc *ListCollections) Database(database string) *ListCollections { method Deployment (line 203) | func (lc *ListCollections) Deployment(deployment driver.Deployment) *L... method ReadPreference (line 213) | func (lc *ListCollections) ReadPreference(readPreference *readpref.Rea... method ServerSelector (line 223) | func (lc *ListCollections) ServerSelector(selector description.ServerS... method Retry (line 234) | func (lc *ListCollections) Retry(retry driver.RetryMode) *ListCollecti... method BatchSize (line 244) | func (lc *ListCollections) BatchSize(batchSize int32) *ListCollections { method ServerAPI (line 254) | func (lc *ListCollections) ServerAPI(serverAPI *driver.ServerAPIOption... method Timeout (line 264) | func (lc *ListCollections) Timeout(timeout *time.Duration) *ListCollec... method Authenticator (line 274) | func (lc *ListCollections) Authenticator(authenticator driver.Authenti... method RawData (line 284) | func (lc *ListCollections) RawData(rawData bool) *ListCollections { function NewListCollections (line 46) | func NewListCollections(filter bsoncore.Document) *ListCollections { FILE: x/mongo/driver/operation/list_databases.go type ListDatabases (line 26) | type ListDatabases struct method Result (line 136) | func (ld *ListDatabases) Result() ListDatabasesResult { return ld.resu... method processResponse (line 138) | func (ld *ListDatabases) processResponse(_ context.Context, resp bsonc... method Execute (line 146) | func (ld *ListDatabases) Execute(ctx context.Context) error { method command (line 172) | func (ld *ListDatabases) command(dst []byte, _ description.SelectedSer... method Filter (line 188) | func (ld *ListDatabases) Filter(filter bsoncore.Document) *ListDatabas... method NameOnly (line 198) | func (ld *ListDatabases) NameOnly(nameOnly bool) *ListDatabases { method AuthorizedDatabases (line 208) | func (ld *ListDatabases) AuthorizedDatabases(authorizedDatabases bool)... method Session (line 218) | func (ld *ListDatabases) Session(session *session.Client) *ListDatabas... method ClusterClock (line 228) | func (ld *ListDatabases) ClusterClock(clock *session.ClusterClock) *Li... method CommandMonitor (line 238) | func (ld *ListDatabases) CommandMonitor(monitor *event.CommandMonitor)... method Database (line 248) | func (ld *ListDatabases) Database(database string) *ListDatabases { method Deployment (line 258) | func (ld *ListDatabases) Deployment(deployment driver.Deployment) *Lis... method ReadPreference (line 268) | func (ld *ListDatabases) ReadPreference(readPreference *readpref.ReadP... method ServerSelector (line 278) | func (ld *ListDatabases) ServerSelector(selector description.ServerSel... method Retry (line 289) | func (ld *ListDatabases) Retry(retry driver.RetryMode) *ListDatabases { method Crypt (line 299) | func (ld *ListDatabases) Crypt(crypt driver.Crypt) *ListDatabases { method ServerAPI (line 309) | func (ld *ListDatabases) ServerAPI(serverAPI *driver.ServerAPIOptions)... method Timeout (line 319) | func (ld *ListDatabases) Timeout(timeout *time.Duration) *ListDatabases { method Authenticator (line 329) | func (ld *ListDatabases) Authenticator(authenticator driver.Authentica... type ListDatabasesResult (line 47) | type ListDatabasesResult struct type databaseRecord (line 54) | type databaseRecord struct function buildListDatabasesResult (line 60) | func buildListDatabasesResult(response bsoncore.Document) (ListDatabases... function NewListDatabases (line 129) | func NewListDatabases(filter bsoncore.Document) *ListDatabases { FILE: x/mongo/driver/operation/list_indexes.go type ListIndexes (line 23) | type ListIndexes struct method Result (line 48) | func (li *ListIndexes) Result(opts driver.CursorOptions) (*driver.Batc... method processResponse (line 56) | func (li *ListIndexes) processResponse(_ context.Context, resp bsoncor... method Execute (line 66) | func (li *ListIndexes) Execute(ctx context.Context) error { method command (line 92) | func (li *ListIndexes) command(dst []byte, desc description.SelectedSe... method BatchSize (line 110) | func (li *ListIndexes) BatchSize(batchSize int32) *ListIndexes { method Session (line 120) | func (li *ListIndexes) Session(session *session.Client) *ListIndexes { method ClusterClock (line 130) | func (li *ListIndexes) ClusterClock(clock *session.ClusterClock) *List... method Collection (line 140) | func (li *ListIndexes) Collection(collection string) *ListIndexes { method CommandMonitor (line 150) | func (li *ListIndexes) CommandMonitor(monitor *event.CommandMonitor) *... method Database (line 160) | func (li *ListIndexes) Database(database string) *ListIndexes { method Deployment (line 170) | func (li *ListIndexes) Deployment(deployment driver.Deployment) *ListI... method ServerSelector (line 180) | func (li *ListIndexes) ServerSelector(selector description.ServerSelec... method Retry (line 191) | func (li *ListIndexes) Retry(retry driver.RetryMode) *ListIndexes { method Crypt (line 201) | func (li *ListIndexes) Crypt(crypt driver.Crypt) *ListIndexes { method ServerAPI (line 211) | func (li *ListIndexes) ServerAPI(serverAPI *driver.ServerAPIOptions) *... method Timeout (line 221) | func (li *ListIndexes) Timeout(timeout *time.Duration) *ListIndexes { method Authenticator (line 231) | func (li *ListIndexes) Authenticator(authenticator driver.Authenticato... method RawData (line 241) | func (li *ListIndexes) RawData(rawData bool) *ListIndexes { function NewListIndexes (line 43) | func NewListIndexes() *ListIndexes { FILE: x/mongo/driver/operation/update.go type Update (line 27) | type Update struct method Result (line 126) | func (u *Update) Result() UpdateResult { return u.result } method processResponse (line 128) | func (u *Update) processResponse(_ context.Context, resp bsoncore.Docu... method Execute (line 143) | func (u *Update) Execute(ctx context.Context) error { method command (line 175) | func (u *Update) command(dst []byte, desc description.SelectedServer) ... method BypassDocumentValidation (line 221) | func (u *Update) BypassDocumentValidation(bypassDocumentValidation boo... method Hint (line 232) | func (u *Update) Hint(hint bool) *Update { method ArrayFilters (line 242) | func (u *Update) ArrayFilters(arrayFilters bool) *Update { method Ordered (line 253) | func (u *Update) Ordered(ordered bool) *Update { method Updates (line 265) | func (u *Update) Updates(updates ...bsoncore.Document) *Update { method Session (line 275) | func (u *Update) Session(session *session.Client) *Update { method ClusterClock (line 285) | func (u *Update) ClusterClock(clock *session.ClusterClock) *Update { method Collection (line 295) | func (u *Update) Collection(collection string) *Update { method CommandMonitor (line 305) | func (u *Update) CommandMonitor(monitor *event.CommandMonitor) *Update { method Comment (line 315) | func (u *Update) Comment(comment bsoncore.Value) *Update { method Database (line 325) | func (u *Update) Database(database string) *Update { method Deployment (line 335) | func (u *Update) Deployment(deployment driver.Deployment) *Update { method ServerSelector (line 345) | func (u *Update) ServerSelector(selector description.ServerSelector) *... method WriteConcern (line 355) | func (u *Update) WriteConcern(writeConcern *writeconcern.WriteConcern)... method Retry (line 367) | func (u *Update) Retry(retry driver.RetryMode) *Update { method Crypt (line 377) | func (u *Update) Crypt(crypt driver.Crypt) *Update { method ServerAPI (line 387) | func (u *Update) ServerAPI(serverAPI *driver.ServerAPIOptions) *Update { method Let (line 397) | func (u *Update) Let(let bsoncore.Document) *Update { method Timeout (line 407) | func (u *Update) Timeout(timeout *time.Duration) *Update { method Logger (line 417) | func (u *Update) Logger(logger *logger.Logger) *Update { method Authenticator (line 427) | func (u *Update) Authenticator(authenticator driver.Authenticator) *Up... method RawData (line 437) | func (u *Update) RawData(rawData bool) *Update { method AdditionalCmd (line 447) | func (u *Update) AdditionalCmd(d bson.D) *Update { type Upsert (line 55) | type Upsert struct type UpdateResult (line 61) | type UpdateResult struct function buildUpdateResult (line 70) | func buildUpdateResult(response bsoncore.Document) (UpdateResult, error) { function NewUpdate (line 119) | func NewUpdate(updates ...bsoncore.Document) *Update { FILE: x/mongo/driver/operation/update_search_index.go type UpdateSearchIndex (line 23) | type UpdateSearchIndex struct method Result (line 72) | func (usi *UpdateSearchIndex) Result() UpdateSearchIndexResult { retur... method processResponse (line 74) | func (usi *UpdateSearchIndex) processResponse(_ context.Context, resp ... method Execute (line 81) | func (usi *UpdateSearchIndex) Execute(ctx context.Context) error { method command (line 102) | func (usi *UpdateSearchIndex) command(dst []byte, _ description.Select... method Index (line 110) | func (usi *UpdateSearchIndex) Index(name string) *UpdateSearchIndex { method Definition (line 120) | func (usi *UpdateSearchIndex) Definition(definition bsoncore.Document)... method Session (line 130) | func (usi *UpdateSearchIndex) Session(session *session.Client) *Update... method ClusterClock (line 140) | func (usi *UpdateSearchIndex) ClusterClock(clock *session.ClusterClock... method Collection (line 150) | func (usi *UpdateSearchIndex) Collection(collection string) *UpdateSea... method CommandMonitor (line 160) | func (usi *UpdateSearchIndex) CommandMonitor(monitor *event.CommandMon... method Crypt (line 170) | func (usi *UpdateSearchIndex) Crypt(crypt driver.Crypt) *UpdateSearchI... method Database (line 180) | func (usi *UpdateSearchIndex) Database(database string) *UpdateSearchI... method Deployment (line 190) | func (usi *UpdateSearchIndex) Deployment(deployment driver.Deployment)... method ServerSelector (line 200) | func (usi *UpdateSearchIndex) ServerSelector(selector description.Serv... method ServerAPI (line 210) | func (usi *UpdateSearchIndex) ServerAPI(serverAPI *driver.ServerAPIOpt... method Timeout (line 220) | func (usi *UpdateSearchIndex) Timeout(timeout *time.Duration) *UpdateS... method Authenticator (line 230) | func (usi *UpdateSearchIndex) Authenticator(authenticator driver.Authe... type UpdateSearchIndexResult (line 41) | type UpdateSearchIndexResult struct function buildUpdateSearchIndexResult (line 45) | func buildUpdateSearchIndexResult(response bsoncore.Document) (UpdateSea... function NewUpdateSearchIndex (line 64) | func NewUpdateSearchIndex(index string, definition bsoncore.Document) *U... FILE: x/mongo/driver/operation_exhaust.go method ExecuteExhaust (line 18) | func (op Operation) ExecuteExhaust(ctx context.Context, conn *mnet.Conne... FILE: x/mongo/driver/operation_test.go function noerr (line 36) | func noerr(t *testing.T, err error) { function compareErrors (line 44) | func compareErrors(err1, err2 error) bool { function TestOperation (line 60) | func TestOperation(t *testing.T) { function createExhaustServerResponse (line 678) | func createExhaustServerResponse(response bsoncore.Document, moreToCome ... function assertExhaustAllowedSet (line 691) | func assertExhaustAllowedSet(t *testing.T, wm []byte, expected bool) { type mockDeployment (line 706) | type mockDeployment struct method SelectServer (line 719) | func (m *mockDeployment) SelectServer(_ context.Context, desc descript... method GetServerSelectionTimeout (line 725) | func (m *mockDeployment) GetServerSelectionTimeout() time.Duration { method Kind (line 729) | func (m *mockDeployment) Kind() description.TopologyKind { return m.re... type mockServerSelector (line 731) | type mockServerSelector struct method SelectServer (line 733) | func (m *mockServerSelector) SelectServer(description.Topology, []desc... method String (line 737) | func (m *mockServerSelector) String() string { type mockServer (line 741) | type mockServer struct method Connection (line 747) | func (ms mockServer) Connection(context.Context) (*mnet.Connection, er... method RTTMonitor (line 748) | func (ms mockServer) RTTMonitor() RTTMonitor ... type mockRTTMonitor (line 750) | type mockRTTMonitor struct method EWMA (line 756) | func (mrm mockRTTMonitor) EWMA() time.Duration { return mrm.ewma } method Min (line 757) | func (mrm mockRTTMonitor) Min() time.Duration { return mrm.min } method Stats (line 758) | func (mrm mockRTTMonitor) Stats() string { return mrm.stats } type mockConnection (line 760) | type mockConnection struct method Description (line 777) | func (m *mockConnection) Description() description.Server { return m.r... method Close (line 778) | func (m *mockConnection) Close() error { return m.r... method ID (line 779) | func (m *mockConnection) ID() string { return m.r... method ServerConnectionID (line 780) | func (m *mockConnection) ServerConnectionID() *int64 { return m.r... method Address (line 781) | func (m *mockConnection) Address() address.Address { return m.r... method SupportsStreaming (line 782) | func (m *mockConnection) SupportsStreaming() bool { return m.r... method CurrentlyStreaming (line 783) | func (m *mockConnection) CurrentlyStreaming() bool { return m.r... method SetStreaming (line 784) | func (m *mockConnection) SetStreaming(streaming bool) { m.rStreami... method Stale (line 785) | func (m *mockConnection) Stale() bool { return fal... method OIDCTokenGenID (line 786) | func (m *mockConnection) OIDCTokenGenID() uint64 { return 0 } method SetOIDCTokenGenID (line 787) | func (m *mockConnection) SetOIDCTokenGenID(uint64) {} method DriverConnectionID (line 789) | func (m *mockConnection) DriverConnectionID() int64 { return 0 } method Write (line 791) | func (m *mockConnection) Write(_ context.Context, wm []byte) error { method Read (line 796) | func (m *mockConnection) Read(_ context.Context) ([]byte, error) { type retryableError (line 800) | type retryableError struct method Retryable (line 804) | func (retryableError) Retryable() bool { return true } type mockRetryServer (line 810) | type mockRetryServer struct method Connection (line 816) | func (ms *mockRetryServer) Connection(ctx context.Context) (*mnet.Conn... method RTTMonitor (line 827) | func (ms *mockRetryServer) RTTMonitor() RTTMonitor { function TestRetry (line 831) | func TestRetry(t *testing.T) { function TestDecodeOpReply (line 864) | func TestDecodeOpReply(t *testing.T) { function TestMarshalBSONWriteConcern (line 883) | func TestMarshalBSONWriteConcern(t *testing.T) { function BenchmarkRedactStartedInformationCmd (line 947) | func BenchmarkRedactStartedInformationCmd(b *testing.B) { FILE: x/mongo/driver/serverapioptions.go constant TestServerAPIVersion (line 11) | TestServerAPIVersion = "1" type ServerAPIOptions (line 15) | type ServerAPIOptions struct method SetStrict (line 27) | func (s *ServerAPIOptions) SetStrict(strict bool) *ServerAPIOptions { method SetDeprecationErrors (line 33) | func (s *ServerAPIOptions) SetDeprecationErrors(deprecationErrors bool... function NewServerAPIOptions (line 22) | func NewServerAPIOptions(serverAPIVersion string) *ServerAPIOptions { FILE: x/mongo/driver/session/client_session.go type TransactionState (line 49) | type TransactionState method String (line 63) | func (s TransactionState) String() string { constant None (line 53) | None TransactionState = iota constant Starting (line 54) | Starting constant InProgress (line 55) | InProgress constant Committed (line 56) | Committed constant Aborted (line 57) | Aborted constant defaultWriteConcernTimeout (line 60) | defaultWriteConcernTimeout = 10_000 * time.Millisecond type LoadBalancedTransactionConnection (line 85) | type LoadBalancedTransactionConnection interface type Client (line 92) | type Client struct method SetServer (line 230) | func (c *Client) SetServer() error { method AdvanceClusterTime (line 237) | func (c *Client) AdvanceClusterTime(clusterTime bson.Raw) error { method AdvanceOperationTime (line 246) | func (c *Client) AdvanceOperationTime(opTime *bson.Timestamp) error { method UpdateUseTime (line 268) | func (c *Client) UpdateUseTime() error { method UpdateRecoveryToken (line 277) | func (c *Client) UpdateRecoveryToken(response bson.Raw) { method UpdateSnapshotTime (line 292) | func (c *Client) UpdateSnapshotTime(response bsoncore.Document) { method ClearPinnedResources (line 320) | func (c *Client) ClearPinnedResources() error { method unpinConnection (line 341) | func (c *Client) unpinConnection() error { method EndSession (line 356) | func (c *Client) EndSession() { method TransactionInProgress (line 371) | func (c *Client) TransactionInProgress() bool { method TransactionStarting (line 376) | func (c *Client) TransactionStarting() bool { method TransactionRunning (line 382) | func (c *Client) TransactionRunning() bool { method TransactionCommitted (line 387) | func (c *Client) TransactionCommitted() bool { method CheckStartTransaction (line 393) | func (c *Client) CheckStartTransaction() error { method StartTransaction (line 405) | func (c *Client) StartTransaction(opts *TransactionOptions) error { method CheckCommitTransaction (line 443) | func (c *Client) CheckCommitTransaction() error { method CommitTransaction (line 455) | func (c *Client) CommitTransaction() error { method UpdateCommitTransactionWriteConcern (line 474) | func (c *Client) UpdateCommitTransactionWriteConcern() { method CheckAbortTransaction (line 484) | func (c *Client) CheckAbortTransaction() error { method AbortTransaction (line 498) | func (c *Client) AbortTransaction() error { method StartCommand (line 509) | func (c *Client) StartCommand() error { method ApplyCommand (line 524) | func (c *Client) ApplyCommand(desc description.Server) error { method clearTransactionOpts (line 544) | func (c *Client) clearTransactionOpts() error { function getClusterTime (line 131) | func getClusterTime(clusterTime bson.Raw) (uint32, uint32) { function MaxClusterTime (line 150) | func MaxClusterTime(ct1, ct2 bson.Raw) bson.Raw { function NewImplicitClientSession (line 169) | func NewImplicitClientSession(pool *Pool, clientID uuid.UUID) *Client { function NewClientSession (line 182) | func NewClientSession(pool *Pool, clientID uuid.UUID, opts ...*ClientOpt... FILE: x/mongo/driver/session/client_session_test.go function compareOperationTimes (line 29) | func compareOperationTimes(t *testing.T, expected *bson.Timestamp, actua... function TestClientSession (line 39) | func TestClientSession(t *testing.T) { function TestImplicitClientSession (line 291) | func TestImplicitClientSession(t *testing.T) { FILE: x/mongo/driver/session/cluster_clock.go type ClusterClock (line 16) | type ClusterClock struct method GetClusterTime (line 22) | func (cc *ClusterClock) GetClusterTime() bson.Raw { method AdvanceClusterTime (line 32) | func (cc *ClusterClock) AdvanceClusterTime(clusterTime bson.Raw) { FILE: x/mongo/driver/session/cluster_clock_test.go function TestClusterClock (line 16) | func TestClusterClock(t *testing.T) { FILE: x/mongo/driver/session/options.go type ClientOptions (line 17) | type ClientOptions struct type TransactionOptions (line 27) | type TransactionOptions struct function mergeClientOptions (line 33) | func mergeClientOptions(opts ...*ClientOptions) *ClientOptions { FILE: x/mongo/driver/session/server_session.go type Server (line 18) | type Server struct method expired (line 27) | func (ss *Server) expired(topoDesc topologyDescription) bool { method updateUseTime (line 43) | func (ss *Server) updateUseTime() { method IncrementTxnNumber (line 64) | func (ss *Server) IncrementTxnNumber() { method MarkDirty (line 69) | func (ss *Server) MarkDirty() { function newServerSession (line 47) | func newServerSession() (*Server, error) { constant UUIDSubtype (line 74) | UUIDSubtype byte = 4 FILE: x/mongo/driver/session/server_session_test.go function TestServerSession (line 17) | func TestServerSession(t *testing.T) { FILE: x/mongo/driver/session/session_pool.go type Node (line 18) | type Node struct type topologyDescription (line 26) | type topologyDescription struct type Pool (line 32) | type Pool struct method createServerSession (line 43) | func (p *Pool) createServerSession() (*Server, error) { method updateTimeout (line 63) | func (p *Pool) updateTimeout() { method GetSession (line 76) | func (p *Pool) GetSession() (*Server, error) { method ReturnSession (line 115) | func (p *Pool) ReturnSession(ss *Server) { method IDSlice (line 164) | func (p *Pool) IDSlice() []bsoncore.Document { method String (line 177) | func (p *Pool) String() string { method CheckedOut (line 190) | func (p *Pool) CheckedOut() int64 { function NewPool (line 54) | func NewPool(descChan <-chan description.Topology) *Pool { FILE: x/mongo/driver/session/session_pool_test.go function TestSessionPool (line 17) | func TestSessionPool(t *testing.T) { FILE: x/mongo/driver/testdata/compression.go type CompressionOpts (line 22) | type CompressionOpts struct function getZstdEncoder (line 31) | func getZstdEncoder(level zstd.EncoderLevel) (*zstd.Encoder, error) { function getZlibEncoder (line 45) | func getZlibEncoder(level int) (*zlibEncoder, error) { type zlibEncoder (line 59) | type zlibEncoder struct method Encode (line 65) | func (e *zlibEncoder) Encode(dst, src []byte) ([]byte, error) { function CompressPayload (line 85) | func CompressPayload(in []byte, opts CompressionOpts) ([]byte, error) { function DecompressPayload (line 109) | func DecompressPayload(in []byte, opts CompressionOpts) (uncompressed []... FILE: x/mongo/driver/topology/CMAP_spec_test.go type cmapEvent (line 65) | type cmapEvent struct type poolOptions (line 73) | type poolOptions struct type cmapTestFile (line 82) | type cmapTestFile struct type cmapTestError (line 95) | type cmapTestError struct type simThread (line 101) | type simThread struct type testInfo (line 107) | type testInfo struct function TestCMAPSpec (line 119) | func TestCMAPSpec(t *testing.T) { function runCMAPTest (line 127) | func runCMAPTest(t *testing.T, testFileName string) { function checkEvents (line 279) | func checkEvents(t *testing.T, expectedEvents []cmapEvent, actualEvents ... function nextValidEvent (line 348) | func nextValidEvent(t *testing.T, events chan *event.PoolEvent, ignoreEv... function runOperation (line 366) | func runOperation(t *testing.T, operation map[string]any, testInfo *test... function runOperationInThread (line 401) | func runOperationInThread(t *testing.T, operation map[string]any, testIn... FILE: x/mongo/driver/topology/cmap_prose_test.go function TestCMAPProse (line 22) | func TestCMAPProse(t *testing.T) { function createTestPool (line 267) | func createTestPool(t *testing.T, cfg poolConfig, opts ...ConnectionOpti... function checkoutConnections (line 276) | func checkoutConnections(t *testing.T, p *pool, numConns int) []*connect... FILE: x/mongo/driver/topology/connection.go constant connDisconnected (line 35) | connDisconnected int64 = iota constant connConnected (line 36) | connConnected constant connInitialized (line 37) | connInitialized function nextConnectionID (line 48) | func nextConnectionID() uint64 { return atomic.AddUint64(&globalConnecti... function wrapConnectionError (line 50) | func wrapConnectionError(connErr ConnectionError) error { type connection (line 74) | type connection struct method setGenerationNumber (line 142) | func (c *connection) setGenerationNumber() { method hasGenerationNumber (line 150) | func (c *connection) hasGenerationNumber() bool { method connect (line 197) | func (c *connection) connect(ctx context.Context) (err error) { method wait (line 336) | func (c *connection) wait() { method closeConnectContext (line 342) | func (c *connection) closeConnectContext() { method cancellationListenerCallback (line 348) | func (c *connection) cancellationListenerCallback() { method writeWireMessage (line 377) | func (c *connection) writeWireMessage(ctx context.Context, wm []byte) ... method write (line 405) | func (c *connection) write(ctx context.Context, wm []byte) (err error) { method readWireMessage (line 423) | func (c *connection) readWireMessage(ctx context.Context) ([]byte, err... method parseWmSizeBytes (line 455) | func (c *connection) parseWmSizeBytes(wmSizeBytes [4]byte) (int32, err... method read (line 475) | func (c *connection) read(ctx context.Context) (bytesRead []byte, errM... method close (line 530) | func (c *connection) close() error { method closed (line 551) | func (c *connection) closed() bool { method idleTimeoutExpired (line 555) | func (c *connection) idleTimeoutExpired() bool { method bumpIdleStart (line 564) | func (c *connection) bumpIdleStart() { method setCanStream (line 570) | func (c *connection) setCanStream(canStream bool) { method setStreaming (line 574) | func (c *connection) setStreaming(streaming bool) { method getCurrentlyStreaming (line 578) | func (c *connection) getCurrentlyStreaming() bool { method previousCanceled (line 582) | func (c *connection) previousCanceled() bool { method ID (line 590) | func (c *connection) ID() string { method ServerConnectionID (line 594) | func (c *connection) ServerConnectionID() *int64 { method DriverConnectionID (line 599) | func (c *connection) DriverConnectionID() int64 { method OIDCTokenGenID (line 603) | func (c *connection) OIDCTokenGenID() uint64 { method SetOIDCTokenGenID (line 607) | func (c *connection) SetOIDCTokenGenID(genID uint64) { function newConnection (line 115) | func newConnection(addr address.Address, opts ...ConnectionOption) *conn... function configureTLS (line 161) | func configureTLS(ctx context.Context, function transformNetworkError (line 352) | func transformNetworkError(ctx context.Context, originalError error, con... type initConnection (line 614) | type initConnection struct method Description (line 622) | func (c initConnection) Description() description.Server { method Close (line 628) | func (c initConnection) Close() error { return nil } method ID (line 629) | func (c initConnection) ID() string { return c.id } method Address (line 630) | func (c initConnection) Address() address.Address { return c.addr } method Stale (line 631) | func (c initConnection) Stale() bool { return false } method LocalAddress (line 632) | func (c initConnection) LocalAddress() address.Address { method Write (line 639) | func (c initConnection) Write(ctx context.Context, wm []byte) error { method Read (line 643) | func (c initConnection) Read(ctx context.Context) ([]byte, error) { method SetStreaming (line 647) | func (c initConnection) SetStreaming(streaming bool) { method CurrentlyStreaming (line 651) | func (c initConnection) CurrentlyStreaming() bool { method SupportsStreaming (line 655) | func (c initConnection) SupportsStreaming() bool { type Connection (line 662) | type Connection struct method Write (line 685) | func (c *Connection) Write(ctx context.Context, wm []byte) error { method Read (line 696) | func (c *Connection) Read(ctx context.Context) ([]byte, error) { method CompressWireMessage (line 708) | func (c *Connection) CompressWireMessage(src, dst []byte) ([]byte, err... method Description (line 739) | func (c *Connection) Description() description.Server { method Close (line 750) | func (c *Connection) Close() error { method Expire (line 761) | func (c *Connection) Expire() error { method cleanupReferences (line 772) | func (c *Connection) cleanupReferences() error { method Alive (line 787) | func (c *Connection) Alive() bool { method ID (line 792) | func (c *Connection) ID() string { method ServerConnectionID (line 802) | func (c *Connection) ServerConnectionID() *int64 { method Stale (line 810) | func (c *Connection) Stale() bool { method Address (line 817) | func (c *Connection) Address() address.Address { method LocalAddress (line 827) | func (c *Connection) LocalAddress() address.Address { method PinToCursor (line 837) | func (c *Connection) PinToCursor() error { method PinToTransaction (line 842) | func (c *Connection) PinToTransaction() error { method pin (line 846) | func (c *Connection) pin(reason string, updatePoolFn, cleanupPoolFn fu... method UnpinFromCursor (line 864) | func (c *Connection) UnpinFromCursor() error { method UnpinFromTransaction (line 869) | func (c *Connection) UnpinFromTransaction() error { method unpin (line 873) | func (c *Connection) unpin(reason string) error { method DriverConnectionID (line 889) | func (c *Connection) DriverConnectionID() int64 { method OIDCTokenGenID (line 894) | func (c *Connection) OIDCTokenGenID() uint64 { method SetOIDCTokenGenID (line 899) | func (c *Connection) SetOIDCTokenGenID(genID uint64) { FILE: x/mongo/driver/topology/connection_errors_test.go function TestConnectionErrors (line 23) | func TestConnectionErrors(t *testing.T) { FILE: x/mongo/driver/topology/connection_options.go type Dialer (line 24) | type Dialer interface type DialerFunc (line 29) | type DialerFunc method DialContext (line 32) | func (df DialerFunc) DialContext(ctx context.Context, network, address... type generationNumberFn (line 48) | type generationNumberFn type connectionConfig (line 50) | type connectionConfig struct function newConnectionConfig (line 67) | func newConnectionConfig(opts ...ConnectionOption) *connectionConfig { type ConnectionOption (line 91) | type ConnectionOption function withTLSConnectionSource (line 93) | func withTLSConnectionSource(fn func(tlsConnectionSource) tlsConnectionS... function WithCompressors (line 100) | func WithCompressors(fn func([]string) []string) ConnectionOption { function WithDialer (line 107) | func WithDialer(fn func(Dialer) Dialer) ConnectionOption { function WithHandshaker (line 115) | func WithHandshaker(fn func(Handshaker) Handshaker) ConnectionOption { function WithIdleTimeout (line 122) | func WithIdleTimeout(fn func(time.Duration) time.Duration) ConnectionOpt... function WithTLSConfig (line 129) | func WithTLSConfig(fn func(*tls.Config) *tls.Config) ConnectionOption { function WithHTTPClient (line 136) | func WithHTTPClient(fn func(*http.Client) *http.Client) ConnectionOption { function WithMonitor (line 143) | func WithMonitor(fn func(*event.CommandMonitor) *event.CommandMonitor) C... function WithZlibLevel (line 150) | func WithZlibLevel(fn func(*int) *int) ConnectionOption { function WithZstdLevel (line 157) | func WithZstdLevel(fn func(*int) *int) ConnectionOption { function WithOCSPCache (line 164) | func WithOCSPCache(fn func(ocsp.Cache) ocsp.Cache) ConnectionOption { function WithDisableOCSPEndpointCheck (line 173) | func WithDisableOCSPEndpointCheck(fn func(bool) bool) ConnectionOption { function WithConnectionLoadBalanced (line 180) | func WithConnectionLoadBalanced(fn func(bool) bool) ConnectionOption { function withGenerationNumberFn (line 186) | func withGenerationNumberFn(fn func(generationNumberFn) generationNumber... FILE: x/mongo/driver/topology/connection_test.go type testHandshaker (line 31) | type testHandshaker struct method GetHandshakeInformation (line 37) | func (th *testHandshaker) GetHandshakeInformation(ctx context.Context,... method FinishHandshake (line 45) | func (th *testHandshaker) FinishHandshake(ctx context.Context, conn *m... function TestConnection (line 54) | func TestConnection(t *testing.T) { function BenchmarkConnection (line 841) | func BenchmarkConnection(b *testing.B) { type cancellationTestNetConn (line 876) | type cancellationTestNetConn struct method Read (line 910) | func (c *cancellationTestNetConn) Read(b []byte) (int, error) { method Write (line 922) | func (c *cancellationTestNetConn) Write(b []byte) (n int, err error) { function newCancellationWriteConn (line 888) | func newCancellationWriteConn(nc net.Conn, skip int) *cancellationTestNe... function newCancellationReadConn (line 900) | func newCancellationReadConn(nc net.Conn, skip int, readBuf []byte) *can... type testNetConn (line 933) | type testNetConn struct method Read (line 947) | func (tnc *testNetConn) Read(b []byte) (n int, err error) { method Write (line 962) | func (tnc *testNetConn) Write(b []byte) (n int, err error) { method Close (line 975) | func (tnc *testNetConn) Close() error { method LocalAddr (line 983) | func (tnc *testNetConn) LocalAddr() net.Addr { method RemoteAddr (line 990) | func (tnc *testNetConn) RemoteAddr() net.Addr { method SetDeadline (line 997) | func (tnc *testNetConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 1008) | func (tnc *testNetConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 1019) | func (tnc *testNetConn) SetWriteDeadline(t time.Time) error { function bootstrapConnections (line 1033) | func bootstrapConnections(t *testing.T, num int, run func(net.Conn)) net... type netconn (line 1052) | type netconn struct method Close (line 1058) | func (nc *netconn) Close() error { type writeFailConn (line 1064) | type writeFailConn struct method Write (line 1068) | func (wfc *writeFailConn) Write([]byte) (int, error) { method SetWriteDeadline (line 1072) | func (wfc *writeFailConn) SetWriteDeadline(time.Time) error { type dialer (line 1076) | type dialer struct method DialContext (line 1088) | func (d *dialer) DialContext(ctx context.Context, network, address str... method connclosed (line 1100) | func (d *dialer) connclosed(nc *netconn) { method lenopened (line 1109) | func (d *dialer) lenopened() int { method lenclosed (line 1115) | func (d *dialer) lenclosed() int { function newdialer (line 1084) | func newdialer(d Dialer) *dialer { type testCancellationListener (line 1121) | type testCancellationListener struct method Listen (line 1137) | func (tcl *testCancellationListener) Listen(ctx context.Context, abort... method StopListening (line 1142) | func (tcl *testCancellationListener) StopListening() bool { method assertCalledOnce (line 1148) | func (tcl *testCancellationListener) assertCalledOnce(t *testing.T) { function newTestCancellationListener (line 1130) | func newTestCancellationListener(aborted bool) *testCancellationListener { type testContext (line 1153) | type testContext struct method Deadline (line 1158) | func (tc *testContext) Deadline() (time.Time, bool) { function TestConnectionError (line 1162) | func TestConnectionError(t *testing.T) { FILE: x/mongo/driver/topology/context_listener.go type contextListener (line 15) | type contextListener interface type contextDoneListener (line 22) | type contextDoneListener struct method Listen (line 54) | func (c *contextDoneListener) Listen(ctx context.Context, abortFn func... method StopListening (line 76) | func (c *contextDoneListener) StopListening() bool { function newContextDoneListener (line 32) | func newContextDoneListener() *contextDoneListener { function newNonBlockingContextDoneListener (line 42) | func newNonBlockingContextDoneListener() *contextDoneListener { FILE: x/mongo/driver/topology/diff.go type hostlistDiff (line 12) | type hostlistDiff struct function diffHostList (line 18) | func diffHostList(t description.Topology, hostlist []string) hostlistDiff { type topologyDiff (line 42) | type topologyDiff struct function diffTopology (line 48) | func diffTopology(oldtopo, newtopo description.Topology) topologyDiff { FILE: x/mongo/driver/topology/diff_test.go function TestDiffHostList (line 16) | func TestDiffHostList(t *testing.T) { function TestDiffTopology (line 43) | func TestDiffTopology(t *testing.T) { FILE: x/mongo/driver/topology/errors.go type ConnectionError (line 25) | type ConnectionError struct method Error (line 36) | func (e ConnectionError) Error() string { method Unwrap (line 62) | func (e ConnectionError) Unwrap() error { type ServerSelectionError (line 67) | type ServerSelectionError struct method Error (line 73) | func (e ServerSelectionError) Error() string { method Unwrap (line 81) | func (e ServerSelectionError) Unwrap() error { type WaitQueueTimeoutError (line 86) | type WaitQueueTimeoutError struct method Error (line 101) | func (w WaitQueueTimeoutError) Error() string { method Unwrap (line 135) | func (w WaitQueueTimeoutError) Unwrap() error { type pinnedConnections (line 95) | type pinnedConnections struct FILE: x/mongo/driver/topology/example_test.go function Example_clusterMonitoring (line 15) | func Example_clusterMonitoring() { FILE: x/mongo/driver/topology/fsm.go type fsm (line 29) | type fsm struct method apply (line 114) | func (f *fsm) apply(s description.Server) (description.Topology, descr... method applyToReplicaSetNoPrimary (line 184) | func (f *fsm) applyToReplicaSetNoPrimary(s description.Server) descrip... method applyToReplicaSetWithPrimary (line 199) | func (f *fsm) applyToReplicaSetWithPrimary(s description.Server) descr... method applyToSharded (line 216) | func (f *fsm) applyToSharded(s description.Server) description.Server { method applyToSingle (line 229) | func (f *fsm) applyToSingle(s description.Server) description.Server { method applyToUnknown (line 261) | func (f *fsm) applyToUnknown(s description.Server) description.Server { method checkIfHasPrimary (line 280) | func (f *fsm) checkIfHasPrimary() { method updateRSFromPrimary (line 348) | func (f *fsm) updateRSFromPrimary(srv description.Server) { method updateRSWithPrimaryFromMember (line 394) | func (f *fsm) updateRSWithPrimaryFromMember(s description.Server) { method updateRSWithoutPrimary (line 414) | func (f *fsm) updateRSWithoutPrimary(s description.Server) { method updateUnknownWithStandalone (line 436) | func (f *fsm) updateUnknownWithStandalone(s description.Server) { method addServer (line 446) | func (f *fsm) addServer(addr address.Address) { method findPrimary (line 452) | func (f *fsm) findPrimary() (int, bool) { method findServer (line 462) | func (f *fsm) findServer(addr address.Address) (int, bool) { method removeServer (line 473) | func (f *fsm) removeServer(i int) { method removeServerByAddr (line 477) | func (f *fsm) removeServerByAddr(addr address.Address) { method replaceServer (line 483) | func (f *fsm) replaceServer(s description.Server) { method setServer (line 489) | func (f *fsm) setServer(i int, s description.Server) { method setKind (line 493) | func (f *fsm) setKind(k description.TopologyKind) { function newFSM (line 37) | func newFSM() *fsm { function isServerDataBearing (line 44) | func isServerDataBearing(srv description.Server) bool { function selectFSMSessionTimeout (line 65) | func selectFSMSessionTimeout(f *fsm, s description.Server) *int64 { function hasStalePrimary (line 289) | func hasStalePrimary(fsm fsm, srv description.Server) bool { function transferEVTuple (line 310) | func transferEVTuple(srv description.Server, fsm *fsm) bool { FILE: x/mongo/driver/topology/fsm_test.go function TestFSMSessionTimeout (line 17) | func TestFSMSessionTimeout(t *testing.T) { FILE: x/mongo/driver/topology/polling_srv_records_test.go type mockResolver (line 26) | type mockResolver struct method LookupSRV (line 45) | func (r *mockResolver) LookupSRV(service, proto, name string) (string,... method LookupTXT (line 78) | func (r *mockResolver) LookupTXT(string) ([]string, error) { return ni... function newMockResolver (line 35) | func newMockResolver(recordsToAdd []*net.SRV, recordsToRemove []*net.SRV... type serverSorter (line 99) | type serverSorter method Len (line 101) | func (ss serverSorter) Len() int { return len(ss) } method Swap (line 102) | func (ss serverSorter) Swap(i, j int) { ss[i], ss[j] = ss[j], ss[i] } method Less (line 103) | func (ss serverSorter) Less(i, j int) bool { function compareHosts (line 107) | func compareHosts(t *testing.T, received []description.Server, expected ... function TestPollingSRVRecordsSpec (line 128) | func TestPollingSRVRecordsSpec(t *testing.T) { function testPollingSRVRecordsSpec (line 140) | func testPollingSRVRecordsSpec(t *testing.T, uri string) { function TestPollSRVRecords (line 170) | func TestPollSRVRecords(t *testing.T) { function TestPollingSRVRecordsLoadBalanced (line 263) | func TestPollingSRVRecordsLoadBalanced(t *testing.T) { function TestPollSRVRecordsMaxHosts (line 308) | func TestPollSRVRecordsMaxHosts(t *testing.T) { function TestPollSRVRecordsServiceName (line 380) | func TestPollSRVRecordsServiceName(t *testing.T) { FILE: x/mongo/driver/topology/pool.go constant poolPaused (line 27) | poolPaused int = iota constant poolReady (line 28) | poolReady constant poolClosed (line 29) | poolClosed type PoolError (line 46) | type PoolError method Error (line 48) | func (pe PoolError) Error() string { return string(pe) } type poolClearedError (line 52) | type poolClearedError struct method Error (line 57) | func (pce poolClearedError) Error() string { method Retryable (line 65) | func (poolClearedError) Retryable() bool { return true } type poolConfig (line 71) | type poolConfig struct type pool (line 85) | type pool struct method getState (line 134) | func (p *pool) getState() int { method stale (line 281) | func (p *pool) stale(conn *connection) bool { method ready (line 288) | func (p *pool) ready() error { method close (line 328) | func (p *pool) close(ctx context.Context) { method pinConnectionToCursor (line 438) | func (p *pool) pinConnectionToCursor() { method unpinConnectionFromCursor (line 442) | func (p *pool) unpinConnectionFromCursor() { method pinConnectionToTransaction (line 447) | func (p *pool) pinConnectionToTransaction() { method unpinConnectionFromTransaction (line 451) | func (p *pool) unpinConnectionFromTransaction() { method checkOut (line 460) | func (p *pool) checkOut(ctx context.Context) (conn *connection, err er... method closeConnection (line 704) | func (p *pool) closeConnection(conn *connection) error { method getGenerationForNewConnection (line 722) | func (p *pool) getGenerationForNewConnection(serviceID *bson.ObjectID)... method removeConnection (line 727) | func (p *pool) removeConnection(conn *connection, reason reason, err e... method checkIn (line 863) | func (p *pool) checkIn(conn *connection) error { method checkInNoEvent (line 892) | func (p *pool) checkInNoEvent(conn *connection) error { method clear (line 965) | func (p *pool) clear(err error, serviceID *bson.ObjectID) { method clearAll (line 970) | func (p *pool) clearAll(err error, serviceID *bson.ObjectID) { method interruptConnections (line 975) | func (p *pool) interruptConnections(conns []*connection) { method clearImpl (line 994) | func (p *pool) clearImpl(err error, serviceID *bson.ObjectID, interrup... method getOrQueueForIdleConn (line 1095) | func (p *pool) getOrQueueForIdleConn(w *wantConn) bool { method queueForNewConn (line 1132) | func (p *pool) queueForNewConn(w *wantConn) { method totalConnectionCount (line 1141) | func (p *pool) totalConnectionCount() int { method availableConnectionCount (line 1148) | func (p *pool) availableConnectionCount() int { method createConnections (line 1156) | func (p *pool) createConnections(ctx context.Context, wg *sync.WaitGro... method maintain (line 1292) | func (p *pool) maintain(ctx context.Context, wg *sync.WaitGroup) { method removePerishedConns (line 1381) | func (p *pool) removePerishedConns() { function mustLogPoolMessage (line 141) | func mustLogPoolMessage(pool *pool) bool { function logPoolMessage (line 146) | func logPoolMessage(pool *pool, msg string, keysAndValues ...any) { type reason (line 163) | type reason struct function connectionPerished (line 169) | func connectionPerished(conn *connection) (reason, bool) { function newPool (line 194) | func newPool(config poolConfig, connOpts ...ConnectionOption) *pool { function bgRead (line 806) | func bgRead(pool *pool, conn *connection, size int32) { function compact (line 1406) | func compact(arr []*connection) []*connection { type wantConn (line 1423) | type wantConn struct method waiting (line 1438) | func (w *wantConn) waiting() bool { method tryDeliver (line 1448) | func (w *wantConn) tryDeliver(conn *connection, err error) bool { method cancel (line 1470) | func (w *wantConn) cancel(p *pool, err error) { function newWantConn (line 1431) | func newWantConn() *wantConn { type wantConnQueue (line 1491) | type wantConnQueue struct method len (line 1508) | func (q *wantConnQueue) len() int { method pushBack (line 1513) | func (q *wantConnQueue) pushBack(w *wantConn) { method popFront (line 1518) | func (q *wantConnQueue) popFront() *wantConn { method peekFront (line 1533) | func (q *wantConnQueue) peekFront() *wantConn { method cleanFront (line 1544) | func (q *wantConnQueue) cleanFront() { FILE: x/mongo/driver/topology/pool_generation_counter.go constant generationDisconnected (line 18) | generationDisconnected int64 = iota constant generationConnected (line 19) | generationConnected type generationStats (line 24) | type generationStats struct type poolGenerationMap (line 32) | type poolGenerationMap struct method connect (line 50) | func (p *poolGenerationMap) connect() { method disconnect (line 54) | func (p *poolGenerationMap) disconnect() { method addConnection (line 60) | func (p *poolGenerationMap) addConnection(serviceIDPtr *bson.ObjectID)... method removeConnection (line 80) | func (p *poolGenerationMap) removeConnection(serviceIDPtr *bson.Object... method clear (line 99) | func (p *poolGenerationMap) clear(serviceIDPtr *bson.ObjectID) { method stale (line 109) | func (p *poolGenerationMap) stale(serviceIDPtr *bson.ObjectID, knownGe... method getGeneration (line 121) | func (p *poolGenerationMap) getGeneration(serviceIDPtr *bson.ObjectID)... method getNumConns (line 132) | func (p *poolGenerationMap) getNumConns(serviceIDPtr *bson.ObjectID) u... function newPoolGenerationMap (line 42) | func newPoolGenerationMap() *poolGenerationMap { function getServiceID (line 143) | func getServiceID(oid *bson.ObjectID) bson.ObjectID { FILE: x/mongo/driver/topology/pool_test.go function TestNewPool (line 28) | func TestNewPool(t *testing.T) { function TestPool_closeConnection (line 57) | func TestPool_closeConnection(t *testing.T) { function TestPool_close (line 92) | func TestPool_close(t *testing.T) { function TestPool_ready (line 313) | func TestPool_ready(t *testing.T) { function TestPool_checkOut (line 467) | func TestPool_checkOut(t *testing.T) { function TestPool_checkIn (line 860) | func TestPool_checkIn(t *testing.T) { function TestPool_maintain (line 1031) | func TestPool_maintain(t *testing.T) { function TestBackgroundRead (line 1174) | func TestBackgroundRead(t *testing.T) { function assertConnectionsClosed (line 1478) | func assertConnectionsClosed(t *testing.T, dialer *dialer, count int) { function assertConnectionsOpened (line 1497) | func assertConnectionsOpened(t *testing.T, dialer *dialer, count int) { function TestPool_PoolMonitor (line 1516) | func TestPool_PoolMonitor(t *testing.T) { function TestPool_Error (line 1598) | func TestPool_Error(t *testing.T) { FILE: x/mongo/driver/topology/rtt_monitor.go constant rttAlphaValue (line 22) | rttAlphaValue = 0.2 constant minRTTSamplesForMovingMin (line 23) | minRTTSamplesForMovingMin = 2 constant maxRTTSamplesForMovingMin (line 24) | maxRTTSamplesForMovingMin = 10 type rttConfig (line 27) | type rttConfig struct type rttMonitor (line 38) | type rttMonitor struct method connect (line 76) | func (r *rttMonitor) connect() { method disconnect (line 89) | func (r *rttMonitor) disconnect() { method start (line 99) | func (r *rttMonitor) start() { method runHellos (line 148) | func (r *rttMonitor) runHellos(conn *connection) { method reset (line 187) | func (r *rttMonitor) reset() { method appendMovingMin (line 200) | func (r *rttMonitor) appendMovingMin(rtt time.Duration) { method min (line 221) | func (r *rttMonitor) min() time.Duration { method stddev (line 239) | func (r *rttMonitor) stddev() time.Duration { method addSample (line 253) | func (r *rttMonitor) addSample(rtt time.Duration) { method EWMA (line 273) | func (r *rttMonitor) EWMA() time.Duration { method Min (line 281) | func (r *rttMonitor) Min() time.Duration { method Stats (line 289) | func (r *rttMonitor) Stats() string { function newRTTMonitor (line 61) | func newRTTMonitor(cfg *rttConfig) *rttMonitor { FILE: x/mongo/driver/topology/rtt_monitor_test.go function makeHelloReply (line 30) | func makeHelloReply() []byte { type mockSlowConn (line 37) | type mockSlowConn struct method Read (line 57) | func (msc *mockSlowConn) Read(b []byte) (int, error) { method Write (line 65) | func (msc *mockSlowConn) Write(b []byte) (int, error) { method Close (line 75) | func (msc *mockSlowConn) Close() error { method LocalAddr (line 80) | func (*mockSlowConn) LocalAddr() net.Addr { return nil } method RemoteAddr (line 81) | func (*mockSlowConn) RemoteAddr() net.Addr { return nil } method SetDeadline (line 82) | func (*mockSlowConn) SetDeadline(_ time.Time) error { return nil } method SetReadDeadline (line 83) | func (*mockSlowConn) SetReadDeadline(_ time.Time) error { return nil } method SetWriteDeadline (line 84) | func (*mockSlowConn) SetWriteDeadline(_ time.Time) error { return nil } function newMockSlowConn (line 46) | func newMockSlowConn(response []byte, delay time.Duration) *mockSlowConn { function TestRTTMonitor (line 86) | func TestRTTMonitor(t *testing.T) { function makeArithmeticSamples (line 287) | func makeArithmeticSamples(lower, upper int) []time.Duration { function TestRTTMonitor_appendMovingMin (line 296) | func TestRTTMonitor_appendMovingMin(t *testing.T) { function TestRTTMonitor_min (line 350) | func TestRTTMonitor_min(t *testing.T) { function TestRTTMonitor_stddev (line 421) | func TestRTTMonitor_stddev(t *testing.T) { FILE: x/mongo/driver/topology/sdam_spec_test.go type response (line 31) | type response struct method UnmarshalBSON (line 213) | func (r *response) UnmarshalBSON(buf []byte) error { type Hello (line 36) | type Hello struct type lastWriteDate (line 68) | type lastWriteDate struct type server (line 72) | type server struct type topologyVersion (line 83) | type topologyVersion struct type testPool (line 88) | type testPool struct type applicationError (line 92) | type applicationError struct type topologyDescription (line 101) | type topologyDescription struct type serverDescription (line 107) | type serverDescription struct type topologyOpeningEvent (line 117) | type topologyOpeningEvent struct type serverOpeningEvent (line 121) | type serverOpeningEvent struct type topologyDescriptionChangedEvent (line 126) | type topologyDescriptionChangedEvent struct type serverDescriptionChangedEvent (line 132) | type serverDescriptionChangedEvent struct type serverClosedEvent (line 139) | type serverClosedEvent struct type monitoringEvent (line 144) | type monitoringEvent struct type outcome (line 152) | type outcome struct type phase (line 163) | type phase struct type testCase (line 170) | type testCase struct function serverDescriptionChanged (line 176) | func serverDescriptionChanged(e *event.ServerDescriptionChangedEvent) { function serverOpening (line 182) | func serverOpening(e *event.ServerOpeningEvent) { function topologyDescriptionChanged (line 188) | func topologyDescriptionChanged(e *event.TopologyDescriptionChangedEvent) { function topologyOpening (line 194) | func topologyOpening(e *event.TopologyOpeningEvent) { function serverClosed (line 200) | func serverClosed(e *event.ServerClosedEvent) { function setUpTopology (line 226) | func setUpTopology(t *testing.T, uri string) *Topology { function applyResponses (line 251) | func applyResponses(t *testing.T, topo *Topology, responses []response, ... type netErr (line 277) | type netErr struct method Error (line 281) | func (n netErr) Error() string { method Timeout (line 285) | func (n netErr) Timeout() bool { method Temporary (line 289) | func (n netErr) Temporary() bool { function applyErrors (line 295) | func applyErrors(t *testing.T, topo *Topology, errors []applicationError) { function compareServerDescriptions (line 353) | func compareServerDescriptions(t *testing.T, function compareTopologyDescriptions (line 388) | func compareTopologyDescriptions(t *testing.T, function compareEvents (line 407) | func compareEvents(t *testing.T, events []monitoringEvent) { function findServerInTopology (line 464) | func findServerInTopology(topo description.Topology, addr address.Addres... function runTest (line 473) | func runTest(t *testing.T, directory string, filename string) { function TestSDAMSpec (line 572) | func TestSDAMSpec(t *testing.T) { function TestHasStalePrimary (line 580) | func TestHasStalePrimary(t *testing.T) { FILE: x/mongo/driver/topology/server.go constant minHeartbeatInterval (line 31) | minHeartbeatInterval = 500 * time.Millisecond constant wireVersion42 (line 32) | wireVersion42 = 8 constant serverDisconnected (line 37) | serverDisconnected int64 = iota constant serverDisconnecting (line 38) | serverDisconnecting constant serverConnected (line 39) | serverConnected function serverStateString (line 42) | func serverStateString(state int64) string { function newServerDescriptionFromError (line 57) | func newServerDescriptionFromError( function newDefaultServerDescription (line 72) | func newDefaultServerDescription(addr address.Address) description.Server { type SelectedServer (line 90) | type SelectedServer struct method Description (line 97) | func (ss *SelectedServer) Description() description.SelectedServer { type Server (line 106) | type Server struct method Connect (line 263) | func (s *Server) Connect(updateCallback updateTopologyCallback) error { method Disconnect (line 300) | func (s *Server) Disconnect(ctx context.Context) error { method Connection (line 321) | func (s *Server) Connection(ctx context.Context) (*mnet.Connection, er... method ProcessHandshakeError (line 354) | func (s *Server) ProcessHandshakeError(err error, startingGenerationNu... method Description (line 394) | func (s *Server) Description() description.Server { method SelectedDescription (line 401) | func (s *Server) SelectedDescription() description.SelectedServer { method Subscribe (line 412) | func (s *Server) Subscribe() (*ServerSubscription, error) { method RequestImmediateCheck (line 439) | func (s *Server) RequestImmediateCheck() { method ProcessError (line 463) | func (s *Server) ProcessError(err error, describer mnet.Describer) dri... method update (line 629) | func (s *Server) update() { method updateDescription (line 768) | func (s *Server) updateDescription(desc description.Server) { method createConnection (line 813) | func (s *Server) createConnection() *connection { method setupHeartbeatConnection (line 843) | func (s *Server) setupHeartbeatConnection(ctx context.Context) error { method createBaseOperation (line 858) | func (s *Server) createBaseOperation(conn *mnet.Connection) *operation... method streamable (line 880) | func (s *Server) streamable() bool { method check (line 970) | func (s *Server) check(ctx context.Context) (description.Server, error) { method RTTMonitor (line 1081) | func (s *Server) RTTMonitor() driver.RTTMonitor { method OperationCount (line 1086) | func (s *Server) OperationCount() int64 { method String (line 1091) | func (s *Server) String() string { method publishServerOpeningEvent (line 1138) | func (s *Server) publishServerOpeningEvent(addr address.Address) { method publishServerHeartbeatStartedEvent (line 1158) | func (s *Server) publishServerHeartbeatStartedEvent(connectionID strin... method publishServerHeartbeatSucceededEvent (line 1175) | func (s *Server) publishServerHeartbeatSucceededEvent(connectionID str... method publishServerHeartbeatFailedEvent (line 1214) | func (s *Server) publishServerHeartbeatFailedEvent(connectionID string, type updateTopologyCallback (line 153) | type updateTopologyCallback function ConnectServer (line 157) | func ConnectServer( function NewServer (line 174) | func NewServer( function mustLogServerMessage (line 228) | func mustLogServerMessage(srv *Server) bool { function logServerMessage (line 233) | func logServerMessage(srv *Server, msg string, keysAndValues ...any) { function getWriteConcernErrorForProcessing (line 449) | func getWriteConcernErrorForProcessing(err error) (*driver.WriteConcernE... type serverChecker (line 573) | type serverChecker interface function checkServerWithSignal (line 581) | func checkServerWithSignal( function copyConnectionOpts (line 837) | func copyConnectionOpts(opts []ConnectionOption) []ConnectionOption { function isStreamingEnabled (line 865) | func isStreamingEnabled(srv *Server) bool { function isStreamable (line 876) | func isStreamable(srv *Server) bool { function getHeartbeatTimeout (line 886) | func getHeartbeatTimeout(srv *Server) time.Duration { function withHeartbeatTimeout (line 908) | func withHeartbeatTimeout(parent context.Context, srv *Server) (context.... function doHandshake (line 922) | func doHandshake(ctx context.Context, srv *Server) (description.Server, ... function extractTopologyVersion (line 1063) | func extractTopologyVersion(err error) *description.TopologyVersion { type ServerSubscription (line 1111) | type ServerSubscription struct method Unsubscribe (line 1119) | func (ss *ServerSubscription) Unsubscribe() error { function unwrapConnectionError (line 1239) | func unwrapConnectionError(err error) error { FILE: x/mongo/driver/topology/server_options.go type serverConfig (line 24) | type serverConfig struct function newServerConfig (line 49) | func newServerConfig(connectTimeout time.Duration, opts ...ServerOption)... type ServerOption (line 67) | type ServerOption function ServerAPIFromServerOptions (line 71) | func ServerAPIFromServerOptions(connectTimeout time.Duration, opts []Ser... function withMonitoringDisabled (line 75) | func withMonitoringDisabled(fn func(bool) bool) ServerOption { function WithConnectionOptions (line 82) | func WithConnectionOptions(fn func(...ConnectionOption) []ConnectionOpti... function WithCompressionOptions (line 89) | func WithCompressionOptions(fn func(...string) []string) ServerOption { function WithServerAppName (line 96) | func WithServerAppName(fn func(string) string) ServerOption { function WithDriverInfo (line 105) | func WithDriverInfo(info *atomic.Pointer[options.DriverInfo]) ServerOpti... function WithHeartbeatInterval (line 112) | func WithHeartbeatInterval(fn func(time.Duration) time.Duration) ServerO... function WithMaxConnections (line 120) | func WithMaxConnections(fn func(uint64) uint64) ServerOption { function WithMinConnections (line 129) | func WithMinConnections(fn func(uint64) uint64) ServerOption { function WithMaxConnecting (line 138) | func WithMaxConnecting(fn func(uint64) uint64) ServerOption { function WithConnectionPoolMaxIdleTime (line 147) | func WithConnectionPoolMaxIdleTime(fn func(time.Duration) time.Duration)... function WithConnectionPoolMaintainInterval (line 155) | func WithConnectionPoolMaintainInterval(fn func(time.Duration) time.Dura... function WithConnectionPoolMonitor (line 162) | func WithConnectionPoolMonitor(fn func(*event.PoolMonitor) *event.PoolMo... function WithServerMonitor (line 169) | func WithServerMonitor(fn func(*event.ServerMonitor) *event.ServerMonito... function WithClock (line 176) | func WithClock(fn func(clock *session.ClusterClock) *session.ClusterCloc... function WithRegistry (line 184) | func WithRegistry(fn func(*bson.Registry) *bson.Registry) ServerOption { function WithServerAPI (line 191) | func WithServerAPI(fn func(serverAPI *driver.ServerAPIOptions) *driver.S... function WithServerLoadBalanced (line 198) | func WithServerLoadBalanced(fn func(bool) bool) ServerOption { function withLogger (line 205) | func withLogger(fn func() *logger.Logger) ServerOption { function withServerMonitoringMode (line 213) | func withServerMonitoringMode(mode *string) ServerOption { FILE: x/mongo/driver/topology/server_rtt_test.go function TestServerSelectionRTTSpec (line 21) | func TestServerSelectionRTTSpec(t *testing.T) { FILE: x/mongo/driver/topology/server_test.go type channelNetConnDialer (line 42) | type channelNetConnDialer struct method DialContext (line 44) | func (cncd *channelNetConnDialer) DialContext(_ context.Context, _, _ ... type errorQueue (line 57) | type errorQueue struct method head (line 62) | func (eq *errorQueue) head() error { method dequeue (line 71) | func (eq *errorQueue) dequeue() bool { type timeoutConn (line 81) | type timeoutConn struct method Read (line 86) | func (c *timeoutConn) Read(b []byte) (int, error) { method Write (line 94) | func (c *timeoutConn) Write(b []byte) (int, error) { type timeoutDialer (line 102) | type timeoutDialer struct method DialContext (line 107) | func (d *timeoutDialer) DialContext(ctx context.Context, network, addr... function TestServerHeartbeatTimeout (line 131) | func TestServerHeartbeatTimeout(t *testing.T) { function TestServerConnectionTimeout (line 211) | func TestServerConnectionTimeout(t *testing.T) { function TestServer (line 367) | func TestServer(t *testing.T) { function TestServer_ProcessError (line 814) | func TestServer_ProcessError(t *testing.T) { function TestServer_getSocketTimeout (line 1179) | func TestServer_getSocketTimeout(t *testing.T) { function includesClientMetadata (line 1257) | func includesClientMetadata(t *testing.T, wm []byte) bool { type processErrorTestConn (line 1300) | type processErrorTestConn struct method Stale (line 1320) | func (p *processErrorTestConn) Stale() bool { method Description (line 1324) | func (p *processErrorTestConn) Description() description.Server { function newProcessErrorTestConn (line 1309) | func newProcessErrorTestConn(wireVersion *description.VersionRange, stal... function newServerDescription (line 1330) | func newServerDescription( type mockServerChecker (line 1346) | type mockServerChecker struct method check (line 1352) | func (checker *mockServerChecker) check(ctx context.Context) (descript... function TestCheckServerWithSignal (line 1362) | func TestCheckServerWithSignal(t *testing.T) { FILE: x/mongo/driver/topology/stats.go function standardDeviationList (line 15) | func standardDeviationList(l *list.List) float64 { FILE: x/mongo/driver/topology/stats_test.go function TestStandardDeviationList_Duration (line 17) | func TestStandardDeviationList_Duration(t *testing.T) { FILE: x/mongo/driver/topology/tls_connection_source_1_16.go type tlsConn (line 17) | type tlsConn interface type tlsConnectionSource (line 27) | type tlsConnectionSource interface type tlsConnectionSourceFn (line 31) | type tlsConnectionSourceFn method Client (line 35) | func (t tlsConnectionSourceFn) Client(nc net.Conn, cfg *tls.Config) tl... function clientHandshake (line 45) | func clientHandshake(ctx context.Context, client tlsConn) error { FILE: x/mongo/driver/topology/tls_connection_source_1_17.go type tlsConn (line 17) | type tlsConn interface type tlsConnectionSource (line 27) | type tlsConnectionSource interface type tlsConnectionSourceFn (line 31) | type tlsConnectionSourceFn method Client (line 35) | func (t tlsConnectionSourceFn) Client(nc net.Conn, cfg *tls.Config) tl... function clientHandshake (line 44) | func clientHandshake(ctx context.Context, client tlsConn) error { FILE: x/mongo/driver/topology/topology.go constant topologyDisconnected (line 48) | topologyDisconnected int64 = iota constant topologyDisconnecting (line 49) | topologyDisconnecting constant topologyConnected (line 50) | topologyConnected constant topologyConnecting (line 51) | topologyConnecting type MonitorMode (line 67) | type MonitorMode constant AutomaticMode (line 74) | AutomaticMode MonitorMode = iota constant SingleMode (line 75) | SingleMode type Topology (line 79) | type Topology struct method Connect (line 275) | func (t *Topology) Connect() error { method Disconnect (line 377) | func (t *Topology) Disconnect(ctx context.Context) error { method Description (line 419) | func (t *Topology) Description() description.Topology { method Kind (line 428) | func (t *Topology) Kind() description.TopologyKind { return t.Descript... method Subscribe (line 434) | func (t *Topology) Subscribe() (*driver.Subscription, error) { method Unsubscribe (line 462) | func (t *Topology) Unsubscribe(sub *driver.Subscription) error { method RequestImmediateCheck (line 482) | func (t *Topology) RequestImmediateCheck() { method SelectServer (line 495) | func (t *Topology) SelectServer(ctx context.Context, ss description.Se... method FindServer (line 664) | func (t *Topology) FindServer(selected description.Server) (*SelectedS... method selectServerFromSubscription (line 685) | func (t *Topology) selectServerFromSubscription( method selectServerFromDescription (line 711) | func (t *Topology) selectServerFromDescription( method pollSRVRecords (line 748) | func (t *Topology) pollSRVRecords(hosts string) { method processSRVResults (line 834) | func (t *Topology) processSRVResults(parsedHosts []string) bool { method apply (line 910) | func (t *Topology) apply(ctx context.Context, desc description.Server)... method addServer (line 969) | func (t *Topology) addServer(addr address.Address) error { method String (line 985) | func (t *Topology) String() string { method publishServerDescriptionChangedEvent (line 998) | func (t *Topology) publishServerDescriptionChangedEvent(prev descripti... method publishServerClosedEvent (line 1012) | func (t *Topology) publishServerClosedEvent(addr address.Address) { method publishTopologyDescriptionChangedEvent (line 1038) | func (t *Topology) publishTopologyDescriptionChangedEvent(prev descrip... method publishTopologyOpeningEvent (line 1057) | func (t *Topology) publishTopologyOpeningEvent() { method publishTopologyClosedEvent (line 1072) | func (t *Topology) publishTopologyClosedEvent() { method GetServerSelectionTimeout (line 1088) | func (t *Topology) GetServerSelectionTimeout() time.Duration { function New (line 126) | func New(cfg *Config) (*Topology, error) { function mustLogTopologyMessage (line 165) | func mustLogTopologyMessage(topo *Topology, level logger.Level) bool { function logTopologyMessage (line 170) | func logTopologyMessage(topo *Topology, level logger.Level, msg string, ... function logTopologyThirdPartyUsage (line 180) | func logTopologyThirdPartyUsage(topo *Topology, parsedHosts []string) { function mustLogServerSelection (line 210) | func mustLogServerSelection(topo *Topology, level logger.Level) bool { function logServerSelection (line 215) | func logServerSelection( function logServerSelectionSucceeded (line 244) | func logServerSelectionSucceeded( function logServerSelectionFailed (line 263) | func logServerSelectionFailed( function pick2 (line 648) | func pick2(ds []description.Server) (description.Server, description.Ser... function equalTopologies (line 804) | func equalTopologies(topo1, topo2 description.Topology) bool { function newEventServerDescription (line 1096) | func newEventServerDescription(srv description.Server) event.ServerDescr... function newEventServerTopology (line 1136) | func newEventServerTopology(topo description.Topology) event.TopologyDes... FILE: x/mongo/driver/topology/topology_errors_test.go function TestTopologyErrors (line 28) | func TestTopologyErrors(t *testing.T) { FILE: x/mongo/driver/topology/topology_options.go constant defaultServerSelectionTimeout (line 30) | defaultServerSelectionTimeout = 30 * time.Second constant defaultConnectionTimeout (line 31) | defaultConnectionTimeout = 30 * time.Second type Config (line 35) | type Config struct function ConvertToDriverAPIOptions (line 53) | func ConvertToDriverAPIOptions(opts *options.ServerAPIOptions) *driver.S... function newLogger (line 64) | func newLogger(opts *options.LoggerOptions) (*logger.Logger, error) { function convertOIDCArgs (line 84) | func convertOIDCArgs(args *driver.OIDCArgs) *options.OIDCArgs { function ConvertCreds (line 97) | func ConvertCreds(cred *options.Credential) *driver.Cred { function NewConfig (line 132) | func NewConfig(opts *options.ClientOptions, clock *session.ClusterClock)... type authConfigOptions (line 151) | type authConfigOptions struct type AuthConfigOption (line 158) | type AuthConfigOption function WithAuthConfigClock (line 161) | func WithAuthConfigClock(clock *session.ClusterClock) AuthConfigOption { function WithAuthConfigClientOptions (line 168) | func WithAuthConfigClientOptions(opts *options.ClientOptions) AuthConfig... function WithAuthConfigDriverInfo (line 175) | func WithAuthConfigDriverInfo(driverInfo *atomic.Pointer[options.DriverI... function NewAuthenticatorConfig (line 185) | func NewAuthenticatorConfig(authenticator driver.Authenticator, clientOp... FILE: x/mongo/driver/topology/topology_options_test.go function TestDirectConnectionFromConnString (line 27) | func TestDirectConnectionFromConnString(t *testing.T) { function TestLoadBalancedFromConnString (line 64) | func TestLoadBalancedFromConnString(t *testing.T) { type testAuthenticator (line 93) | type testAuthenticator struct method Auth (line 97) | func (a *testAuthenticator) Auth(context.Context, *driver.AuthConfig) ... method Reauth (line 101) | func (a *testAuthenticator) Reauth(context.Context, *driver.AuthConfig... function TestAuthenticateToAnything (line 105) | func TestAuthenticateToAnything(t *testing.T) { function TestTopologyNewConfig (line 163) | func TestTopologyNewConfig(t *testing.T) { function TestConvertOIDCArgs (line 188) | func TestConvertOIDCArgs(t *testing.T) { FILE: x/mongo/driver/topology/topology_test.go constant testTimeout (line 30) | testTimeout = 2 * time.Second function compareErrors (line 32) | func compareErrors(err1, err2 error) bool { type mockServerSelector (line 50) | type mockServerSelector struct method SelectServer (line 54) | func (m *mockServerSelector) SelectServer(description.Topology, []desc... function TestServerSelection (line 60) | func TestServerSelection(t *testing.T) { function TestSessionTimeout (line 304) | func TestSessionTimeout(t *testing.T) { function TestMinPoolSize (line 503) | func TestMinPoolSize(t *testing.T) { function TestTopology_String_Race (line 519) | func TestTopology_String_Race(_ *testing.T) { function TestTopologyConstruction (line 543) | func TestTopologyConstruction(t *testing.T) { type mockLogSink (line 572) | type mockLogSink struct method Info (line 576) | func (s *mockLogSink) Info(_ int, msg string, _ ...any) { method Error (line 580) | func (*mockLogSink) Error(error, string, ...any) { function TestTopologyConstructionLogging (line 586) | func TestTopologyConstructionLogging(t *testing.T) { type inWindowServer (line 812) | type inWindowServer struct type inWindowTopology (line 818) | type inWindowTopology struct type inWindowOutcome (line 823) | type inWindowOutcome struct type inWindowTopologyState (line 828) | type inWindowTopologyState struct type inWindowTestCase (line 833) | type inWindowTestCase struct function TestServerSelectionSpecInWindow (line 847) | func TestServerSelectionSpecInWindow(t *testing.T) { function runInWindowTest (line 859) | func runInWindowTest(t *testing.T, directory string, filename string) { function topologyKindFromString (line 962) | func topologyKindFromString(t *testing.T, s string) description.Topology... function serverKindFromString (line 987) | func serverKindFromString(t *testing.T, s string) description.ServerKind { function BenchmarkSelectServerFromDescription (line 1017) | func BenchmarkSelectServerFromDescription(b *testing.B) { FILE: x/mongo/driver/wiremessage/wiremessage.go type WireMessage (line 25) | type WireMessage function NextRequestID (line 30) | func NextRequestID() int32 { return atomic.AddInt32(&globalRequestID, 1) } type OpCode (line 33) | type OpCode method String (line 56) | func (oc OpCode) String() string { constant OpReply (line 39) | OpReply OpCode = 1 constant _ (line 40) | _ OpCode = 1001 constant OpUpdate (line 41) | OpUpdate OpCode = 2001 constant OpInsert (line 42) | OpInsert OpCode = 2002 constant _ (line 43) | _ OpCode = 2003 constant OpQuery (line 45) | OpQuery OpCode = 2004 constant OpGetMore (line 46) | OpGetMore OpCode = 2005 constant OpDelete (line 47) | OpDelete OpCode = 2006 constant OpKillCursors (line 48) | OpKillCursors OpCode = 2007 constant OpCommand (line 49) | OpCommand OpCode = 2010 constant OpCommandReply (line 50) | OpCommandReply OpCode = 2011 constant OpCompressed (line 51) | OpCompressed OpCode = 2012 constant OpMsg (line 52) | OpMsg OpCode = 2013 type QueryFlag (line 86) | type QueryFlag method String (line 101) | func (qf QueryFlag) String() string { constant _ (line 90) | _ QueryFlag = 1 << iota constant TailableCursor (line 91) | TailableCursor constant SecondaryOK (line 92) | SecondaryOK constant OplogReplay (line 93) | OplogReplay constant NoCursorTimeout (line 94) | NoCursorTimeout constant AwaitData (line 95) | AwaitData constant Exhaust (line 96) | Exhaust constant Partial (line 97) | Partial type MsgFlag (line 131) | type MsgFlag constant ChecksumPresent (line 135) | ChecksumPresent MsgFlag = 1 << iota constant MoreToCome (line 136) | MoreToCome constant ExhaustAllowed (line 138) | ExhaustAllowed MsgFlag = 1 << 16 type ReplyFlag (line 142) | type ReplyFlag method String (line 153) | func (rf ReplyFlag) String() string { constant CursorNotFound (line 146) | CursorNotFound ReplyFlag = 1 << iota constant QueryFailure (line 147) | QueryFailure constant ShardConfigStale (line 148) | ShardConfigStale constant AwaitCapable (line 149) | AwaitCapable type SectionType (line 174) | type SectionType constant SingleDocument (line 178) | SingleDocument SectionType = iota constant DocumentSequence (line 179) | DocumentSequence type CompressorID (line 183) | type CompressorID method String (line 194) | func (id CompressorID) String() string { constant CompressorNoOp (line 187) | CompressorNoOp CompressorID = iota constant CompressorSnappy (line 188) | CompressorSnappy constant CompressorZLib (line 189) | CompressorZLib constant CompressorZstd (line 190) | CompressorZstd constant DefaultZlibLevel (line 211) | DefaultZlibLevel = 6 constant DefaultZstdLevel (line 214) | DefaultZstdLevel = 6 function AppendHeaderStart (line 219) | func AppendHeaderStart(dst []byte, reqid, respto int32, opcode OpCode) (... function AppendHeader (line 228) | func AppendHeader(dst []byte, length, reqid, respto int32, opcode OpCode... function ReadHeader (line 237) | func ReadHeader(src []byte) (length, requestID, responseTo int32, opcode... function AppendQueryFlags (line 251) | func AppendQueryFlags(dst []byte, flags QueryFlag) []byte { function AppendMsgFlags (line 256) | func AppendMsgFlags(dst []byte, flags MsgFlag) []byte { function AppendReplyFlags (line 261) | func AppendReplyFlags(dst []byte, flags ReplyFlag) []byte { function AppendMsgSectionType (line 266) | func AppendMsgSectionType(dst []byte, stype SectionType) []byte { function AppendQueryFullCollectionName (line 271) | func AppendQueryFullCollectionName(dst []byte, ns string) []byte { function AppendQueryNumberToSkip (line 276) | func AppendQueryNumberToSkip(dst []byte, skip int32) []byte { function AppendQueryNumberToReturn (line 281) | func AppendQueryNumberToReturn(dst []byte, nor int32) []byte { function AppendReplyCursorID (line 286) | func AppendReplyCursorID(dst []byte, id int64) []byte { function AppendReplyStartingFrom (line 291) | func AppendReplyStartingFrom(dst []byte, sf int32) []byte { function AppendReplyNumberReturned (line 296) | func AppendReplyNumberReturned(dst []byte, nr int32) []byte { function AppendCompressedOriginalOpCode (line 301) | func AppendCompressedOriginalOpCode(dst []byte, opcode OpCode) []byte { function AppendCompressedUncompressedSize (line 307) | func AppendCompressedUncompressedSize(dst []byte, size int32) []byte { function AppendCompressedCompressorID (line 312) | func AppendCompressedCompressorID(dst []byte, id CompressorID) []byte { function AppendCompressedCompressedMessage (line 317) | func AppendCompressedCompressedMessage(dst []byte, msg []byte) []byte { ... function AppendGetMoreZero (line 320) | func AppendGetMoreZero(dst []byte) []byte { function AppendGetMoreFullCollectionName (line 325) | func AppendGetMoreFullCollectionName(dst []byte, ns string) []byte { function AppendGetMoreNumberToReturn (line 330) | func AppendGetMoreNumberToReturn(dst []byte, numToReturn int32) []byte { function AppendGetMoreCursorID (line 335) | func AppendGetMoreCursorID(dst []byte, cursorID int64) []byte { function AppendKillCursorsZero (line 340) | func AppendKillCursorsZero(dst []byte) []byte { function AppendKillCursorsNumberIDs (line 345) | func AppendKillCursorsNumberIDs(dst []byte, numIDs int32) []byte { function AppendKillCursorsCursorIDs (line 350) | func AppendKillCursorsCursorIDs(dst []byte, cursors []int64) []byte { function ReadMsgFlags (line 358) | func ReadMsgFlags(src []byte) (flags MsgFlag, rem []byte, ok bool) { function IsMsgMoreToCome (line 364) | func IsMsgMoreToCome(wm []byte) bool { function ReadMsgSectionType (line 374) | func ReadMsgSectionType(src []byte) (stype SectionType, rem []byte, ok b... function ReadMsgSectionSingleDocument (line 382) | func ReadMsgSectionSingleDocument(src []byte) (doc bsoncore.Document, re... function ReadMsgSectionDocumentSequence (line 388) | func ReadMsgSectionDocumentSequence(src []byte) (identifier string, docs... function ReadMsgSectionRawDocumentSequence (line 412) | func ReadMsgSectionRawDocumentSequence(src []byte) (identifier string, d... function ReadMsgChecksum (line 431) | func ReadMsgChecksum(src []byte) (checksum uint32, rem []byte, ok bool) { function ReadQueryFlags (line 440) | func ReadQueryFlags(src []byte) (flags QueryFlag, rem []byte, ok bool) { function ReadQueryFullCollectionName (line 449) | func ReadQueryFullCollectionName(src []byte) (collname string, rem []byt... function ReadQueryNumberToSkip (line 457) | func ReadQueryNumberToSkip(src []byte) (nts int32, rem []byte, ok bool) { function ReadQueryNumberToReturn (line 465) | func ReadQueryNumberToReturn(src []byte) (ntr int32, rem []byte, ok bool) { function ReadQueryQuery (line 473) | func ReadQueryQuery(src []byte) (query bsoncore.Document, rem []byte, ok... function ReadQueryReturnFieldsSelector (line 481) | func ReadQueryReturnFieldsSelector(src []byte) (rfs bsoncore.Document, r... function ReadReplyFlags (line 486) | func ReadReplyFlags(src []byte) (flags ReplyFlag, rem []byte, ok bool) { function ReadReplyCursorID (line 492) | func ReadReplyCursorID(src []byte) (cursorID int64, rem []byte, ok bool) { function ReadReplyStartingFrom (line 497) | func ReadReplyStartingFrom(src []byte) (startingFrom int32, rem []byte, ... function ReadReplyNumberReturned (line 502) | func ReadReplyNumberReturned(src []byte) (numberReturned int32, rem []by... function ReadReplyDocuments (line 507) | func ReadReplyDocuments(src []byte) (docs []bsoncore.Document, rem []byt... function ReadReplyDocument (line 523) | func ReadReplyDocument(src []byte) (doc bsoncore.Document, rem []byte, o... function ReadCompressedOriginalOpCode (line 528) | func ReadCompressedOriginalOpCode(src []byte) (opcode OpCode, rem []byte... function ReadCompressedUncompressedSize (line 535) | func ReadCompressedUncompressedSize(src []byte) (size int32, rem []byte,... function ReadCompressedCompressorID (line 540) | func ReadCompressedCompressorID(src []byte) (id CompressorID, rem []byte... function ReadKillCursorsZero (line 548) | func ReadKillCursorsZero(src []byte) (zero int32, rem []byte, ok bool) { function ReadKillCursorsNumberIDs (line 553) | func ReadKillCursorsNumberIDs(src []byte) (numIDs int32, rem []byte, ok ... function ReadKillCursorsCursorIDs (line 558) | func ReadKillCursorsCursorIDs(src []byte, numIDs int32) (cursorIDs []int... function appendCString (line 572) | func appendCString(b []byte, str string) []byte { FILE: x/mongo/driver/wiremessage/wiremessage_test.go function TestAppendHeaderStart (line 18) | func TestAppendHeaderStart(t *testing.T) { function TestReadHeader (line 68) | func TestReadHeader(t *testing.T) { function TestReadMsgSectionDocumentSequence (line 138) | func TestReadMsgSectionDocumentSequence(t *testing.T) { function TestAppendi32 (line 220) | func TestAppendi32(t *testing.T) { function TestAppendi64 (line 272) | func TestAppendi64(t *testing.T) { function TestReadi32 (line 324) | func TestReadi32(t *testing.T) { function TestReadi64 (line 404) | func TestReadi64(t *testing.T) { FILE: x/mongo/driver/xoptions/options.go function SetInternalClientOptions (line 19) | func SetInternalClientOptions(opts *options.ClientOptions, key string, o... function SetInternalAggregateOptions (line 49) | func SetInternalAggregateOptions(a *options.AggregateOptionsBuilder, key... function SetInternalBulkWriteOptions (line 70) | func SetInternalBulkWriteOptions(a *options.BulkWriteOptionsBuilder, key... function SetInternalClientBulkWriteOptions (line 100) | func SetInternalClientBulkWriteOptions(a *options.ClientBulkWriteOptions... function SetInternalCountOptions (line 130) | func SetInternalCountOptions(a *options.CountOptionsBuilder, key string,... function SetInternalCreateIndexesOptions (line 151) | func SetInternalCreateIndexesOptions(a *options.CreateIndexesOptionsBuil... function SetInternalDeleteOneOptions (line 172) | func SetInternalDeleteOneOptions(a *options.DeleteOneOptionsBuilder, key... function SetInternalDeleteManyOptions (line 193) | func SetInternalDeleteManyOptions(a *options.DeleteManyOptionsBuilder, k... function SetInternalDistinctOptions (line 214) | func SetInternalDistinctOptions(a *options.DistinctOptionsBuilder, key s... function SetInternalDropIndexesOptions (line 235) | func SetInternalDropIndexesOptions(a *options.DropIndexesOptionsBuilder,... function SetInternalEstimatedDocumentCountOptions (line 256) | func SetInternalEstimatedDocumentCountOptions(a *options.EstimatedDocume... function SetInternalFindOptions (line 277) | func SetInternalFindOptions(a *options.FindOptionsBuilder, key string, o... function SetInternalFindOneOptions (line 298) | func SetInternalFindOneOptions(a *options.FindOneOptionsBuilder, key str... function SetInternalFindOneAndDeleteOptions (line 319) | func SetInternalFindOneAndDeleteOptions(a *options.FindOneAndDeleteOptio... function SetInternalFindOneAndReplaceOptions (line 340) | func SetInternalFindOneAndReplaceOptions(a *options.FindOneAndReplaceOpt... function SetInternalFindOneAndUpdateOptions (line 370) | func SetInternalFindOneAndUpdateOptions(a *options.FindOneAndUpdateOptio... function SetInternalInsertManyOptions (line 400) | func SetInternalInsertManyOptions(a *options.InsertManyOptionsBuilder, k... function SetInternalInsertOneOptions (line 430) | func SetInternalInsertOneOptions(a *options.InsertOneOptionsBuilder, key... function SetInternalListCollectionsOptions (line 460) | func SetInternalListCollectionsOptions(a *options.ListCollectionsOptions... function SetInternalListIndexesOptions (line 481) | func SetInternalListIndexesOptions(a *options.ListIndexesOptionsBuilder,... function SetInternalReplaceOptions (line 502) | func SetInternalReplaceOptions(a *options.ReplaceOptionsBuilder, key str... function SetInternalUpdateManyOptions (line 532) | func SetInternalUpdateManyOptions(a *options.UpdateManyOptionsBuilder, k... function SetInternalUpdateOneOptions (line 562) | func SetInternalUpdateOneOptions(a *options.UpdateOneOptionsBuilder, key... FILE: x/mongo/driver/xoptions/options_test.go function TestSetInternalClientOptions (line 20) | func TestSetInternalClientOptions(t *testing.T) {