Versions in this module Expand all Collapse all v0 v0.1.0 Apr 10, 2020 Changes in this version + const ErrCodeClosed + const ErrCodeDynamoDBException + const ErrCodeItemExisted + const ErrCodeItemNotExisted + const ErrCodeSerializeException + const ErrCodeTooManyRequests + var Registry = registry + func RandIdentifier() string + type ErrClosed struct + func (b ErrClosed) Cause() error + func (b ErrClosed) Code() string + func (b ErrClosed) Error() string + func (b ErrClosed) Message() string + func (b ErrClosed) String() string + type ErrDynamoDBException struct + func (b ErrDynamoDBException) Cause() error + func (b ErrDynamoDBException) Code() string + func (b ErrDynamoDBException) Error() string + func (b ErrDynamoDBException) Message() string + func (b ErrDynamoDBException) String() string + type ErrItemExisted struct + func (b ErrItemExisted) Cause() error + func (b ErrItemExisted) Code() string + func (b ErrItemExisted) Error() string + func (b ErrItemExisted) Message() string + func (b ErrItemExisted) String() string + func (e *ErrItemExisted) Key() Key + type ErrItemNotExisted struct + func (b ErrItemNotExisted) Cause() error + func (b ErrItemNotExisted) Code() string + func (b ErrItemNotExisted) Error() string + func (b ErrItemNotExisted) Message() string + func (b ErrItemNotExisted) String() string + type ErrSerializeException struct + func (b ErrSerializeException) Cause() error + func (b ErrSerializeException) Code() string + func (b ErrSerializeException) Error() string + func (b ErrSerializeException) Message() string + func (b ErrSerializeException) String() string + type ErrTooManyRequests struct + func (b ErrTooManyRequests) Cause() error + func (b ErrTooManyRequests) Code() string + func (b ErrTooManyRequests) Error() string + func (b ErrTooManyRequests) Message() string + func (b ErrTooManyRequests) String() string + type Error interface + Cause func() error + Code func() string + Message func() string + type Key struct + Identifier string + Kind string + Parent string + func Parse(s string) Key + func (k *Key) Incomplete() bool + func (k *Key) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error + func (k *Key) String() string + func (k *Key) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error + type Store struct + func NewStore(client *dynamodb.DynamoDB, table string) (*Store, error) + func (s *Store) CloseAndWait() + func (s *Store) Delete(key Key) error + func (s *Store) DoesItemExist(ctx context.Context, key Key) (bool, error) + func (s *Store) Get(ctx context.Context, key Key) (*dynamodb.AttributeValue, error) + func (s *Store) GetMulti(ctx context.Context, keys map[Key]bool) (map[Key]*dynamodb.AttributeValue, error) + func (s *Store) Insert(key Key, value interface{}) error + func (s *Store) Update(key Key, value interface{}) error + func (s *Store) Upsert(key Key, value interface{}) error