ddb

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package ddb provides DynamoDB utility for Protobuf messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDynamoMessage

func MarshalDynamoMessage(x proto.Message) (a types.AttributeValue, err error)

MarshalDynamoMessage will marshal a protobuf message 'm' into an attribute value. It supports several well-known Protobuf types and if 'x' implements its own MarshalDynamoItem method it will be called to delegate the marshalling.

func UnmarshalDynamoMessage

func UnmarshalDynamoMessage(m types.AttributeValue, x proto.Message) (err error)

UnmarshalDynamoMessage will attempt to unmarshal 'm' into a protobuf message 'x'. It provides special support for several well-known protobuf message types. If 'x' implements the MarshalDynamoItem method it will be called to delegate the unmarshalling.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL