Documentation ¶
Index ¶
Constants ¶
View Source
const TypeURLField = "pb_type"
Variables ¶
This section is empty.
Functions ¶
func ConvertToBytesReader ¶
func ConvertToBytesReader(reader interface{}) bsonrw.BytesReader
func DecodeStructWithTypeInfo ¶
func DecodeStructWithTypeInfo( context bsoncodec.DecodeContext, reader bsonrw.ValueReader, typeResolver func(string) (reflect.Type, error), ) (reflect.Value, error)
Decode a document with the type information appended as a field. typeResolver must hand back the (non-pointer) message type
func EncodeStructWithTypeInfo ¶
func EncodeStructWithTypeInfo( context bsoncodec.EncodeContext, writer bsonrw.ValueWriter, value proto.Message, typeIdentifier string, ) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.