Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
853 B · 32 lines
Go
123456789101112131415161718192021222324252627282930313233// Code generated by glex; DO NOT EDIT.
// Lexicon schema: com.atproto.sync.getRecord
package comatproto
import ( "bytes" "context"
glex "github.com/streamplace/glex/runtime")
// SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord".//// Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth.//// did: The DID of the repo.// rkey: Record Keyfunc SyncGetRecord(ctx context.Context, c glex.LexClient, collection string, did string, rkey string) ([]byte, error) { buf := new(bytes.Buffer)
params := map[string]interface{}{} params["collection"] = collection params["did"] = did params["rkey"] = rkey
if err := c.LexDo(ctx, glex.Query, "", "com.atproto.sync.getRecord", params, nil, buf); err != nil { return nil, err } return buf.Bytes(), nil}