sorts

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ascending

func Ascending(fieldNames ...string) bsonx.Bson

func Descending

func Descending(fieldNames ...string) bsonx.Bson

func MetaTextScore

func MetaTextScore(fieldName string) bsonx.Bson

func OrderBy

func OrderBy(sorts ...bsonx.Bson) bsonx.Bson

func OrderByFiled

func OrderByFiled(fieldNames []string, value bsonx.IBsonValue) bsonx.Bson

Types

type CompoundSort

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

func NewCompoundSort

func NewCompoundSort(sorts ...bsonx.Bson) CompoundSort

func (CompoundSort) BsonDocument

func (s CompoundSort) BsonDocument() *bsonx.BsonDocument

func (CompoundSort) Document

func (s CompoundSort) Document() bson.D

Jump to

Keyboard shortcuts

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