deleteopt

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 added in v0.0.10

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

DeleteOption represents the options for the delete() function.

type DeleteSession added in v0.0.10

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

DeleteSession is the session for the delete() function

type DeleteSessionOpt added in v0.0.10

type DeleteSessionOpt struct{}

DeleteSessionOpt is an delete session option.

func (DeleteSessionOpt) ConvertDeleteSession added in v0.0.10

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL