Documentation ¶
Index ¶
- func AddNumber(client *dynamodb.DynamoDB, table string, ...) error
- func PrettyStructPrint(data interface{})
- func QueryRecordWithFilter(client *dynamodb.DynamoDB, table string, ...) ([]map[string]*dynamodb.AttributeValue, error)
- func QueryRecords(client *dynamodb.DynamoDB, table, index, key, value string, ...) ([]map[string]*dynamodb.AttributeValue, error)
- func WriteRecord(client *dynamodb.DynamoDB, data Payload, table string) error
- func WriteRecords(client *dynamodb.DynamoDB, data []map[string]*dynamodb.AttributeValue, ...) error
- type Payload
- type Payloads
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNumber ¶
func AddNumber(client *dynamodb.DynamoDB, table string, key map[string]*dynamodb.AttributeValue, name string, number int64) error
AddNumber func
func QueryRecordWithFilter ¶
func QueryRecordWithFilter(client *dynamodb.DynamoDB, table string, condition expression.KeyConditionBuilder, filter expression.ConditionBuilder) ([]map[string]*dynamodb.AttributeValue, error)
QueryRecordsWithFilter func
func QueryRecords ¶
func QueryRecords(client *dynamodb.DynamoDB, table, index, key, value string, condition expression.ConditionBuilder) ([]map[string]*dynamodb.AttributeValue, error)
QueryRecords will return a list of records according to a specific condition table: DynamoDB table name index: DynamoDB index name key: DynamoDB key name value: DynamoDB value of key
func WriteRecord ¶
WriteRecord func writes only one record at a time data: Payload interface table: DynamoDB table name
func WriteRecords ¶
func WriteRecords(client *dynamodb.DynamoDB, data []map[string]*dynamodb.AttributeValue, table string) error
WriteRecords func writes a bunch of record into DynamoDB
Types ¶
Click to show internal directories.
Click to hide internal directories.