profileid

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source string

Source identifies how a profile ID was generated.

const (
	SourceUserSupplied Source = "user_supplied"
	SourceTimestamp    Source = "timestamp"
	SourceTraceID      Source = "trace_id"
	SourceRandom       Source = "random"
)

func Generate

func Generate(
	tenantID string,
	profileType string,
	externalLabels []*typesv1.LabelPair,
	timeNanos int64,
	traceID string,
) (uuid.UUID, Source)

Generate creates a UUID v8 from the SHA-256 hash of the profile's external identity. A timestamp takes precedence over a trace ID. When neither is available, a random UUID v4 is returned.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL