pmongo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectId

type ObjectId struct {
	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewObjectId

func NewObjectId(id primitive.ObjectID) *ObjectId

NewObjectId creates proto ObjectId from MongoDB ObjectID

func (*ObjectId) Descriptor

func (*ObjectId) Descriptor() ([]byte, []int)

func (*ObjectId) GetObjectID

func (o *ObjectId) GetObjectID() (primitive.ObjectID, error)

GetObjectID returns MongoDB object ID

func (*ObjectId) GetValue

func (m *ObjectId) GetValue() string

func (*ObjectId) MarshalJSONPB

func (o *ObjectId) MarshalJSONPB(m *jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB marshals ObjectId to JSONPB string

func (*ObjectId) ProtoMessage

func (*ObjectId) ProtoMessage()

func (*ObjectId) Reset

func (m *ObjectId) Reset()

func (*ObjectId) String

func (m *ObjectId) String() string

func (*ObjectId) UnmarshalJSONPB

func (o *ObjectId) UnmarshalJSONPB(m *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB unmarshal JSONPB string to ObjectId

func (*ObjectId) XXX_DiscardUnknown

func (m *ObjectId) XXX_DiscardUnknown()

func (*ObjectId) XXX_Marshal

func (m *ObjectId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ObjectId) XXX_Merge

func (m *ObjectId) XXX_Merge(src proto.Message)

func (*ObjectId) XXX_Size

func (m *ObjectId) XXX_Size() int

func (*ObjectId) XXX_Unmarshal

func (m *ObjectId) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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