mongo-drivergo.mongodb.org/mongo-driver/bson/primitive Index | Files

package primitive

import "go.mongodb.org/mongo-driver/bson/primitive"

Package primitive contains types similar to Go primitives for BSON types can do not have direct Go primitive representations.

Index

Types

type Binary

type Binary struct {
	Subtype byte
	Data    []byte
}

Binary represents a BSON binary value.

func (Binary) Equal

func (bp Binary) Equal(bp2 Binary) bool

Equal compaes bp to bp2 and returns true is the are equal.

type CodeWithScope

type CodeWithScope struct {
	Code  JavaScript
	Scope interface{}
}

CodeWithScope represents a BSON JavaScript code with scope value.

func (CodeWithScope) String

func (cws CodeWithScope) String() string

type DBPointer

type DBPointer struct {
	DB      string
	Pointer objectid.ObjectID
}

DBPointer represents a BSON dbpointer value.

func (DBPointer) Equal

func (d DBPointer) Equal(d2 DBPointer) bool

Equal compaes d to d2 and returns true is the are equal.

func (DBPointer) String

func (d DBPointer) String() string

type DateTime

type DateTime int64

DateTime represents the BSON datetime value.

type JavaScript

type JavaScript string

JavaScript represents a BSON JavaScript code value.

type MaxKey

type MaxKey struct{}

MaxKey represents the BSON maxkey value.

type MinKey

type MinKey struct{}

MinKey represents the BSON minkey value.

type Null

type Null struct{}

Null repreesnts the BSON null value.

type Regex

type Regex struct {
	Pattern string
	Options string
}

Regex represents a BSON regex value.

func (Regex) Equal

func (rp Regex) Equal(rp2 Regex) bool

Equal compaes rp to rp2 and returns true is the are equal.

func (Regex) String

func (rp Regex) String() string

type Symbol

type Symbol string

Symbol represents a BSON symbol value.

type Timestamp

type Timestamp struct {
	T uint32
	I uint32
}

Timestamp represents a BSON timestamp value.

func (Timestamp) Equal

func (tp Timestamp) Equal(tp2 Timestamp) bool

Equal compaes tp to tp2 and returns true is the are equal.

type Undefined

type Undefined struct{}

Undefined represents the BSON undefined value type.

Source Files

primitive.go

Version
v0.0.18
Published
Nov 15, 2018
Platform
darwin/amd64
Imports
3 packages
Last checked
19 minutes ago

Tools for package owners.