Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrEmptyIsNotEmpty = errors.New("empty object expected to be empty but it is not")
)
var (
ErrUnknownValueKind = errors.New("unknown value kind")
)
Functions ¶
This section is empty.
Types ¶
type ProtoDurationCodec ¶
type ProtoDurationCodec struct { }
ProtoDurationCodec is the Codec used for google.protobuf.Duration type.
func NewProtoDurationCodec ¶
func NewProtoDurationCodec() *ProtoDurationCodec
NewProtoDurationCodec returns a ProtoDurationCodec.
func (*ProtoDurationCodec) DecodeValue ¶
func (sc *ProtoDurationCodec) DecodeValue(r bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
DecodeValue handles decoding of the `google.protobuf.Duration` message.
func (*ProtoDurationCodec) EncodeValue ¶
func (sc *ProtoDurationCodec) EncodeValue(r bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
EncodeValue handles encoding of the `google.protobuf.Duration` message.
type ProtoEmptyCodec ¶
type ProtoEmptyCodec struct { }
ProtoEmptyCodec is the Codec used for google.protobuf.Empty type.
func NewProtoEmptyCodec ¶
func NewProtoEmptyCodec() *ProtoEmptyCodec
NewProtoEmptyCodec returns a ProtoEmptyCodec that uses p for struct tag parsing.
func (*ProtoEmptyCodec) DecodeValue ¶
func (sc *ProtoEmptyCodec) DecodeValue(r bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
DecodeValue handles decoding of the `google.protobuf.Empty` message.
func (*ProtoEmptyCodec) EncodeValue ¶
func (sc *ProtoEmptyCodec) EncodeValue(r bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
EncodeValue handles encoding of the `google.protobuf.Empty` message.
type ProtoStructCodec ¶
type ProtoStructCodec struct { }
ProtoStructCodec is the Codec used for google.protobuf.Struct type.
func NewProtoStructCodec ¶
func NewProtoStructCodec() *ProtoStructCodec
NewProtoStructCodec returns a ProtoStructCodec that uses p for struct tag parsing.
func (*ProtoStructCodec) DecodeValue ¶
func (sc *ProtoStructCodec) DecodeValue(r bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
DecodeValue handles decoding of the `google.protobuf.Struct` message.
func (*ProtoStructCodec) EncodeValue ¶
func (sc *ProtoStructCodec) EncodeValue(r bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
EncodeValue handles encoding of the `google.protobuf.Struct` message.
type ProtoStructListValueCodec ¶
type ProtoStructListValueCodec struct { }
ProtoStructListValueCodec is the Codec used for google.protobuf.ListValue type.
func NewProtoStructListValueCodec ¶
func NewProtoStructListValueCodec() *ProtoStructListValueCodec
NewProtoStructListValueCodec returns a ProtoStructListValueCodec that uses p for struct tag parsing.
func (*ProtoStructListValueCodec) DecodeValue ¶
func (sc *ProtoStructListValueCodec) DecodeValue(r bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
DecodeValue handles decoding of the `google.protobuf.Struct` message.
func (*ProtoStructListValueCodec) EncodeValue ¶
func (sc *ProtoStructListValueCodec) EncodeValue(r bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
EncodeValue handles encoding of the `google.protobuf.ListValue` message.
type ProtoStructValueCodec ¶
type ProtoStructValueCodec struct { }
ProtoStructValueCodec is the Codec used for google.protobuf.Value type.
func NewProtoStructValueCodec ¶
func NewProtoStructValueCodec() *ProtoStructValueCodec
NewProtoStructValueCodec returns a ProtoStructValueCodec that uses p for struct tag parsing.
func (*ProtoStructValueCodec) DecodeValue ¶
func (sc *ProtoStructValueCodec) DecodeValue(r bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
DecodeValue handles decoding of the `google.protobuf.Value` message.
func (*ProtoStructValueCodec) EncodeValue ¶
func (sc *ProtoStructValueCodec) EncodeValue(r bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
EncodeValue handles encoding of the `google.protobuf.Value` message.
type ProtoTimestampCodec ¶
type ProtoTimestampCodec struct { }
ProtoTimestampCodec is the Codec used for google.protobuf.Timestamp type.
func NewProtoTimestampCodec ¶
func NewProtoTimestampCodec() *ProtoTimestampCodec
NewProtoTimestampCodec returns a ProtoEmptyCodec that uses p for struct tag parsing.
func (*ProtoTimestampCodec) DecodeValue ¶
func (sc *ProtoTimestampCodec) DecodeValue(r bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
DecodeValue handles decoding of the `google.protobuf.Timestamp` message.
func (*ProtoTimestampCodec) EncodeValue ¶
func (sc *ProtoTimestampCodec) EncodeValue(r bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
EncodeValue handles encoding of the `google.protobuf.Empty` message.
type ProtoWrappersCodec ¶
type ProtoWrappersCodec struct { }
ProtoWrappersCodec is the Codec used for google.protobuf.Wrappers type.
func NewProtoWrappersCodec ¶
func NewProtoWrappersCodec() *ProtoWrappersCodec
NewProtoWrappersCodec returns a ProtoWrappersCodec that uses p for struct tag parsing.
func (*ProtoWrappersCodec) DecodeValue ¶
func (sc *ProtoWrappersCodec) DecodeValue(r bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
DecodeValue handles decoding of the `google.protobuf.*Value` message.
func (*ProtoWrappersCodec) EncodeValue ¶
func (sc *ProtoWrappersCodec) EncodeValue(r bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
EncodeValue handles encoding of the `google.protobuf.*Value` message.