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

Method Seq

streams.go:104–109  ·  view source on GitHub ↗

Seq returns the sequence number represented by this XID. To get the next and previous valid XIDs for range pagination, see Next() and Prev().

()

Source from the content-addressed store, hash-verified

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().
104func (xid XID) Seq() uint64 {
105 parts := strings.Split(xid.String(), "-")
106 seq, _ := strconv.ParseUint(parts[1], 10, 64)
107
108 return seq
109}
110
111func (xid XID) av() dynamodb.AttributeValue {
112 return dynamodb.AttributeValue{S: aws.String(xid.String())}

Callers 2

NextMethod · 0.95
PrevMethod · 0.95

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected