// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: sh.tangled.string.getString import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( StringGetStringNSID = "sh.tangled.string.getString" ) // StringGetString_Output is the output of a sh.tangled.string.getString call. type StringGetString_Output struct { Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` Uri string `json:"uri" cborgen:"uri"` // value: Embedded sh.tangled.string record. Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` } // StringGetString calls the XRPC method "sh.tangled.string.getString". // // uri: AT-URI of the sh.tangled.string record to fetch. func StringGetString(ctx context.Context, c util.LexClient, uri string) (*StringGetString_Output, error) { var out StringGetString_Output params := map[string]interface{}{} params["uri"] = uri if err := c.LexDo(ctx, util.Query, "", "sh.tangled.string.getString", params, nil, &out); err != nil { return nil, err } return &out, nil }