types

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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Invalid          MongoType = 0x00
	Double           MongoType = 0x01
	String           MongoType = 0x02
	EmbeddedDocument MongoType = 0x03
	Array            MongoType = 0x04
	Binary           MongoType = 0x05
	Undefined        MongoType = 0x06
	ObjectID         MongoType = 0x07
	Boolean          MongoType = 0x08
	DateTime         MongoType = 0x09
	Null             MongoType = 0x0A
	Regex            MongoType = 0x0B
	DBPointer        MongoType = 0x0C
	JavaScript       MongoType = 0x0D
	Symbol           MongoType = 0x0E
	CodeWithScope    MongoType = 0x0F
	Int32            MongoType = 0x10
	Timestamp        MongoType = 0x11
	Int64            MongoType = 0x12
	Decimal128       MongoType = 0x13
	MinKey           MongoType = 0xFF
	MaxKey           MongoType = 0x7F

	BinaryGeneric     byte = 0x00
	BinaryFunction    byte = 0x01
	BinaryBinaryOld   byte = 0x02
	BinaryUUIDOld     byte = 0x03
	BinaryUUID        byte = 0x04
	BinaryMD5         byte = 0x05
	BinaryEncrypted   byte = 0x06
	BinaryColumn      byte = 0x07
	BinaryUserDefined byte = 0x80
)

List of field types.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapEntry

type MapEntry struct {
	Key   string
	Value SortType
}

type MongoType

type MongoType uint8

A MongoType represents a field type.

type SortType

type SortType string
const (
	TypeAsc         SortType = "1"
	TypeDesc        SortType = "-1"
	Type2D          SortType = "2d"
	Type2dSphere    SortType = "2dsphere"
	TypeGeoHaystack SortType = "geoHaystack"
	TypeHashed      SortType = "hashed"
	TypeText        SortType = "text"
)

Jump to

Keyboard shortcuts

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