Help us shape the future of Go! Take the 2026 Go Developer Survey

compactids

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package compactids allocates durable compact protocol identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

type Allocator struct {
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB) (*Allocator, error)

func (*Allocator) Compact

func (a *Allocator) Compact(ctx context.Context, surface, kind, ref string) (int32, error)

func (*Allocator) Resolve

func (a *Allocator) Resolve(ctx context.Context, surface, kind string, id int32) (string, error)

Jump to

Keyboard shortcuts

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