Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
1.4 kB · 42 lines
Go
at next-dev
12345678910111213141516171819202122232425262728293031323334353637383940414243// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package org_tangled
// schema: org.tangled.repo.getRepoByName
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( RepoGetRepoByNameNSID = "org.tangled.repo.getRepoByName")
// RepoGetRepoByName_Output is the output of a org.tangled.repo.getRepoByName call.type RepoGetRepoByName_Output struct { Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` // knot: Host of the knot named by the #tangled_knot service in the repo's DID document. Absent when it names none. Knot *string `json:"knot,omitempty" cborgen:"knot,omitempty"` Uri string `json:"uri" cborgen:"uri"` // value: Embedded sh.tangled.repo record. Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`}
// RepoGetRepoByName calls the XRPC method "org.tangled.repo.getRepoByName".//// name: Name of the repo as it appears in its url.// owner: DID of the account that owns the repo.func RepoGetRepoByName(ctx context.Context, c util.LexClient, name string, owner string) (*RepoGetRepoByName_Output, error) { var out RepoGetRepoByName_Output
params := map[string]interface{}{} params["name"] = name params["owner"] = owner if err := c.LexDo(ctx, util.Query, "", "org.tangled.repo.getRepoByName", params, nil, &out); err != nil { return nil, err }
return &out, nil}