XID holds a stream item ID, and consists of a timestamp (one second resolution) and a sequence number. Most code will not need to generate XIDs – using XAutoID with XADD is the most common usage. But if you do need to generate XIDs for insertion with XADD, the NewXID methods creates a complete XID.
| 23 | // because without it none of the items in the last second of the range will match – you need |
| 24 | // the last possible sequence number in the last second of the range, which is what the Last() method provides. |
| 25 | type XID string |
| 26 | |
| 27 | var ErrXGroupNotInitialized = errors.New("consumer group not initialized with XGROUP") |
| 28 |
no outgoing calls
no test coverage detected