Documentation ¶
Overview ¶
Package util provides general assistance to the parser and other areas of code. The package is entirely self contained and should not reference anything not already contained in the standard go release.
Index ¶
Constants ¶
View Source
const ( ComponentNone Component = 0 ComponentAccess = 1 << iota ComponentAccessControl ComponentASIO ComponentBridge ComponentCommand ComponentConnPool ComponentControl ComponentDefault ComponentElection ComponentExecutor ComponentFTDC ComponentGeo ComponentHeartbeats ComponentIndex ComponentInitialSync ComponentJournal ComponentNetwork ComponentQuery ComponentRecovery ComponentRepl ComponentReplication ComponentReplHB ComponentRollback ComponentSharding ComponentShardingRefr ComponentStorage ComponentTotal ComponentTracking ComponentWrite ComponentUnknown )
View Source
const ( SeverityNone Severity = 0 SeverityD = 1 << iota // Debug SeverityD1 // Debug 1 SeverityD2 // Debug 2 SeverityD3 // Debug 3 SeverityD4 // Debug 4 SeverityD5 // Debug 5 SeverityE // Error SeverityF // Severe/Fatal SeverityI // Information/Log SeverityW // Warning )
Variables ¶
View Source
var COUNTERS = map[string]string{
"cursorExhausted": "cursorExhausted",
"cursorid": "cursorid",
"docsExamined": "docsExamined",
"fastmod": "fastmod",
"fastmodinsert": "fastmodinsert",
"exhaust": "exhaust",
"fromMultiPlanner": "fromMultiPlanner",
"hasSortStage": "hasSortStage",
"idhack": "idhack",
"keysDeleted": "keysDeleted",
"keysExamined": "keysExamined",
"keysInserted": "keysInserted",
"ndeleted": "ndeleted",
"nDeleted": "ndeleted",
"ninserted": "ninserted",
"nInserted": "ninserted",
"nmatched": "nmatched",
"nMatched": "nmatched",
"nmodified": "nmodified",
"nModified": "nmodified",
"nmoved": "nmoved",
"nscanned": "keysExamined",
"nscannedObjects": "docsExamined",
"nreturned": "nreturned",
"ntoreturn": "ntoreturn",
"ntoskip": "notoskip",
"planSummary": "planSummary",
"numYields": "numYields",
"keyUpdates": "keyUpdates",
"replanned": "replanned",
"reslen": "reslen",
"scanAndOrder": "scanAndOrder",
"upsert": "upsert",
"writeConflicts": "writeConflicts",
}
ref: /mongo/src/mongo/db/curop.cpp
View Source
var OPERATIONS = []string{
"aggregate",
"command",
"count",
"distinct",
"find",
"geoNear",
"geonear",
"getMore",
"getmore",
"insert",
"mapreduce",
"query",
"remove",
"update",
}
View Source
var OPERATORS_COMPARISON = []string{
"$all",
"$bitsAllClear",
"$bitsAllSet",
"$bitsAnyClear",
"$bitsAnySet",
"$eq",
"$exists",
"$gt",
"$gte",
"$in",
"$lt",
"$lte",
"$ne",
"$size",
"$type",
}
View Source
var OPERATORS_EXPRESSION = []string{
"$box",
"$center",
"$centerSphere",
"$comment",
"$elemMatch",
"$expr",
"$geoIntersects",
"$geoWithin",
"$geometry",
"$jsonSchema",
"$mod",
"$near",
"$nearSphere",
"$regex",
"$text",
"$where",
}
View Source
var OPERATORS_LOGICAL = []string{
"$and",
"$nin",
"$nor",
"$not",
"$or",
}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.