// 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 Key func 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 }