Documentation ¶
Index ¶
- type ObjectId
- func (*ObjectId) Descriptor() ([]byte, []int)
- func (o *ObjectId) GetObjectID() (primitive.ObjectID, error)
- func (m *ObjectId) GetValue() string
- func (o *ObjectId) MarshalJSONPB(m *jsonpb.Marshaler) ([]byte, error)
- func (*ObjectId) ProtoMessage()
- func (m *ObjectId) Reset()
- func (m *ObjectId) String() string
- func (o *ObjectId) UnmarshalJSONPB(m *jsonpb.Unmarshaler, data []byte) error
- func (m *ObjectId) XXX_DiscardUnknown()
- func (m *ObjectId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ObjectId) XXX_Merge(src proto.Message)
- func (m *ObjectId) XXX_Size() int
- func (m *ObjectId) XXX_Unmarshal(b []byte) error
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 ¶
NewObjectId creates proto ObjectId from MongoDB ObjectID
func (*ObjectId) Descriptor ¶
func (*ObjectId) GetObjectID ¶
GetObjectID returns MongoDB object ID
func (*ObjectId) MarshalJSONPB ¶
MarshalJSONPB marshals ObjectId to JSONPB string
func (*ObjectId) ProtoMessage ¶
func (*ObjectId) ProtoMessage()
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 (*ObjectId) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.