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

Method Next

streams.go:81–83  ·  view source on GitHub ↗

Next returns the next valid XID at the same time – it simply returns a new XID with the next sequence number.

()

Source from the content-addressed store, hash-verified

79
80// Next returns the next valid XID at the same time – it simply returns a new XID with the next sequence number.
81func (xid XID) Next() XID {
82 return NewXID(xid.Time(), xid.Seq()+1)
83}
84
85// Prev returns the previous valid XID at the same time – it simply returns a new XID with the previous sequence number.
86func (xid XID) Prev() XID {

Callers 3

XREADMethod · 0.80
XREADGROUPMethod · 0.80
TestRangesFunction · 0.80

Calls 3

TimeMethod · 0.95
SeqMethod · 0.95
NewXIDFunction · 0.85

Tested by 1

TestRangesFunction · 0.64