Seq returns the sequence number represented by this XID. To get the next and previous valid XIDs for range pagination, see Next() and Prev().
()
| 102 | // Seq returns the sequence number represented by this XID. To get the next and previous |
| 103 | // valid XIDs for range pagination, see Next() and Prev(). |
| 104 | func (xid XID) Seq() uint64 { |
| 105 | parts := strings.Split(xid.String(), "-") |
| 106 | seq, _ := strconv.ParseUint(parts[1], 10, 64) |
| 107 | |
| 108 | return seq |
| 109 | } |
| 110 | |
| 111 | func (xid XID) av() dynamodb.AttributeValue { |
| 112 | return dynamodb.AttributeValue{S: aws.String(xid.String())} |