metrictank: github.com/grafana/metrictank/idx/metatags Index | Files | Directories

package metatags

import "github.com/grafana/metrictank/idx/metatags"

Index

Package Files

meta_record_status.go

type MetaRecordStatusByOrg Uses

type MetaRecordStatusByOrg struct {
    sync.RWMutex
    // contains filtered or unexported fields
}

func NewMetaRecordStatusByOrg Uses

func NewMetaRecordStatusByOrg() MetaRecordStatusByOrg

func (*MetaRecordStatusByOrg) GetStatus Uses

func (m *MetaRecordStatusByOrg) GetStatus(orgId uint32) (UUID, uint64, uint64)

func (*MetaRecordStatusByOrg) Update Uses

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 Uses

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 Uses

func ParseUUID(input string) (UUID, error)

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

func RandomUUID Uses

func RandomUUID() (UUID, error)

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

func (UUID) String Uses

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.

Directories

PathSynopsis
bigtable
cassandra

Package metatags imports 4 packages (graph) and is imported by 4 packages. Updated 2020-03-04. Refresh now. Tools for package owners.