Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
869 B · 33 lines
12345678910111213141516171819202122232425262728293031323334// Code generated by glex; DO NOT EDIT.
// Lexicon schema: com.atproto.sync.getRepo
package comatproto
import ( "bytes" "context"
glex "github.com/streamplace/glex/runtime")
// SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo".//// Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS.//// did: The DID of the repo.// since: The revision ('rev') of the repo to create a diff from.func SyncGetRepo(ctx context.Context, c glex.LexClient, did string, since string) ([]byte, error) { buf := new(bytes.Buffer)
params := map[string]interface{}{} if since != "" { params["since"] = since } params["did"] = did
if err := c.LexDo(ctx, glex.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil { return nil, err } return buf.Bytes(), nil}