detid

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package detid computes the buf-style deterministic id for a module (or for a resolved commit hash).

It is shared by internal/connect (handler) and internal/providers/multisource (upstream trace), neither of which can import the other without creating a cycle. Keeping it in its own leaf package avoids the cycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeterministicID

func DeterministicID(input string) string

DeterministicID hashes input into the 32-hex-char id buf uses to identify modules and commits in the wire protocol. It is not cryptographic; it is stable, deterministic, and matches buf's deterministicID function so that commit ids minted by this proxy round-trip through buf CLI invocations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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