MONGOC_TOPOLOG...SCRIPTION_TYPE(3)
π MONGOC_TOPOLOG...SCRIPTION_TYPE(3) π
ok so real talk β this one lives in the libmongoc manual, and the title got cropped by the terminal like a bad selfie. it's mongoc_topology_description_type, bestie. say it with me. π«Ά
β¨ SYNOPSIS β¨
const char *
mongoc_topology_description_type (const mongoc_topology_description_t *td);
that's it. that's the whole vibe. one function, takes one thing, gives you back a const char *. iconic behavior honestly. π
π PARAMETERS π
tdβ amongoc_topology_description_t. that's the whole parameter list, she's low maintenance. literally just hand her the topology description struct and step back. π
πΈ DESCRIPTION πΈ
okay so here's what she does: you give her a td, and she hands you back a string. that string is one of the topology types defined in the Server Discovery And Monitoring Spec β like, the official list, no cap. π
here's the full set of possible returns, no skipping, all six of them:
UnknownSingleShardedReplicaSetNoPrimaryReplicaSetWithPrimaryLoadBalanced
that's the roster. those are the strings, character for character, so don't go freestyling with your own capitalization β the spec said what it said. π β¨
π AUTHOR π
MongoDB, Inc β yes, the whole company. slay. π’π
π¦ COPYRIGHT π¦
2009-present, MongoDB, Inc. β they've been at this since 2009, main character energy fr fr. ππ₯
okay and the cute sign-off: this lil beauty is from libmongoc version 2.5.6, dated Oct 09 β and yeah the terminal ate the last digits of the year and the manual name on the footer too, so if you need the exact year go check the original page bestie, not me. π bye, go read your topology types, ily! ππ
β fin β
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms