Versions in this module Expand all Collapse all v0 v0.0.8 Jun 5, 2023 v0.0.7 Jun 5, 2023 Changes in this version + type DbStats struct + DbStats int + Scale int + func (m *DbStats) FromBSOND(d bson.D) error v0.0.6 Oct 4, 2022 v0.0.5 Sep 29, 2022 v0.0.4 Sep 21, 2022 v0.0.3 Sep 14, 2022 v0.0.2 Aug 10, 2022 v0.0.1 Jun 2, 2022 Changes in this version + var Registry = make(map[string]CommandFunc) + func GetCommandCollection(c Command) string + func GetCommandDatabase(c Command) string + func GetCommandReadPreferenceMode(c Command) string + func Register(n string, f CommandFunc) + type Aggregate struct + Aggregate bson.RawValue + AllowDisk *bool + BypassDocumentValidation *bool + Collation *Collation + Comment string + Cursor pipeCmdCursor + Explain *bool + Hint interface{} + MaxTimeMS *int64 + Pipeline primitive.A + ReadConcern *ReadConcern + WriteConcern *WriteConcern + func (a *Aggregate) GetCollection() string + func (m *Aggregate) FromBSOND(d bson.D) error + type BuildInfo struct + V int + V2 int + func (m *BuildInfo) FromBSOND(d bson.D) error + type ClusterTime struct + ClusterTime primitive.Timestamp + Signature bson.Raw + type CollStats struct + Collection string + Scale *int64 + Verbose *int64 + func (m *CollStats) FromBSOND(d bson.D) error + func (m *CollStats) GetCollection() string + type Collation struct + Alternate string + Backwards bool + CaseFirst string + CaseLevel bool + Locale string + MaxVariable string + Normalization bool + NumericOrdering bool + Strength int + type Command interface + FromBSOND func(d bson.D) error + GetSession func() *Session + func GetCommand(d string) (Command, bool) + type CommandCollection interface + GetCollection func() string + type CommandDatabase interface + GetDatabase func() string + type CommandFunc func() Command + type CommandReadPreference interface + GetReadPreference func() *ReadPreference + type Common struct + Database string + ReadPreference *ReadPreference + func (c *Common) GetDatabase() string + func (c *Common) GetReadPreference() *ReadPreference + type ConnectionStatus struct + ConnectionStatus int + ShowPrivileges *bool + func (m *ConnectionStatus) FromBSOND(d bson.D) error + type Count struct + Collation *Collation + Collection string + Fields bson.D + Hint interface{} + Limit *int64 + MaxTimeMS *int64 + Query bson.D + ReadConcern *ReadConcern + Skip *int64 + func (m *Count) FromBSOND(d bson.D) error + func (m *Count) GetCollection() string + type Create struct + AutoIndexID *bool + Capped *bool + Collation *Collation + Collection string + IndexOptionDefaults bson.D + Max *int + Pipeline primitive.A + Size *int + StorageEngine bson.D + ValidationAction string + ValidationLevel string + Validator bson.D + ViewOn string + WriteConcern *WriteConcern + func (m *Create) FromBSOND(d bson.D) error + func (m *Create) GetCollection() string + type CreateIndexes struct + Collection string + CommitQuorum interface{} + Indexes []CreateIndexesIndex + WriteConcern *WriteConcern + func (m *CreateIndexes) FromBSOND(d bson.D) error + func (m *CreateIndexes) GetCollection() string + type CreateIndexesIndex struct + Background *bool + Bits int + BucketSize int + Collation bson.D + DefaultLanguage string + ExpireAfterSeconds *int + Hidden *bool + Key bson.D + LanguageOverride string + Max float64 + Min float64 + Name string + PartialFilterExpression bson.D + Sparse *bool + StorageEngine bson.D + TextIndexVersion int + TwoDSphereIndexVersion int + Unique *bool + Weights bson.D + WildcardProjection bson.D + type CurrentOp struct + All *bool + CurrentOp interface{} + Filter bson.D + OwnOps *bool + func (m *CurrentOp) FromBSOND(d bson.D) error + type Cursor struct + BatchSize *int32 + type Delete struct + Collection string + Deletes []bson.D + Hint interface{} + Ordered *bool + WriteConcern *WriteConcern + func (m *Delete) FromBSOND(d bson.D) error + func (m *Delete) GetCollection() string + type DeleteIndexes struct + Collection string + Index interface{} + func (m *DeleteIndexes) FromBSOND(d bson.D) error + func (m *DeleteIndexes) GetCollection() string + type Distinct struct + Collation *Collation + Collection string + Key string + MaxTimeMS *int64 + Query bson.D + ReadConcern *ReadConcern + func (m *Distinct) FromBSOND(d bson.D) error + func (m *Distinct) GetCollection() string + type Drop struct + Collection string + Comment string + WriteConcern *WriteConcern + func (m *Drop) FromBSOND(d bson.D) error + func (m *Drop) GetCollection() string + type DropDatabase struct + Comment string + DropDatabase int + WriteConcern *WriteConcern + func (m *DropDatabase) FromBSOND(d bson.D) error + type DropIndexes struct + Collection string + Index interface{} + WriteConcern *WriteConcern + func (m *DropIndexes) FromBSOND(d bson.D) error + func (m *DropIndexes) GetCollection() string + type EndSessions struct + SessionIDs []bsoncore.Document + func (m *EndSessions) FromBSOND(d bson.D) error + type Explain struct + Cmd Command + Comment string + Verbosity string + func (m *Explain) FromBSOND(d bson.D) error + func (m *Explain) GetCollection() string + type Find struct + AllowDiskUse *bool + AllowPartialResults *bool + AwaitData *bool + BatchSize *int32 + Collation *Collation + Collection string + Comment string + Filter bson.D + Hint interface{} + Limit *int64 + Max bson.D + MaxTimeMS *int64 + Min bson.D + NoCursorTimeout *bool + OplogReplay *bool + Projection bson.D + ReadConcern *ReadConcern + ReturnKey *bool + ShowRecordID *bool + ShowRecordId *bool + SingleBatch *bool + Skip *int64 + Sort bson.D + Tailable *bool + func (m *Find) FromBSOND(d bson.D) error + func (m *Find) GetCollection() string + type FindAndModify struct + ArrayFilters interface{} + BypassDocumentValidation *bool + Collation *Collation + Collection string + Fields bson.D + New *bool + Query bson.D + Remove *bool + Sort bson.D + Update bson.D + Upsert *bool + WriteConcern *WriteConcern + func (m *FindAndModify) FromBSOND(d bson.D) error + func (m *FindAndModify) GetCollection() string + type FindAndModifyLegacy struct + ArrayFilters interface{} + BypassDocumentValidation *bool + Collation *Collation + Collection string + Fields bson.D + New *bool + Query bson.D + Remove *bool + Sort bson.D + Update interface{} + Upsert *bool + WriteConcern *WriteConcern + func (m *FindAndModifyLegacy) FromBSOND(d bson.D) error + func (m *FindAndModifyLegacy) GetCollection() string + type GetMore struct + BatchSize *int32 + Collection string + CursorID int64 + func (m *GetMore) FromBSOND(d bson.D) error + func (m *GetMore) GetCollection() string + type GetNonce struct + GetNonce int + func (m *GetNonce) FromBSOND(d bson.D) error + type HedgeOptions struct + Enabled bool + type HostInfo struct + HostInfo interface{} + func (m *HostInfo) FromBSOND(d bson.D) error + type Insert struct + BypassDocumentValidation *bool + Collection string + Documents []bson.D + Ordered *bool + WriteConcern *WriteConcern + func (m *Insert) FromBSOND(d bson.D) error + func (m *Insert) GetCollection() string + type IsDBGrid struct + IsDBGrid int + func (m *IsDBGrid) FromBSOND(d bson.D) error + type IsMaster struct + Client bson.D + Compression []string + HelloOk bool + HostInfo string + IsMaster int + IsMasterLegacy int + func (m *IsMaster) FromBSOND(d bson.D) error + type KillAllSessions struct + KillAllSessions []KillAllSessionsFilter + func (m *KillAllSessions) FromBSOND(d bson.D) error + type KillAllSessionsFilter struct + DB string + User string + type KillCursors struct + Collection string + Cursors primitive.A + func (m *KillCursors) FromBSOND(d bson.D) error + func (m *KillCursors) GetCollection() string + type KillOp struct + Comment string + KillOp int + OpID int + func (m *KillOp) FromBSOND(d bson.D) error + type ListCollections struct + AuthorizedCollections *bool + AuthorizedDatabases *bool + Filter bson.D + ListCollections int + MaxTimeMS *int64 + NameOnly *bool + func (m *ListCollections) FromBSOND(d bson.D) error + type ListDatabases struct + AuthorizedDatabases *bool + Filter bson.D + ListDatabases int + NameOnly *bool + func (m *ListDatabases) FromBSOND(d bson.D) error + type ListIndexes struct + Collection string + func (m *ListIndexes) FromBSOND(d bson.D) error + func (m *ListIndexes) GetCollection() string + type Logout struct + Logout int + func (m *Logout) FromBSOND(d bson.D) error + type MapReduce struct + BypassDocumentValidation *bool + Collation *Collation + Collection string + CollectionLegacy string + Comment string + Finalize interface{} + JSMode *bool + Limit *int64 + Map interface{} + Out interface{} + Query bson.D + Reduce interface{} + Scope bson.D + Sort bson.D + Verbose *bool + WriteConcern *WriteConcern + func (m *MapReduce) FromBSOND(d bson.D) error + func (m *MapReduce) GetCollection() string + type OptionalDoc struct + func (t *OptionalDoc) IsZero() bool + type Ping struct + Ping int + func (m *Ping) FromBSOND(d bson.D) error + type ReadConcern struct + Level string + type ReadPreference struct + Mode string + TagSet bson.A + type SaslStart struct + AutoAuthorize int + Mechanism string + Options bson.D + Payload []byte + SaslStart int + func (m *SaslStart) FromBSOND(d bson.D) error + type ServerStatus struct + ServerStatus int + func (m *ServerStatus) FromBSOND(d bson.D) error + type Session struct + ClusterTime *ClusterTime + LSID bson.D + StmtIDs []int32 + TxnNumber *int64 + func (s *Session) GetSession() *Session + type ShardCollection struct + Collection string + Key bson.D + Unique *bool + func (m *ShardCollection) FromBSOND(d bson.D) error + func (m *ShardCollection) GetCollection() string + type Update struct + BypassDocumentValidation *bool + Collection string + Ordered *bool + Updates []UpdateStatement + WriteConcern *WriteConcern + func (m *Update) FromBSOND(d bson.D) error + func (m *Update) GetCollection() string + type UpdateStatement struct + ArrayFilters interface{} + Collation *Collation + Hint interface{} + Multi *bool + Query bson.D + U bson.D + Upsert *bool + type Validate struct + Collection string + Full *bool + func (m *Validate) FromBSOND(d bson.D) error + func (m *Validate) GetCollection() string + type WriteConcern struct + J bool + W interface{} + WTimeout time.Duration