Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIsMasterDoc ¶
func IsIsMasterValueTruthy ¶
Types ¶
type Command ¶
type Command string
const ( Unknown Command = "unknown" AbortTransaction Command = "abortTransaction" Aggregate Command = "aggregate" CommitTransaction Command = "commitTransaction" Count Command = "count" CreateIndexes Command = "createIndexes" Delete Command = "delete" Distinct Command = "distinct" Drop Command = "drop" DropDatabase Command = "dropDatabase" DropIndexes Command = "dropIndexes" EndSessions Command = "endSessions" Find Command = "find" FindAndModify Command = "findAndModify" GetMore Command = "getMore" Insert Command = "insert" IsMaster Command = "isMaster" Ismaster Command = "ismaster" ListCollections Command = "listCollections" ListIndexes Command = "listIndexes" ListDatabases Command = "listDatabases" MapReduce Command = "mapReduce" Update Command = "update" )
type Message ¶
func IsMasterResponse ¶
func IsMasterResponse(responseTo int32, topologyKind description.TopologyKind) (*Message, error)
hard-coded response, emulating an upstream isMaster response from MongoDB
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) Description ¶
func (m *Mongo) Description() description.Topology
type Operation ¶
type Operation interface { fmt.Stringer OpCode() wiremessage.OpCode Encode(responseTo int32) []byte IsIsMaster() bool CursorID() (cursorID int64, ok bool) RequestID() int32 Error() error Unacknowledged() bool CommandAndCollection() (Command, string) TransactionDetails() *TransactionDetails ReadPref() (rpref *readpref.ReadPref, ok bool) }
type TransactionDetails ¶
Click to show internal directories.
Click to hide internal directories.