A fork of https://github.com/teal-fm/piper
at main 30 lines 705 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.sync.getRepo 6 7import ( 8 "bytes" 9 "context" 10 11 "github.com/bluesky-social/indigo/xrpc" 12) 13 14// SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo". 15// 16// did: The DID of the repo. 17// since: The revision ('rev') of the repo to create a diff from. 18func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, since string) ([]byte, error) { 19 buf := new(bytes.Buffer) 20 21 params := map[string]interface{}{ 22 "did": did, 23 "since": since, 24 } 25 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil { 26 return nil, err 27 } 28 29 return buf.Bytes(), nil 30}