queries

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

package: queries / contributors type: logic job: the reads a caller needs before it can write anything — a branch's contributors, and the one carrying a given public key limits: reads an Archive snapshot and nothing else; every helper is ordinary RQL, so this is a worked example as much as a library (-> query for the language itself)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contributors

func Contributors(ctx context.Context, arc ranke.Archive, branch string) ([]ranke.Claim, error)

Contributors returns every `contribution/contributor` claim branch reaches, in the order the engine yields them. ranke.BranchArchive names the archive entire.

func ContributorsByKey

func ContributorsByKey(ctx context.Context, arc ranke.Archive, branch string, pubkey []byte) ([]ranke.Claim, error)

ContributorsByKey returns the contributor claims in branch carrying pubkey, one of whose ids its holder must reference to sign (`V-SIG`). Several can match: no rule makes a `pubkey` unique, so one key registered twice is two identities carrying different provenance. Name the branch you write to — a claim signs under one its own branch reaches, where ranke.BranchArchive answers what the archive holds anywhere.

Types

This section is empty.

Jump to

Keyboard shortcuts

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