Versions in this module Expand all Collapse all v1 v1.0.1 Jul 13, 2018 v1.0.0 Jun 25, 2018 Changes in this version + const Array + const Array16 + const Array32 + const Array64 + const Array8 + const ArrayStream + const Break + const Bytes + const Bytes16 + const Bytes32 + const Bytes64 + const Bytes8 + const BytesStream + const False + const Float16 + const Float32 + const Float64 + const MajorTypeMask + const Map + const Map16 + const Map32 + const Map64 + const Map8 + const MapStream + const MinorTypeMask + const NegInt + const NegInt16 + const NegInt32 + const NegInt64 + const NegInt8 + const Nil + const PosInt + const PosInt16 + const PosInt32 + const PosInt64 + const PosInt8 + const Simple + const Simple8 + const Size16 + const Size32 + const Size64 + const Size8 + const SizeStream + const Tag + const Tag16 + const Tag32 + const Tag64 + const Tag8 + const TagBigFloat + const TagDatetime + const TagDecimal + const TagNegBigInt + const TagPosBigInt + const TagTimestamp + const True + const Undefined + const Utf + const Utf16 + const Utf32 + const Utf64 + const Utf8 + const UtfStream + var ErrMissingKey = awserr.New(request.ParamRequiredErrCode, "One of the required keys was not given a value", ...) + var ErrNaN = awserr.New(request.InvalidParameterErrCode, "cbor: not a number", nil) + var ErrNegLength = awserr.New(request.ErrCodeSerialization, "cbor: negative length", nil) + var ErrObjTooBig = awserr.New(request.ErrCodeSerialization, "cbor: object too big", nil) + func DecodeAttributeValue(reader *Reader) (*dynamodb.AttributeValue, error) + func DecodeItemKey(reader *Reader, keydef []dynamodb.AttributeDefinition) (map[string]*dynamodb.AttributeValue, error) + func DecodeItemNonKeyAttributes(ctx aws.Context, reader *Reader, attrListIdToNames *lru.Lru) (map[string]*dynamodb.AttributeValue, error) + func EncodeAttributeValue(value *dynamodb.AttributeValue, writer *Writer) error + func EncodeItemKey(item map[string]*dynamodb.AttributeValue, ...) error + func EncodeItemNonKeyAttributes(ctx aws.Context, item map[string]*dynamodb.AttributeValue, ...) error + func EncodeLexDecimal(decimal *Decimal, writer BytesWriter) (int, error) + type BytesReader interface + type BytesWriter interface + type Decimal struct + func DecodeLexDecimal(reader BytesReader) (*Decimal, error) + func NewDecimal(unscaled *big.Int, scale int) *Decimal + func (d *Decimal) Scale() int + func (d *Decimal) SetInt(v *big.Int) *Decimal + func (d *Decimal) SetIntScale(unscaled *big.Int, scale int) *Decimal + func (d *Decimal) SetScale(scale int) *Decimal + func (d *Decimal) SetString(s string) (*Decimal, bool) + func (d *Decimal) String() string + func (d *Decimal) Unscaled() *big.Int + type Reader struct + func NewReader(r io.Reader) *Reader + func (r *Reader) BytesReader() (*Reader, error) + func (r *Reader) Close() error + func (r *Reader) PeekHeader() (hdr byte, err error) + func (r *Reader) ReadArrayLength() (int, error) + func (r *Reader) ReadBigInt() (*big.Int, error) + func (r *Reader) ReadBreak() (err error) + func (r *Reader) ReadBytes() ([]byte, error) + func (r *Reader) ReadDecimal() (*Decimal, error) + func (r *Reader) ReadFloat64() (float64, error) + func (r *Reader) ReadInt() (int, error) + func (r *Reader) ReadInt64() (int64, error) + func (r *Reader) ReadMapLength() (int, error) + func (r *Reader) ReadNil() (err error) + func (r *Reader) ReadString() (string, error) + type Writer struct + func NewWriter(w io.Writer) *Writer + func (w *Writer) Close() error + func (w *Writer) Flush() error + func (w *Writer) Write(b []byte) error + func (w *Writer) WriteArrayHeader(elems int) error + func (w *Writer) WriteArrayStreamHeader() error + func (w *Writer) WriteBigInt(value *big.Int) error + func (w *Writer) WriteBoolean(b bool) error + func (w *Writer) WriteBytes(b []byte) error + func (w *Writer) WriteDecimal(value *Decimal) (err error) + func (w *Writer) WriteFloat(v float32) error + func (w *Writer) WriteFloat64(v float64) error + func (w *Writer) WriteInt(value int) error + func (w *Writer) WriteInt64(value int64) error + func (w *Writer) WriteMapHeader(pairs int) error + func (w *Writer) WriteMapStreamHeader() error + func (w *Writer) WriteNull() error + func (w *Writer) WriteStreamBreak() error + func (w *Writer) WriteString(s string) error + func (w *Writer) WriteTag(tag uint64) error