Monorepo for Tangled tangled.org
1

Configure Feed

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

core / api / tangled / repogetRepo.go
1.0 kB 38 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.getRepo 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoGetRepoNSID = "sh.tangled.repo.getRepo" 15) 16 17// RepoGetRepo_Output is the output of a sh.tangled.repo.getRepo call. 18type RepoGetRepo_Output struct { 19 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 20 Uri string `json:"uri" cborgen:"uri"` 21 // value: Embedded sh.tangled.repo record. 22 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` 23} 24 25// RepoGetRepo calls the XRPC method "sh.tangled.repo.getRepo". 26// 27// repo: AT-URI of the sh.tangled.repo record to fetch. 28func RepoGetRepo(ctx context.Context, c util.LexClient, repo string) (*RepoGetRepo_Output, error) { 29 var out RepoGetRepo_Output 30 31 params := map[string]interface{}{} 32 params["repo"] = repo 33 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.getRepo", params, nil, &out); err != nil { 34 return nil, err 35 } 36 37 return &out, nil 38}