Monorepo for Tangled
at push-pmqotzqwskqq 33 lines 852 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.resolveAtUri 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoResolveAtUriNSID = "sh.tangled.repo.resolveAtUri" 15) 16 17// RepoResolveAtUri_Output is the output of a sh.tangled.repo.resolveAtUri call. 18type RepoResolveAtUri_Output struct { 19 Did string `json:"did" cborgen:"did"` 20} 21 22// RepoResolveAtUri calls the XRPC method "sh.tangled.repo.resolveAtUri". 23func RepoResolveAtUri(ctx context.Context, c util.LexClient, atUri string) (*RepoResolveAtUri_Output, error) { 24 var out RepoResolveAtUri_Output 25 26 params := map[string]interface{}{} 27 params["atUri"] = atUri 28 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.resolveAtUri", params, nil, &out); err != nil { 29 return nil, err 30 } 31 32 return &out, nil 33}