Monorepo for Tangled
0

Configure Feed

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

tangled-core / api / tangled / repogetIssue.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.getIssue 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoGetIssueNSID = "sh.tangled.repo.getIssue" 15) 16 17// RepoGetIssue_Output is the output of a sh.tangled.repo.getIssue call. 18type RepoGetIssue_Output struct { 19 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 20 Uri string `json:"uri" cborgen:"uri"` 21 // value: Embedded sh.tangled.repo.issue record. 22 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` 23} 24 25// RepoGetIssue calls the XRPC method "sh.tangled.repo.getIssue". 26// 27// issue: AT-URI of the sh.tangled.repo.issue record to fetch. 28func RepoGetIssue(ctx context.Context, c util.LexClient, issue string) (*RepoGetIssue_Output, error) { 29 var out RepoGetIssue_Output 30 31 params := map[string]interface{}{} 32 params["issue"] = issue 33 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.getIssue", params, nil, &out); err != nil { 34 return nil, err 35 } 36 37 return &out, nil 38}