Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.repo.describeRepo
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( RepoDescribeRepoNSID = "sh.tangled.repo.describeRepo")
// RepoDescribeRepo_Output is the output of a sh.tangled.repo.describeRepo call.type RepoDescribeRepo_Output struct { // ownerDid: DID of the current owner according to the knot. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` RepoDid string `json:"repoDid" cborgen:"repoDid"` // rkey: Current rkey of the sh.tangled.repo record tracked by this knot Rkey string `json:"rkey" cborgen:"rkey"`}
// RepoDescribeRepo calls the XRPC method "sh.tangled.repo.describeRepo".//// repoDid: DID of the git repo as minted by the knotfunc RepoDescribeRepo(ctx context.Context, c util.LexClient, repoDid string) (*RepoDescribeRepo_Output, error) { var out RepoDescribeRepo_Output
params := map[string]interface{}{} params["repoDid"] = repoDid if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.describeRepo", params, nil, &out); err != nil { return nil, err }
return &out, nil}