Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProtoStructType = reflect.TypeOf(structpb.Struct{}) ProtoValueType = reflect.TypeOf(structpb.Value{}) ProtoListValueType = reflect.TypeOf(structpb.ListValue{}) ProtoValueStructType = reflect.TypeOf(structpb.Value_StructValue{}) ProtoValueNumberType = reflect.TypeOf(structpb.Value_NumberValue{}) ProtoValueStringType = reflect.TypeOf(structpb.Value_StringValue{}) ProtoValueBoolType = reflect.TypeOf(structpb.Value_BoolValue{}) ProtoValueNullType = reflect.TypeOf(structpb.Value_NullValue{}) ProtoValueListType = reflect.TypeOf(structpb.Value_ListValue{}) ProtoValueNullPtrType = reflect.TypeOf(&structpb.Value_NullValue{}) )
View Source
var DefaultListCodec = ListCodec{}
View Source
var DefaultStructCodec = StructCodec{}
View Source
var DefaultValueCodec = ValueCodec{}
Functions ¶
This section is empty.
Types ¶
type ListCodec ¶
type ListCodec struct{}
func (ListCodec) DecodeValue ¶
func (c ListCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
func (ListCodec) EncodeValue ¶
func (c ListCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
type StructCodec ¶
type StructCodec struct{}
func (StructCodec) DecodeValue ¶
func (c StructCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
func (StructCodec) EncodeValue ¶
func (c StructCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
type ValueCodec ¶
type ValueCodec struct{}
func (ValueCodec) DecodeValue ¶
func (c ValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
func (ValueCodec) EncodeValue ¶
func (c ValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
Click to show internal directories.
Click to hide internal directories.