Version: v1.0.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type MetaRecordStatusByOrg

type MetaRecordStatusByOrg struct {
	// contains filtered or unexported fields

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

func ParseUUID(input string) (UUID, error)

ParseUUID parses a 32 digit hexadecimal number (that might contain hypens) representing an UUID.

func RandomUUID

func RandomUUID() (UUID, error)

RandomUUID generates a randomized UUID, the code is copied from gocql.RandomUUID()

func (UUID) String

func (u UUID) String() string

String returns the UUID in it's canonical form, a 32 digit hexadecimal number in the form of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL