Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaRecordStatusByOrg ¶
func NewMetaRecordStatusByOrg ¶
func NewMetaRecordStatusByOrg() MetaRecordStatusByOrg
func (*MetaRecordStatusByOrg) GetStatus ¶
func (m *MetaRecordStatusByOrg) GetStatus(orgId uint32) (UUID, uint64, uint64)
func (*MetaRecordStatusByOrg) Update ¶
func (m *MetaRecordStatusByOrg) Update(orgId uint32, newBatch UUID, newCreatedAt, newLastUpdate uint64) (bool, UUID)
update takes the properties describing a batch of meta records and updates its internal status if necessary it returns a boolean indicating whether a reload of the meta records is necessary and if it is then the second returned value is the batch id that needs to be loaded
type UUID ¶
type UUID [16]byte
UUIDs are used as meta record batch IDs
var ( // this batch id is used if we handle an upsert request for an org that has // no current batch DefaultBatchId UUID )
func ParseUUID ¶
ParseUUID parses a 32 digit hexadecimal number (that might contain hypens) representing an UUID.
func RandomUUID ¶
RandomUUID generates a randomized UUID, the code is copied from gocql.RandomUUID()
Click to show internal directories.
Click to hide internal directories.