Documentation ¶
Index ¶
- type AggregateOptioner
- type CollationOptions
- type CountOptioner
- type CursorType
- type DeleteOptioner
- type DistinctOptioner
- type FindOneAndDeleteOptioner
- type FindOneAndReplaceOptioner
- type FindOneAndUpdateOptioner
- type FindOptioner
- type InsertManyOptioner
- type InsertOneOptioner
- type InsertOptioner
- type OptAllowDiskUse
- type OptAllowPartialResults
- type OptArrayFilters
- type OptBatchSize
- type OptBypassDocumentValidation
- type OptCollation
- type OptComment
- type OptCursorType
- type OptHint
- type OptLimit
- type OptMax
- type OptMaxAwaitTime
- type OptMaxScan
- type OptMaxTime
- type OptMin
- type OptNoCursorTimeout
- type OptOplogReplay
- type OptOrdered
- type OptProjection
- type OptReturnDocument
- type OptReturnKey
- type OptShowRecordID
- type OptSkip
- type OptSnapshot
- type OptSort
- type OptUpsert
- type Optioner
- type ReplaceOptioner
- type ReturnDocument
- type UpdateOptioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateOptioner ¶
type AggregateOptioner interface { Optioner // contains filtered or unexported methods }
AggregateOptioner is the interface implemented by types that can be used as Options for an Aggregate command.
type CollationOptions ¶
type CollationOptions struct { Locale string `bson:",omitempty"` CaseLevel bool `bson:",omitempty"` CaseFirst string `bson:",omitempty"` Strength int `bson:",omitempty"` NumericOrdering bool `bson:",omitempty"` Alternate string `bson:",omitempty"` MaxVariable string `bson:",omitempty"` Backwards bool `bson:",omitempty"` }
CollationOptions allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.
func (*CollationOptions) MarshalBSONDocument ¶
func (co *CollationOptions) MarshalBSONDocument() (*bson.Document, error)
MarshalBSONDocument implements the bson.DocumentMarshaler interface.
type CountOptioner ¶
type CountOptioner interface { Optioner // contains filtered or unexported methods }
CountOptioner is the interface implemented by types that can be used as Options for Count commands.
type CursorType ¶
type CursorType int8
CursorType specifies whether a cursor should close when the last data is retrieved. See NonTailable, Tailable, and TailableAwait.
const ( // NonTailable specifies that a cursor should close after retrieving the last data. NonTailable CursorType = iota // Tailable specifies that a cursor should not close when the last data is retrieved. Tailable // TailableAwait specifies that a cursor should not close when the last data is retrieved and // that it should block for a certain amount of time for new data before returning no data. TailableAwait )
type DeleteOptioner ¶
type DeleteOptioner interface { Optioner // contains filtered or unexported methods }
DeleteOptioner is the interface implemented by types that can be used as Options for Delete commands.
type DistinctOptioner ¶
type DistinctOptioner interface { Optioner // contains filtered or unexported methods }
DistinctOptioner is the interface implemented by types that can be used as Options for Distinct commands.
type FindOneAndDeleteOptioner ¶
type FindOneAndDeleteOptioner interface { Optioner // contains filtered or unexported methods }
FindOneAndDeleteOptioner is the interface implemented by types that can be used as Options for FindOneAndDelete commands.
type FindOneAndReplaceOptioner ¶
type FindOneAndReplaceOptioner interface { Optioner // contains filtered or unexported methods }
FindOneAndReplaceOptioner is the interface implemented by types that can be used as Options for FindOneAndReplace commands.
type FindOneAndUpdateOptioner ¶
type FindOneAndUpdateOptioner interface { Optioner // contains filtered or unexported methods }
FindOneAndUpdateOptioner is the interface implemented by types that can be used as Options for FindOneAndUpdate commands.
type FindOptioner ¶
type FindOptioner interface { Optioner // contains filtered or unexported methods }
FindOptioner is the interface implemented by types that can be used as Options for Find commands.
type InsertManyOptioner ¶
type InsertManyOptioner interface { Optioner // contains filtered or unexported methods }
InsertManyOptioner is the interface implemented by types that can be used as Options for InsertMany commands.
type InsertOneOptioner ¶
type InsertOneOptioner interface { Optioner // contains filtered or unexported methods }
InsertOneOptioner is the interface implemented by types that can be used as Options for InsertOne commands.
type InsertOptioner ¶
type InsertOptioner interface { Optioner // contains filtered or unexported methods }
InsertOptioner is the interface implemented by types that can be used as Options for Insert commands.
type OptAllowDiskUse ¶
type OptAllowDiskUse bool
OptAllowDiskUse is for internal use.
func (OptAllowDiskUse) Option ¶
func (opt OptAllowDiskUse) Option(d *bson.Document)
Option implements the Optioner interface.
type OptAllowPartialResults ¶
type OptAllowPartialResults bool
OptAllowPartialResults is for internal use.
func (OptAllowPartialResults) Option ¶
func (opt OptAllowPartialResults) Option(d *bson.Document)
Option implements the Optioner interface.
type OptArrayFilters ¶
OptArrayFilters is for internal use.
func (OptArrayFilters) Option ¶
func (opt OptArrayFilters) Option(d *bson.Document)
Option implements the Optioner interface.
type OptBatchSize ¶
type OptBatchSize int32
OptBatchSize is for internal use.
func (OptBatchSize) Option ¶
func (opt OptBatchSize) Option(d *bson.Document)
Option implements the Optioner interface.
type OptBypassDocumentValidation ¶
type OptBypassDocumentValidation bool
OptBypassDocumentValidation is for internal use.
func (OptBypassDocumentValidation) Option ¶
func (opt OptBypassDocumentValidation) Option(d *bson.Document)
Option implements the Optioner interface.
type OptCollation ¶
type OptCollation struct{ Collation *CollationOptions }
OptCollation is for internal use.
func (OptCollation) Option ¶
func (opt OptCollation) Option(d *bson.Document)
Option implements the Optioner interface.
type OptComment ¶
type OptComment string
OptComment is for internal use.
func (OptComment) Option ¶
func (opt OptComment) Option(d *bson.Document)
Option implements the Optioner interface.
type OptCursorType ¶
type OptCursorType CursorType
OptCursorType is for internal use.
func (OptCursorType) Option ¶
func (opt OptCursorType) Option(d *bson.Document)
Option implements the Optioner interface.
type OptMaxAwaitTime ¶
OptMaxAwaitTime is for internal use.
func (OptMaxAwaitTime) Option ¶
func (opt OptMaxAwaitTime) Option(d *bson.Document)
Option implements the Optioner interface.
type OptMaxScan ¶
type OptMaxScan int64
OptMaxScan is for internal use.
func (OptMaxScan) Option ¶
func (opt OptMaxScan) Option(d *bson.Document)
Option implements the Optioner interface.
type OptMaxTime ¶
OptMaxTime is for internal use.
func (OptMaxTime) Option ¶
func (opt OptMaxTime) Option(d *bson.Document)
Option implements the Optioner interface.
type OptNoCursorTimeout ¶
type OptNoCursorTimeout bool
OptNoCursorTimeout is for internal use.
func (OptNoCursorTimeout) Option ¶
func (opt OptNoCursorTimeout) Option(d *bson.Document)
Option implements the Optioner interface.
type OptOplogReplay ¶
type OptOplogReplay bool
OptOplogReplay is for internal use.
func (OptOplogReplay) Option ¶
func (opt OptOplogReplay) Option(d *bson.Document)
Option implements the Optioner interface.
type OptOrdered ¶
type OptOrdered bool
OptOrdered is for internal use.
func (OptOrdered) Option ¶
func (opt OptOrdered) Option(d *bson.Document)
Option implements the Optioner interface.
type OptProjection ¶
OptProjection is for internal use.
func (OptProjection) IsFind ¶
func (opt OptProjection) IsFind() OptProjection
IsFind is for internal use.
func (OptProjection) Option ¶
func (opt OptProjection) Option(d *bson.Document)
Option implements the Optioner interface.
type OptReturnDocument ¶
type OptReturnDocument ReturnDocument
OptReturnDocument is for internal use.
func (OptReturnDocument) Option ¶
func (opt OptReturnDocument) Option(d *bson.Document)
Option implements the Optioner interface.
type OptReturnKey ¶
type OptReturnKey bool
OptReturnKey is for internal use.
func (OptReturnKey) Option ¶
func (opt OptReturnKey) Option(d *bson.Document)
Option implements the Optioner interface.
type OptShowRecordID ¶
type OptShowRecordID bool
OptShowRecordID is for internal use.
func (OptShowRecordID) Option ¶
func (opt OptShowRecordID) Option(d *bson.Document)
Option implements the Optioner interface.
type OptSnapshot ¶
type OptSnapshot bool
OptSnapshot is for internal use.
func (OptSnapshot) Option ¶
func (opt OptSnapshot) Option(d *bson.Document)
Option implements the Optioner interface.
type Optioner ¶
Optioner is the interface implemented by types that can be used as options to a command.
type ReplaceOptioner ¶
type ReplaceOptioner interface { UpdateOptioner // contains filtered or unexported methods }
ReplaceOptioner is the interface implemented by types that can be used as Options for Update commands.
type ReturnDocument ¶
type ReturnDocument int8
ReturnDocument specifies whether a findAndUpdate operation should return the document as it was before the update or as it is after the update.
const ( // Before specifies that findAndUpdate should return the document as it was before the update. Before ReturnDocument = iota // After specifies that findAndUpdate should return the document as it is after the update. After )
type UpdateOptioner ¶
type UpdateOptioner interface { Optioner // contains filtered or unexported methods }
UpdateOptioner is the interface implemented by types that can be used as Options for Update commands.