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

Method toAV

lists.go:53–66  ·  view source on GitHub ↗
(c Client)

Source from the content-addressed store, hash-verified

51}
52
53func (ln listNode) toAV(c Client) map[string]dynamodb.AttributeValue {
54 avm := map[string]dynamodb.AttributeValue{}
55 avm[c.pk] = StringValue{ln.key}.ToAV()
56 avm[c.sk] = StringValue{ln.address}.ToAV()
57 avm[skLeft] = StringValue{ln.left}.ToAV()
58 avm[skRight] = StringValue{ln.right}.ToAV()
59 avm[vk] = ln.value.av
60
61 if ln.isHead() || ln.isTail() {
62 avm[c.skN] = IntValue{1}.ToAV()
63 }
64
65 return avm
66}
67
68func (ln listNode) keyAV(c Client) map[string]dynamodb.AttributeValue {
69 avm := map[string]dynamodb.AttributeValue{}

Callers 3

putActionMethod · 0.95
LLENMethod · 0.45
listCountDeltaActionMethod · 0.45

Calls 3

isHeadMethod · 0.95
isTailMethod · 0.95
ToAVMethod · 0.65

Tested by

no test coverage detected