Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var TypeBoolValue = reflect.TypeOf((*wrapperspb.BoolValue)(nil))
BoolValue type.
var TypeBytesValue = reflect.TypeOf((*wrapperspb.BytesValue)(nil))
BytesValue type.
var TypeDoubleValue = reflect.TypeOf((*wrapperspb.DoubleValue)(nil))
DoubleValue type.
var TypeDuration = reflect.TypeOf((*durationpb.Duration)(nil))
Duration type.
var TypeFloatValue = reflect.TypeOf((*wrapperspb.FloatValue)(nil))
FloatValue type.
var TypeInt32Value = reflect.TypeOf((*wrapperspb.Int32Value)(nil))
Int32Value type.
var TypeInt64Value = reflect.TypeOf((*wrapperspb.Int64Value)(nil))
Int64Value type.
var TypeStringValue = reflect.TypeOf((*wrapperspb.StringValue)(nil))
StringValue type.
var TypeTimestamp = reflect.TypeOf((*timestamppb.Timestamp)(nil))
Timestamp type.
var TypeUInt32Value = reflect.TypeOf((*wrapperspb.UInt32Value)(nil))
UInt32Value type.
var TypeUInt64Value = reflect.TypeOf((*wrapperspb.UInt64Value)(nil))
UInt64Value type.
Functions ¶
This section is empty.
Types ¶
type BoolValueCodec ¶
type BoolValueCodec struct{}
BoolValueCodec is the Codec used for *wrapperspb.BoolValue values.
func NewBoolValueCodec ¶
func NewBoolValueCodec() *BoolValueCodec
NewBoolValueCodec returns a BoolValueCodec.
func (*BoolValueCodec) DecodeValue ¶
func (c *BoolValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.BoolValue.
func (*BoolValueCodec) EncodeValue ¶
func (c *BoolValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.BoolValue.
type BytesValueCodec ¶
type BytesValueCodec struct{}
BytesValueCodec is the Codec used for *wrapperspb.BytesValue values.
func NewBytesValueCodec ¶
func NewBytesValueCodec() *BytesValueCodec
NewBytesValueCodec returns a BytesValueCodec.
func (*BytesValueCodec) DecodeValue ¶
func (c *BytesValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.BytesValue.
func (*BytesValueCodec) EncodeValue ¶
func (c *BytesValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.BytesValue.
type DoubleValueCodec ¶
type DoubleValueCodec struct{}
DoubleValueCodec is the Codec used for *wrapperspb.DoubleValue values.
func NewDoubleValueCodec ¶
func NewDoubleValueCodec() *DoubleValueCodec
NewDoubleValueCodec returns a DoubleValueCodec.
func (*DoubleValueCodec) DecodeValue ¶
func (c *DoubleValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.DoubleValue.
func (*DoubleValueCodec) EncodeValue ¶
func (c *DoubleValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.DoubleValue.
type DurationCodec ¶
type DurationCodec struct{}
DurationCodec is the Codec used for *durationpb.Duration values.
func NewDurationCodec ¶
func NewDurationCodec() *DurationCodec
NewDurationCodec returns a DurationCodec.
func (*DurationCodec) DecodeValue ¶
func (c *DurationCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *durationpb.Duration.
func (*DurationCodec) EncodeValue ¶
func (c *DurationCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *durationpb.Duration.
type FloatValueCodec ¶
type FloatValueCodec struct{}
FloatValueCodec is the Codec used for *wrapperspb.FloatValue values.
func NewFloatValueCodec ¶
func NewFloatValueCodec() *FloatValueCodec
NewFloatValueCodec returns a FloatValueCodec.
func (*FloatValueCodec) DecodeValue ¶
func (c *FloatValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.FloatValue.
func (*FloatValueCodec) EncodeValue ¶
func (c *FloatValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.FloatValue.
type Int32ValueCodec ¶
type Int32ValueCodec struct{}
Int32ValueCodec is the Codec used for *wrapperspb.Int32Value values.
func NewInt32ValueCodec ¶
func NewInt32ValueCodec() *Int32ValueCodec
NewInt32ValueCodec returns a Int32ValueCodec.
func (*Int32ValueCodec) DecodeValue ¶
func (c *Int32ValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.Int32Value.
func (*Int32ValueCodec) EncodeValue ¶
func (c *Int32ValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.Int32Value.
type Int64ValueCodec ¶
type Int64ValueCodec struct{}
Int64ValueCodec is the Codec used for *wrapperspb.Int64Value values.
func NewInt64ValueCodec ¶
func NewInt64ValueCodec() *Int64ValueCodec
NewInt64ValueCodec returns a Int64ValueCodec.
func (*Int64ValueCodec) DecodeValue ¶
func (c *Int64ValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.Int64Value.
func (*Int64ValueCodec) EncodeValue ¶
func (c *Int64ValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.Int64Value.
type StringValueCodec ¶
type StringValueCodec struct{}
StringValueCodec is the Codec used for *wrapperspb.StringValue values.
func NewStringValueCodec ¶
func NewStringValueCodec() *StringValueCodec
NewStringValueCodec returns a StringValueCodec.
func (*StringValueCodec) DecodeValue ¶
func (c *StringValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.StringValue.
func (*StringValueCodec) EncodeValue ¶
func (c *StringValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.StringValue.
type TimestampCodec ¶
type TimestampCodec struct{}
TimestampCodec is the Codec used for *timestamppb.Timestamp values.
func NewTimestampCodec ¶
func NewTimestampCodec() *TimestampCodec
NewTimestampCodec returns a TimestampCodec.
func (*TimestampCodec) DecodeValue ¶
func (c *TimestampCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *timestamppb.Timestamp.
func (*TimestampCodec) EncodeValue ¶
func (c *TimestampCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *timestamppb.Timestamp.
type UInt32ValueCodec ¶
type UInt32ValueCodec struct{}
UInt32ValueCodec is the Codec used for *wrapperspb.UInt32Value values.
func NewUInt32ValueCodec ¶
func NewUInt32ValueCodec() *UInt32ValueCodec
NewUInt32ValueCodec returns a UInt32ValueCodec.
func (*UInt32ValueCodec) DecodeValue ¶
func (vc *UInt32ValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.UInt32Value.
func (*UInt32ValueCodec) EncodeValue ¶
func (vc *UInt32ValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.UInt32Value.
type UInt64ValueCodec ¶
type UInt64ValueCodec struct{}
UInt64ValueCodec is the Codec used for *wrapperspb.UInt64Value values.
func NewUInt64ValueCodec ¶
func NewUInt64ValueCodec() *UInt64ValueCodec
NewUInt64ValueCodec returns a UInt64ValueCodec.
func (*UInt64ValueCodec) DecodeValue ¶
func (c *UInt64ValueCodec) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, v reflect.Value) error
DecodeValue is the ValueDecoderFunc for *wrapperspb.UInt64Value.
func (*UInt64ValueCodec) EncodeValue ¶
func (c *UInt64ValueCodec) EncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, v reflect.Value) error
EncodeValue is the ValueEncoderFunc for *wrapperspb.UInt64Value.