mongo-drivergo.mongodb.org/mongo-driver/mongo/deleteopt Index | Files

package deleteopt

import "go.mongodb.org/mongo-driver/mongo/deleteopt"

Index

Types

type Delete

type Delete interface {
	// contains filtered or unexported methods
}

Delete represents all passable params for the delete() function.

type DeleteBundle

type DeleteBundle struct {
	// contains filtered or unexported fields
}

DeleteBundle is a bundle of Delete options

func BundleDelete

func BundleDelete(opts ...Delete) *DeleteBundle

BundleDelete bundles Delete options.

func (*DeleteBundle) Collation

func (db *DeleteBundle) Collation(c *mongoopt.Collation) *DeleteBundle

Collation adds an option to specify a collation.

func (*DeleteBundle) ConvertDeleteOption

func (db *DeleteBundle) ConvertDeleteOption() option.DeleteOptioner

ConvertDeleteOption implements the Delete interface.

func (*DeleteBundle) String

func (db *DeleteBundle) String() string

String implements the Stringer interface

func (*DeleteBundle) Unbundle

func (db *DeleteBundle) Unbundle(deduplicate bool) ([]option.DeleteOptioner, *session.Client, error)

Unbundle transforms a bundle into a slice of options, optionally deduplicating

type DeleteOption

type DeleteOption interface {
	Delete
	ConvertDeleteOption() option.DeleteOptioner
}

DeleteOption represents the options for the delete() function.

type DeleteSession

type DeleteSession interface {
	Delete
	ConvertDeleteSession() *session.Client
}

DeleteSession is the session for the delete() function

type DeleteSessionOpt

type DeleteSessionOpt struct{}

DeleteSessionOpt is an delete session option.

func (DeleteSessionOpt) ConvertDeleteSession

func (DeleteSessionOpt) ConvertDeleteSession() *session.Client

ConvertDeleteSession implements the DeleteSession interface.

type OptCollation

type OptCollation option.OptCollation

OptCollation specifies a collation.

func Collation

func Collation(c *mongoopt.Collation) OptCollation

Collation specifies a collation.

func (OptCollation) ConvertDeleteOption

func (opt OptCollation) ConvertDeleteOption() option.DeleteOptioner

ConvertDeleteOption implements the Delete interface.

Source Files

deleteopt.go

Version
v0.0.12
Published
Aug 16, 2018
Platform
darwin/amd64
Imports
4 packages
Last checked
5 seconds ago

Tools for package owners.