EncodeCursor generates a base64 encoded representation of a timestamp + identifier
(t time.Time, uuid uuid.UUID)
| 110 | |
| 111 | // EncodeCursor generates a base64 encoded representation of a timestamp + identifier |
| 112 | func EncodeCursor(t time.Time, uuid uuid.UUID) string { |
| 113 | key := fmt.Sprintf("%s,%s", t.Format(time.RFC3339Nano), uuid) |
| 114 | return base64.StdEncoding.EncodeToString([]byte(key)) |
| 115 | } |
no outgoing calls