gwmongo

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gwmongo_objectid_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ObjectId

type ObjectId struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func NewObjectId

func NewObjectId(id primitive.ObjectID) *ObjectId

NewObjectId creates proto ObjectId from MongoDB ObjectID

func (*ObjectId) Descriptor deprecated

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

Deprecated: Use ObjectId.ProtoReflect.Descriptor instead.

func (*ObjectId) GetObjectID

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

GetObjectID returns MongoDB object ID

func (*ObjectId) GetValue

func (x *ObjectId) GetValue() string

func (*ObjectId) ProtoMessage

func (*ObjectId) ProtoMessage()

func (*ObjectId) ProtoReflect

func (x *ObjectId) ProtoReflect() protoreflect.Message

func (*ObjectId) Reset

func (x *ObjectId) Reset()

func (*ObjectId) String

func (x *ObjectId) String() string

Jump to

Keyboard shortcuts

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