Documentation
¶
Overview ¶
Package result contains the results from various operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct {
OK bool `bson:"ok"`
GitVersion string `bson:"gitVersion,omitempty"`
Version string `bson:"version,omitempty"`
VersionArray []uint8 `bson:"versionArray,omitempty"`
}
BuildInfo is a result of a BuildInfo command.
type CreateIndexes ¶
type CreateIndexes struct {
CreatedCollectionAutomatically bool `bson:"createdCollectionAutomatically"`
IndexesBefore int `bson:"numIndexesBefore"`
IndexesAfter int `bson:"numIndexesAfter"`
}
CreateIndexes is a result of a CreateIndexes command.
type Distinct ¶
type Distinct struct {
Values []interface{}
}
Distinct is a result from a Distinct command.
type Document ¶
type Document struct{}
Document is a result from a command that returns a single Document.
type FindAndModify ¶
type FindAndModify struct {
Value bson.Reader
LastErrorObject struct {
UpdatedExisting bool
Upserted interface{}
}
}
FindAndModify is a result from a findAndModify command.
type GetLastError ¶
type GetLastError struct {
ConnectionID uint32 `bson:"connectionId"`
}
GetLastError is a result of a GetLastError command.
type IsMaster ¶
type IsMaster struct {
Arbiters []string `bson:"arbiters,omitempty"`
ArbiterOnly bool `bson:"arbiterOnly,omitempty"`
ElectionID objectid.ObjectID `bson:"electionId,omitempty"`
Hidden bool `bson:"hidden,omitempty"`
Hosts []string `bson:"hosts,omitempty"`
IsMaster bool `bson:"ismaster,omitempty"`
IsReplicaSet bool `bson:"isreplicaset,omitempty"`
LastWriteTimestamp time.Time `bson:"lastWriteDate,omitempty"`
MaxBSONObjectSize uint32 `bson:"maxBsonObjectSize,omitempty"`
MaxMessageSizeBytes uint32 `bson:"maxMessageSizeBytes,omitempty"`
MaxWriteBatchSize uint16 `bson:"maxWriteBatchSize,omitempty"`
Me string `bson:"me,omitempty"`
MaxWireVersion int32 `bson:"maxWireVersion,omitempty"`
MinWireVersion int32 `bson:"minWireVersion,omitempty"`
Msg string `bson:"msg,omitempty"`
OK int32 `bson:"ok"`
Passives []string `bson:"passives,omitempty"`
ReadOnly bool `bson:"readOnly,omitempty"`
Secondary bool `bson:"secondary,omitempty"`
SetName string `bson:"setName,omitempty"`
SetVersion uint32 `bson:"setVersion,omitempty"`
Tags map[string]string `bson:"tags,omitempty"`
}
IsMaster is a result of an IsMaster command.
type KillCursors ¶
type KillCursors struct {
CursorsKilled []int64 `bson:"cursorsKilled"`
CursorsNotFound []int64 `bson:"cursorsNotFound"`
CursorsAlive []int64 `bson:"cursorsAlive"`
}
KillCursors is a result of a KillCursors command.
Click to show internal directories.
Click to hide internal directories.