field

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arrays

func Arrays(name string) *arrayBuilder

Arrays 对象数组

func Bool

func Bool(name string) *builder

Bool 布尔

func Bytes

func Bytes(name string) *builder

Bytes 二进制

func DbPointer

func DbPointer(name string) *builder

DbPointer 坐标

func Decimal128

func Decimal128(name string) *builder

Decimal128 Decimal128

func Float

func Float(name string) *builder

Float Float

func Floats

func Floats(name string) *builder

Floats 浮点数组

func Int32

func Int32(name string) *builder

Int32 Int32

func Int32s

func Int32s(name string) *builder

Int32s int32数组

func Int64

func Int64(name string) *builder

Int64 Int64

func Int64s

func Int64s(name string) *builder

Int64s int64数组

func JavaScript

func JavaScript(name string) *builder

JavaScript JavaScript

func JavaScriptScope

func JavaScriptScope(name string) *builder

JavaScriptScope JavaScriptScope

func Object

func Object(name string) *embedBuilder

Object 内嵌对象

func ObjectId

func ObjectId(name string) *builder

ObjectId ObjectId

func Regular

func Regular(name string) *builder

Regular 正则表达式

func String

func String(name string) *builder

String 字符串

func Strings

func Strings(name string) *builder

Strings 字符串数组

func Symbol

func Symbol(name string) *builder

Symbol 标志

func Time

func Time(name string) *builder

Time 日期

func Timestamp

func Timestamp(name string) *builder

Timestamp 时间戳

Types

type Descriptor

type Descriptor struct {
	Tag       string          // struct tag.
	Name      string          // field name.
	FieldType types.MongoType // field type
	Optional  bool            // nullable field in database.
	EmbedData []*Descriptor   // 内嵌结构
	ArrayType types.MongoType // 数组结构
	Err       error
}

A Descriptor for field configuration.

Jump to

Keyboard shortcuts

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