id

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package id generates the identifiers Wegweiser uses as primary keys.

  • it can be assigned before the transaction that stores it, so a caller can build a whole object graph and write it in one batch;
  • it stays unique when nodes merge their state once the cluster arrives;
  • it is safe to put in a URL, because it leaks no row count.

Index

Constants

Size is the length of an identifier in its canonical text form.

Variables

This section is empty.

Functions

func New

func New() string

New returns a fresh identifier.

New panics if the operating system's entropy source fails, which is not a condition a server can sensibly continue past.

func Valid

func Valid(s string) bool

Valid reports whether s is an identifier in canonical form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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