index

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTypeDescendingOrder = -1
	KeyTypeAscendingOrder  = 1
	KeyTypeText            = "text"
	KeyType2d              = "2d"
	KeyType2dsphere        = "2dsphere"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key interface {
	ToBsonD() bson.D
}

func Keys

func Keys(k1 Key, keys ...Key) Key

func NewKey

func NewKey(f mongodb.Field, keyType KeyType) Key

keyType 常用: 1 升序;-1 降序;"2dsphere"; "2d"; "text"。具体可以查阅mongodb文档

type KeyType

type KeyType = interface{}

Jump to

Keyboard shortcuts

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