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 ¶
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.