Documentation ¶
Index ¶
- func DeleteEntities(entities ...*Entity) (success bool, err error)
- func Setup(auth aws.Auth, region aws.Region)
- func StoreEntities(entities ...*Entity) (success bool, err error)
- type Entity
- func (e *Entity) Add(attrType string, attrName string, attrValue string)
- func (e *Entity) Delete() (success bool, err error)
- func (e *Entity) Get(attrName string) string
- func (e *Entity) GetHashKeyValue() string
- func (e *Entity) GetRangeKeyValue() string
- func (e *Entity) Read() (err error)
- func (e *Entity) Set(attrName string, attrValue string) error
- func (e *Entity) SetHashKeyValue(value string)
- func (e *Entity) SetRangeKeyValue(value string)
- func (e *Entity) Store() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEntities ¶
func StoreEntities ¶
Store one ore more entities on Dynamo
Types ¶
type Entity ¶
type Entity struct { PrimaryKey dynamodb.PrimaryKey TableName string Attributes map[string]dynamodb.Attribute Related map[string]*Entity }
func LoadEntities ¶
Load one ore more Entities defined by template
func (*Entity) GetHashKeyValue ¶
Return the HashKey's value
func (*Entity) GetRangeKeyValue ¶
Return the RangeKey's value
func (*Entity) Set ¶
Set an Attribute value by name Returns an error if the Attribute does not exist
func (*Entity) SetHashKeyValue ¶
Set the HashKey's value
func (*Entity) SetRangeKeyValue ¶
Set the RangeKey's value If the RangeKey is not defined this silently does nothing
Click to show internal directories.
Click to hide internal directories.