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