Monorepo for Tangled tangled.org
5

Configure Feed

Select the types of activity you want to include in your feed.

at icy/ytnwlw 1.2 kB View raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.describeRepo 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoDescribeRepoNSID = "sh.tangled.repo.describeRepo" 15) 16 17// RepoDescribeRepo_Output is the output of a sh.tangled.repo.describeRepo call. 18type RepoDescribeRepo_Output struct { 19 // ownerDid: DID of the current owner according to the knot. 20 OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` 21 RepoDid string `json:"repoDid" cborgen:"repoDid"` 22 // rkey: Current rkey of the sh.tangled.repo record tracked by this knot 23 Rkey string `json:"rkey" cborgen:"rkey"` 24} 25 26// RepoDescribeRepo calls the XRPC method "sh.tangled.repo.describeRepo". 27// 28// repoDid: DID of the git repo as minted by the knot 29func RepoDescribeRepo(ctx context.Context, c util.LexClient, repoDid string) (*RepoDescribeRepo_Output, error) { 30 var out RepoDescribeRepo_Output 31 32 params := map[string]interface{}{} 33 params["repoDid"] = repoDid 34 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.describeRepo", params, nil, &out); err != nil { 35 return nil, err 36 } 37 38 return &out, nil 39}