Documentation ¶
Index ¶
- Constants
- Variables
- func RandIdentifier() string
- type ErrClosed
- type ErrDynamoDBException
- type ErrItemExisted
- type ErrItemNotExisted
- type ErrSerializeException
- type ErrTooManyRequests
- type Error
- type Key
- type Store
- 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
Constants ¶
View Source
const ( ErrCodeSerializeException = "SerializeException" ErrCodeItemExisted = "ItemExisted" ErrCodeItemNotExisted = "ItemNotExisted" ErrCodeTooManyRequests = "TooManyRequests" ErrCodeClosed = "Closed" ErrCodeDynamoDBException = "DynamoDBException" )
Variables ¶
View Source
var Registry = registry{ // contains filtered or unexported fields }
Functions ¶
func RandIdentifier ¶
func RandIdentifier() string
Types ¶
type ErrDynamoDBException ¶
type ErrDynamoDBException struct {
// contains filtered or unexported fields
}
type ErrItemExisted ¶
type ErrItemExisted struct {
// contains filtered or unexported fields
}
func (*ErrItemExisted) Key ¶
func (e *ErrItemExisted) Key() Key
type ErrItemNotExisted ¶
type ErrItemNotExisted struct {
// contains filtered or unexported fields
}
type ErrSerializeException ¶
type ErrSerializeException struct {
// contains filtered or unexported fields
}
type ErrTooManyRequests ¶
type ErrTooManyRequests struct {
// contains filtered or unexported fields
}
type Key ¶
func (*Key) Incomplete ¶
func (*Key) MarshalDynamoDBAttributeValue ¶
func (k *Key) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
func (*Key) UnmarshalDynamoDBAttributeValue ¶
func (k *Key) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
Click to show internal directories.
Click to hide internal directories.