Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
Go
1234567891011121314151617181920212223242526272829303132333435363738394041// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.repo.getRepoByName
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( RepoGetRepoByNameNSID = "sh.tangled.repo.getRepoByName")
// RepoGetRepoByName_Output is the output of a sh.tangled.repo.getRepoByName call.type RepoGetRepoByName_Output struct { Cid *string `json:"cid,omitempty" cborgen:"cid,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 "sh.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, "", "sh.tangled.repo.getRepoByName", params, nil, &out); err != nil { return nil, err }
return &out, nil}