MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / listPush

Method listPush

lists.go:405–420  ·  view source on GitHub ↗
(key string, element Value, side LSide, flags Flags)

Source from the content-addressed store, hash-verified

403}
404
405func (c Client) listPush(key string, element Value, side LSide, flags Flags) error {
406 transactionItems, err := c.listPushActions(key, element, side, flags)
407 if err != nil || len(transactionItems) == 0 {
408 return err
409 }
410
411 _, err = c.ddbClient.TransactWriteItemsRequest(&dynamodb.TransactWriteItemsInput{
412 TransactItems: transactionItems,
413 }).Send(context.TODO())
414
415 if err != nil {
416 return err
417 }
418
419 return nil
420}
421
422func (c Client) listPushActions(key string, element Value, side LSide, flags Flags) (actions []dynamodb.TransactWriteItem, err error) {
423 node := listNode{

Callers 4

LPUSHMethod · 0.95
LPUSHXMethod · 0.95
RPUSHMethod · 0.95
RPUSHXMethod · 0.95

Calls 1

listPushActionsMethod · 0.95

Tested by

no test coverage detected